Sample code for the #PghJS NPM Scripts Meetup
For more info, please see accompanying slides or pdf version
Grunt - the JavaScript Task Runner
/grunt
$ npm i -g grunt-cli
$ npm i -D grunt
...
# install grunt plugins
...
$ grunt
Seriously, the sample Gruntfile.js
still uses QUnit
?!?
Gulp - the streaming build system
/gulp
$ npm i -g gulp-cli
$ npm i -D gulp
...
# install gulp plugins
...
$ gulp
Series/parallel - what the hell?!?
NPM Scripts - How npm handles the "scripts"
...
# install actual tools
...
$ npm run [script]
A collection of packages that build a website using NPM scripts.
/npm-build-boilerplate
Typical set of npm scripts set up for a simple project, for linting, testing and code coverage.
/npm-scripts
Because no one should be shell-scripting inside a JSON file.
/scripty
p-s
- package-scripts.js - brand newnpm-quick-run
- shortcut fornpm run [script]