NPM as a build system example.
{ | |
"name": "npm as a build system example.", | |
"description": "This is a simple example of using npm as a build system.", | |
"repository": "n/a", | |
"license": "MIT", | |
"author": "Steven Lacks <snlacks@gmail.com> (https://lookami.com)", | |
"scripts": { | |
"build": "npm run lint && npm run test && npm run compile-js", | |
"compile-js": "babel src --out-file public/js/bundle.js --source-maps inline", | |
"lint": "eslint src", | |
"start": "http-server -p 3000", | |
"test": "mocha", | |
"auto-start": "nodemon --exec \"npm run build && npm start\" --ignore public/js" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"babel": "^5.8.21", | |
"eslint": "^1.1.0", | |
"http-server": "^0.8.0", | |
"mocha": "^2.2.5", | |
"nodemon": "^1.4.1" | |
} | |
} |
// Example Project's File Structure | |
// src/ | |
// public/ | |
// js/ | |
// css/ | |
// ... | |
// app.js | |
// README.md | |
// package.js | |
// .eslintrc | |
// .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment