Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

CodeVachon/express4-bootstrape-jade-baseline

Repository files navigation

Express4 Bootstrape Jade Baseline

Join the chat at https://gitter.im/liaodrake/express4-bootstrape-jade-baseline

This is a Jump Off Point for Express 4 Sites

Includes:

Setup

  1. Change the name in the package.json.
  2. Run npm install to get all dependencies
  3. Run grunt build to build your assets
  4. Start the server
    • Locally Run nodemon server.js
    • Server Run npm start

Assests

Assets are named by the name value in the package.json file.

JavaScript / Coffee

CoffeeScript compile will build all *.coffee files in /src/coffee into /public/js/. These can then be run through JSHint and uglify to compile into a single minified file with a sourceMap.

CSS / LESS

LESS compile will compile and minify the /src/less/bootstrap.less file into the /public/css/ folder.

Grunt watch

Grunt watch has been setup to watch the /src directory and will by default, run all the assets to compile to minified versions.

grunt watch

Testing

Mocha with SuperTest is setup as a basic test sweet. use npm test to run the defined tests in the /tests directory.

npm test