Questions tagged [grunt-browserify]

Grunt task for node-browserify.

Grunt task for node-browserify.:

https://github.com/jmreidy/grunt-browserify

49 questions
1
vote
1 answer

React JSX + Titaniumifier

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 (
rickyduck
  • 4,030
  • 14
  • 58
  • 93
1
vote
1 answer

Grunt-Browserify extensions flag not working

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…
fraxture
  • 5,113
  • 4
  • 43
  • 83
0
votes
0 answers

grunt-browserify error - utf8 is not a function while parsing file

grunt browserify task is defined like this inside Gruntfile.js browserify: { infra: { options: { browserifyOptions: { debug: true }, …
amangtm
  • 1
  • 1
  • 4
0
votes
1 answer

Browserify and Babelify give {classname} is not defined error

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:…
glosrob
  • 6,631
  • 4
  • 43
  • 73
0
votes
1 answer

packaging with grunt-browserify

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…
Matt
  • 124
  • 12
0
votes
1 answer

Unable to find local Grunt after install

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…
David Gaskin
  • 548
  • 7
  • 26
0
votes
1 answer

angular 1.6 es6 es5 browserify "Uncaught Error: [$injector:nomod] Module 'appSuite' is not available!"

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…
user3545726
  • 65
  • 2
  • 6
0
votes
0 answers

Unable to add $scope to service in angularjs?

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 =…
georoot
  • 3,557
  • 1
  • 30
  • 59
0
votes
1 answer

Transpiled es6 script error

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…
Jean-Baptiste
  • 1,552
  • 1
  • 19
  • 33
0
votes
1 answer

Browserify multiple transforms error

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 =…
user843453
  • 241
  • 2
  • 6
0
votes
1 answer

CKEditor assets cached using shimmed package.json with grunt-browserify

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…
Gurnzbot
  • 3,742
  • 7
  • 36
  • 55
0
votes
1 answer

Packaging ES6-expressed Node files into a single Node module

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…
Brett Zamir
  • 14,034
  • 6
  • 54
  • 77
0
votes
1 answer

How do I pass arguments to a grunt browserify transform (hbsfy)?

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:…
0
votes
1 answer

How to pass file name/options to Grunt minifyify

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:…
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
0
votes
1 answer

cannot find module breeze with browserify

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…
JCherryhomes
  • 426
  • 4
  • 12