Our current infrastructure relies on Titanium for native. I am trying to convert my node project into CommonJS using https://www.npmjs.com/package/grunt-titaniumifier . However, it fails on the JSX:
return (
I am trying to use Grunt-browserify and reactify to parse and bundle React components written in jsx. I want to use the extension flag so that I don't have have to specify the file extension name of my modules, but I have been unable to get this to…
Given this TS file:
export default class Rob {
Start(): void {
console.log("Hello, world!");
}
}
Which I am transforming with a Grunt task that looks like this:
browserify: {
rob: {
src: "./rob/rob.js",
dest:…
I'm trying to make use of ES6 modules syntax, and thus package several JS files (which contain import and export statements) into one browser-readable file.
I get no errors, so why are my 2 source files here, not compiled into my one destination…
When I run grunt or grunt -v, I get an error:
grunt-cli: The grunt command line interface (v1.2.0)
Fatal error: Unable to find local grunt.
If you're seeing this message, grunt hasn't been installed locally to
your project. For more information…
I am trying to move an angular 1.6 application from ES5 to ES6.
The index html contains the name of the app: ng-app="appSuite"
and we normally reference the individual js files with script tags.
I've now changed the html to refer to the bundle…
The code for my angular service is
// service/user.js
const env = require('../environment');
module.exports = function ($scope) {
this.is_authenticated = false;
};
and i am initialising the service using
// service/index.js
const angular =…
Moving my website from rails to wordpress, I am trying to transpile my es6 scripts. But my transpiled file is not doing anything at all and after a day of search, I'm stucked.
I'll start with an extract of the first es6 components:
import Component…
Trying to run multiple transforms with browserify.
I have the following files in a directory
dev.json
stage.json
prod.json
index.js
The json files are environment specific config files.
index.js :
var mode = process.env.APP_ENV;
module.exports =…
I am shimming CKEdtior to use within my CommonJS modular javascript package.
The issue that I'm having is that the CKEditor assets are being cached somewhere along the line. I think it's browserify, but I'm not entirely sure.
A cached asset is as…
I have a set of interdependent Node.js modules that I have been building as ES6 modules, and I would ideally like to be able to specify a single module as an entry point and have these built (using grunt) into a single file which can be required by…
I'm using hbsfy (handlebars templating package) as a transform for browserify in a grunt file. How do I pass the -t or --transform argument to the hbsfy transform?
grunt.initConfig({
browserify: {
build: {
src: 'src/js/app.js',
dest:…
I'm using the minifyify plugin as recommended by this answer but I can't seem to find any way to pass flags/options to it when used with Grunt.
Here is the relevant part of my Gruntfile:
grunt.initConfig({
pkg:…
I am attempting to load breeze using browserify. I used npm to install the breeze-client library. If I run browserify without including breeze everything runs fine, but when I include breeze I get the following error:
Error: Cannot find module…