User Tools

Site Tools


technical_notes:public:20140220-javascript-nodejs-packagejson

Parent

Javascript - NodeJs - Package.json

{
  "name": "node-dojo",
  "version": "0.0.0",
  "description": "A step by step repo to Node.js",
  "main": "index.js",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "test": "mocha list test/test-*.js",
    "testd": "mocha --debug-brk list test/test-*.js"
  },
  "devDependencies": {
    "chai": "~1.8.1",
    "mocha": "~1.14.0",
    "trycatch": "~1.0.5"
  },
  "dependencies": {
    "express": "~3.4.4"
  }
}

How to execute commands in scripts part ?

- Execute unit tests with debugger

npm run test

- Execute unit tests with debugger

npm run testd
technical_notes/public/20140220-javascript-nodejs-packagejson.txt · Last modified: 2014/02/20 18:13 by Fabien Arcellier