Project description, Version #.
- Install:
- Clone the repository.
cd {YOUR_GIT_HOME}
git clone https://{YOUR_USERNAME}@{YOUR_GIT_REPO}
- Use NPM to also install Bower and Grunt.
npm install -g bower grunt-cli
- Install project dependencies.
cd {YOUR_GIT_HOME}/{PROJECT_NAME}
npm install
bower install
- Run
grunt
to bootstrap your local environment.
Run grunt prod
to build and compile all production assets.
-
For Sandbox:
NODE_ENV=SAND forever -o logs/out.log -e logs/err.log start server.js
-
For Production:
grunt prod
(builds prod files and runs tests once for CI to parse junit XML) ORNODE_ENV=PROD forever -o logs/out.log -e logs/err.log start server.js
- The default is http://localhost:3000. Sandbox and Production will be port 8080.
- By default,
grunt test
is configured to run beforegit push
via apre-push
hook. To bypass this, rungit push --no-verify
.
grunt
: Builds dev files, starts servers (node, jasmine_node and karma) and sets watches to auto-compile EJS and LESS files. It stays in the foreground until you kill the Grunt process withCTRL + C
. Run this when working on your local environment.grunt build:dev
: Compiles EJS and LESS files and exits. Run this when you want to recompile all EJS and LESS files.grunt build:prod
: Compiles, minifies and cache-busts EJS and LESS templates and exits. Run this when you want to test compiled + minified assets for production.grunt test:(server|unit|e2e)
: Runs the specific type of tests and exits. Run this when you just want to test specific areas of code.grunt test
: Runsbuild:dev
, all tests and exits. This will be automatically run beforegit push
.
grunt prod
: Builds files for production, runs all tests (which generates JUnit XML reports) and exits. This is automatically run in the Bamboo CI server.