├── .gitignore ├── README.md ├── LICENSE └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # npm-build-boilerplate 2 | 3 | ![TotalDownloads](https://img.shields.io/npm/dt/npm-build-boilerplate.svg) 4 | ![NPM Version](https://img.shields.io/npm/v/npm-build-boilerplate.svg) 5 | ![License](https://img.shields.io/npm/l/npm-build-boilerplate.svg) 6 | 7 | Download via npm 8 | `npm i npm-build-boilerplate` 9 | 10 | ## Disclaimer 11 | Do you think Gulp has killed Grunt. Definetly no, npm has killed both of them. 12 | This boilerplate is all about using npm as build commands. 13 | 14 | ## Links 15 | I have written an article called **[npm as build tool](https://tinyurl.com/lfuqw5u)**. You can view it for further understanding. 16 | 17 | ## Contribution 18 | If you find anything to improve this boilerplate, feel free to submit an issue, create a pull request or spread the word. 19 | 20 | Have you find it helpful, show your interest by clicking :star: 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Madhankumar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "npm-build-boilerplate", 3 | "version": "2.0.0", 4 | "description": "Boilerplate for npm as build tool", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "concurrently -k \"npm run dev\" \"npm run watch-css\"", 8 | "dev": "lite-server", 9 | "db": "json-server --watch db.json --port 3005", 10 | "build-js": "mkdir -p dist/js && uglifyjs src/js/*.js -m -o dist/js/app.js", 11 | "lint": "lint jshint src/**/**.js", 12 | "build-css": "node-sass --include-path scss scss/main.scss assets/main.css", 13 | "watch-css": "nodemon -e scss -x \"npm run build-css\"", 14 | "test": "mocha test", 15 | "pretest": "npm run lint", 16 | "posttest": "echo the test has been run!", 17 | "bash": "Location of the bash/shell script file", 18 | "clean": "rimraf ./dist/*" 19 | }, 20 | "repository": { 21 | "type": "git", 22 | "url": "git+https://github.com/madhankumar028/npm-build-boilerplate.git" 23 | }, 24 | "keywords": [ 25 | "npm-build-boilerplate", 26 | "buildcommands" 27 | ], 28 | "author": "MadhankumarJ ", 29 | "license": "ISC", 30 | "bugs": { 31 | "url": "https://github.com/madhankumar028/npm-build-boilerplate/issues" 32 | }, 33 | "homepage": "https://github.com/madhankumar028/npm-build-boilerplate#readme", 34 | "devDependencies": { 35 | "concurrently": "^3.5.0", 36 | "jshint": "^2.9.5", 37 | "json-server": "^0.12.0", 38 | "lite-server": "^2.3.0", 39 | "node-sass": "^4.5.3", 40 | "nodemon": "^1.12.1", 41 | "uglifyjs": "^2.4.11" 42 | } 43 | } 44 | --------------------------------------------------------------------------------