Run grunt build command on Travis CI

Have you made sure to install grunt-cli globally on your Travis node? My Travis CI config looks like: language: node_js node_js: – “0.8” before_install: npm install -g grunt-cli install: npm install before_script: grunt build And my package.json: { … “scripts”: { “test”: “grunt test” }, … } I will explain the flow of steps that … Read more

How do you watch multiple files, but only run task on changed file, in Grunt.js?

The upcoming (and currently in-development) v0.4.0a grunt has the grunt.file.watchFiles object, which was designed expressly for this purpose. The grunt-coffee plugin may have added support for this feature already, I’m not sure. Either way, if you’re interested in trying an in-development version of grunt in your project, check out the When will I be able … Read more

How do I manage relative path aliasing in multiple grunt-browserify bundles?

Simple answer: The simplest is to use the paths option of browserify. I use it for some months with great success. I have even made a starter kit that uses this feature: https://github.com/stample/gulp-browserify-react-phonegap-starter var b = browserify(‘./app’, {paths: [‘./node_modules’,’./src/js’]}); paths – require.paths array to use if nothing is found on the normal node_modules recursive walk … Read more

Are you supposed to link to bower_components in production?

are you using Yeoman? Depending on your Gruntfile.js you should have different tasks, one of these is ‘bower-install’: this task will read you index.html, find the following comment block <!– bower:js –> <!– endbower –> and inject inside it all your dependencies specified in your bower.json. This means that the task will write for your … Read more

and variables for a gruntfile

Where do those variables get derived from? Starting broadly, read the Gruntfile example as it starts to address the <%= variable %> syntax. If you are new to Grunt, bookmark that page as there’s stuff there that doesn’t seem important at first but will be useful on repeated reading. More specifically, yeah…those are from a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)