Skip to content

Instantly share code, notes, and snippets.

@HugoDF
Created October 21, 2016 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HugoDF/6023a9ab877981335d1e50b131ca7da3 to your computer and use it in GitHub Desktop.
Save HugoDF/6023a9ab877981335d1e50b131ca7da3 to your computer and use it in GitHub Desktop.
Library development with ES6, Babel, Mocha and npm scripts
{
"name": "library-js",
"version": "1.0.0",
"description": "Starter for library development with ES6, Babel, Mocha and npm scripts",
"main": "./dist/index.js",
"scripts": {
"start": "npm run dev",
"dev": "npm test -- -w",
"init": "mkdir dist",
"clean": "rm -rf dist",
"prebuild": "npm run clean && npm run init",
"build": "babel ./src -d ./dist --ignore test.js",
"pretest": "npm run build",
"test": "mocha --compilers js:babel-core/register ./src/**/*.test.js",
"test:single": "mocha --compilers js:babel-core/register"
},
"author": "Hugo Di Francesco",
"devDependencies": {
"babel-cli": "^6.16.0",
"babel-core": "^6.17.0",
"babel-preset-es2015": "^6.16.0",
"chai": "^3.5.0",
"mocha": "^3.1.2"
},
"files": [
"dist"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment