Skip to content
Bogdan Dorca edited this page Oct 20, 2015 · 1 revision

Build

gulp
  • noflag
    • builds the project for development and starts the server.
  • --production
    • builds the project for production and starts the server
  • --browse
    • opens the project in your default browser after the build is complete

Includes:

gulp clean

Removes the built files (e.g. app.min.js or global.css).

gulp lint

Runs JSHint for all the project's files.

gulp clientScripts
  • noflag
    • concatenates the client JS files into app.js.
    • reloads the browser window
  • --production
    • concatenates the client JS files into app.min.js.
    • removes the debug specific functions (e.g. console.log())
    • uglifies the files
    • reloads the browser window
gulp sass
  • noflag
    • compiles and merges the Sass files into global.css
    • autoprefixes the CSS rules
    • reloads the browser window
  • --production
    • compiles and merges the Sass files into global.min.css
    • autoprefixes the CSS rules
    • minfies the CSS
    • reloads the browser window
gulp build

Injects the local CSS, JS and bower into the template.

gulp server

Runs nodemon.

Test

Environment

In order to run the test suite, you'll need Karma

  1. Karma - npm install -g karma-cli
gulp test
  • noflag
    • continuously runs the test suite on every client JS change
  • --once
    • runs the test suite only once