Created
October 21, 2016 13:09
-
-
Save HugoDF/6023a9ab877981335d1e50b131ca7da3 to your computer and use it in GitHub Desktop.
Library development with ES6, Babel, Mocha and npm scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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