Track list:
This mixtape is heavily influenced by these projects
- Node
- Mongo
- Redis
- Grunt
npm install -g grunt-cli - Bower
npm install -g bower - Nodemon
npm install -g nodemon - Docco
npm install -g docco
npm install
bower install
cleanRemoves the 'dist' and 'test-reports' directories so that nothing lingers from previous builds.jshintRuns the JavaScript through JSHint to check for errors.concatCombines the almond require shim with the application code.cssminConcatenates and minifies the project's CSS into one file.uglifyTakes the built and optimized require.js file and minifies it for filesize benefits.runappThis will start a Node.js Express server application on a specified port and serve up the application files from various project directories.runapp:developmentUses port 3000 to serve the JavaScript files directly from the app/ directory. Serves the compiled style.css contained in 'dist/assets/css' directory.runapp:debugUses port 3003 to serve the 'human readable' concatenated JavaScript files and compiled CSS.runapp:productionUses port 3033 to serve the concatenated and minified JavaScript and the compiled CSS.lessCompiles the Less files into usable CSS.copyPackages up the compiled code and static resources into a deployable directory structure.copy:releasePackages up the minified JavaScript code.copy:debugPackages up the readable JavaScript code.doccoIterates throught the source files and creates annotated source code.jadeUses grunt-contrib-jade to compile the jade templates.jade:templatesCompiles the client jade templates into html.jade:debugCompiles the index.html for the debug package.jade:releaseCompiles the index.html for the release package.karmaKicks off the spectacular Karma test runner.
-
grunt debug- Cleans the project
- Runs the application JavaScript through JSHint.
- Compiles the Less into CSS
- Compiles the JavaScript via RequireJS Optimizer.
- Minifies the CSS.
- Compiles the jade templates
-
grunt assemble- Does everything in the 'debug' task
- Concatenates the compiled JS with Almond.js
- Assembles and packages the application.
-
grunt test- Does everything in the 'assemble' task
- Forks the current process and starts the application server (for e2e testing)
- Runs the karma unit tests
karma:unitci - Runs the karma e2e tests
karma:e2eci - On completion, the forked node server shuts down