Michael Davis | 76720ce | 2017-02-14 13:44:31 -0600 | [diff] [blame] | 1 | { |
| 2 | "name": "openbmc-wires", |
| 3 | "version": "0.0.1", |
| 4 | "scripts": { |
| 5 | "clean": "rimraf dist/*", |
| 6 | "prebuild": "npm run clean -s", |
| 7 | "scss": "node-sass --output-style compressed -o dist/css src/scss/", |
| 8 | "autoprefixer": "postcss -u autoprefixer -r dist/css/*", |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 9 | "uglify": "mkdir -p dist/js && cat src/js/*.js > dist/js/app.min.js && uglifyjs dist/js/app.min.js -m -o dist/js/app.min.js && mkdir -p dist/js/vendor && cat node_modules/angular/angular.js node_modules/angular-route/angular-route.js node_modules/zepto/dist/zepto.js > dist/js/vendor/vendor.min.js && uglifyjs dist/js/vendor/vendor.min.js -m -o dist/js/vendor/vendor.min.js", |
Michael Davis | 76720ce | 2017-02-14 13:44:31 -0600 | [diff] [blame] | 10 | "imagemin": "imagemin src/img/* --out-dir=dist/img/", |
| 11 | "serve": "browser-sync start --server 'dist' --files 'dist/css/*.css, dist/js/*.js, dist/*.html'", |
| 12 | "build:css": "npm run scss && npm run autoprefixer", |
| 13 | "build:js": "npm run uglify", |
| 14 | "build:html": "html-minifier --input-dir ./src/ --output-dir ./dist --collapse-whitespace --remove-comments --file-ext html ", |
| 15 | "build:images": "npm run imagemin ", |
| 16 | "build:all": "npm run prebuild && npm run build:css && npm run build:js && npm run build:html && npm run build:images", |
| 17 | "watch:css": "onchange 'src/scss/' -- npm run build:css", |
| 18 | "watch:js": "onchange 'src/js/*.js' -- npm run build:js", |
| 19 | "watch:html": "onchange 'src/*.html' -- npm run build:html", |
| 20 | "watch:images": "onchange 'src/img/*.*' -- npm run build:images", |
| 21 | "watch:all": "parallelshell 'npm run serve' 'npm run watch:css' 'npm run watch:js' 'npm run watch:html'", |
| 22 | "postinstall": "npm run build:all && npm run watch:all", |
| 23 | "start": "npm run build:all && npm run watch:all", |
| 24 | "gzip": "tar -czf openBMC.tar.gz dist" |
| 25 | }, |
| 26 | "devDependencies": { |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 27 | "angular": "^1.5.6", |
| 28 | "angular-route": "^1.5.6", |
Michael Davis | 76720ce | 2017-02-14 13:44:31 -0600 | [diff] [blame] | 29 | "autoprefixer": "^6.6.1", |
| 30 | "browser-sync": "^2.18.6", |
| 31 | "html-minifier": "^3.3.0", |
| 32 | "imagemin-cli": "^3.0.0", |
Michael Davis | 76720ce | 2017-02-14 13:44:31 -0600 | [diff] [blame] | 33 | "node-sass": "^4.3.0", |
| 34 | "onchange": "^3.2.1", |
| 35 | "parallelshell": "^2.0.0", |
| 36 | "postcss-cli": "^2.6.0", |
| 37 | "uglify-js": "^2.7.5", |
| 38 | "zepto": "^1.2.0" |
| 39 | }, |
| 40 | "dependencies": { |
| 41 | "imagemin": "^5.2.2" |
| 42 | } |
| 43 | } |