/js-build

Playing with ShellJS, PhantomJS, Karma, and more

Primary LanguageJavaScriptThe UnlicenseUnlicense

Building a JavaScript application

See the accompanying presentation

The app

Testing

The tests can by run in IntelliJ. First you need to install the NodeJS plugin for IntelliJ, then you can follow the setup here.

The build process

  • ShellJS for Unix shell commands in Node.js
  • r.js for minified JavaScript in production
  • JSHint to detect problems and errors in the JavaScript code
  • Less for compiling Less to CSS
  • OptiPNG for optimizing PNGs

Running the build process

$ node make.js

This runs the all target.

Optionally, to run a specific target:

$ node make.js targetName

License

Unless otherwise noted, the code in this repo is in the public domain.