1.0.0 • Published 10 years ago
cfUtilityService v1.0.0
Getting Started
Clone the repo:
git clone git@github.com:KunalKapadia/cfUtilityService.git
cd cfUtilityServiceInstall dependencies:
npm installStart server:
# set DEBUG env variable to get debug logs
DEBUG=cfUtilityService:* npm start
# OR
# requires gulp to be installed globally
npm i -g gulp
gulp serveExecute tests:
# compile with babel and run tests
npm test (or gulp mocha)
# use --code-coverage-reporter text to get code coverage for each file
gulp mocha --code-coverage-reporter textOther gulp tasks:
# Wipe out dist and coverage directory
gulp clean
# Lint code with ESLint
gulp lint
# Default task: Wipes out dist and coverage directory. Compiles using babel.
gulpCommit:
Follows AngularJS's commit message convention
# Lint and execute tests before committing code.
npm run commit
# OR
# use git commit directly with correct message convention.
git commit -m "chore(ghooks): Add pre-commit and commit-msg ghook"Code Coverage
Get code coverage summary on executing npm test
npm test also generates HTML code coverage report in coverage/ directory. Open lcov-report/index.html to view it.

1.0.0
10 years ago