/npm-scripts

Sample code for the #PghJS NPM Scripts Meetup

Primary LanguageJavaScriptMIT LicenseMIT

npm-scripts

Sample code for the #PghJS NPM Scripts Meetup

For more info, please see accompanying slides or pdf version

Taskrunners

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

NPM Scripts (Basic Usage)

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

Honorable mentions

  • p-s - package-scripts.js - brand new
  • npm-quick-run - shortcut for npm run [script]