This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
39 lines (39 loc) · 1.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"name": "digi-r",
"version": "1.0.0",
"description": "by mohammad mirzaei",
"main": "index.js",
"scripts": {
"sass": "node-sass src/css/main.scss src/css/index.css --watch",
"server": "browser-sync start --server src --files src",
"css": "postcss --use cssnano --no-map \"src/css/index.css\" -d dist/css/",
"html": "html-minifier --input-dir ./src --output-dir ./dist --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true --file-ext html",
"js": "mkdirp dist/js && uglifyjs src/js/index.js -o dist/js/index.js",
"images": "imagemin \"src/img/**/*.*\" --out-dir=dist/img --plugin=mozjpeg --plugin=pngquant",
"copyroot": "copyfiles --up 1 --exclude \"src/*.html\" --all \"src/*\" \"src/fonts/*\" dist",
"copyjs": "copyfiles --up 1 --exclude src/js/index.js --all \"src/js/*.js\" dist",
"copycss": "copyfiles --up 1 --exclude src/css/index.css --all \"src/css/*.css\" dist",
"prebuild": "rimraf dist/{*.*,css/*,img/*,js/*}",
"build": "run-s css html js images copyroot copyjs copycss"
},
"author": "mohammad mirzaei",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^9.7.2",
"browser-sync": "^2.26.7",
"browserify": "^16.5.0",
"copyfiles": "^2.1.1",
"cssnano": "^4.1.10",
"html-minifier": "^4.0.0",
"imagemin-cli": "^5.0.0",
"imagemin-mozjpeg": "^8.0.0",
"imagemin-pngquant": "^8.0.0",
"mkdirp": "^0.5.1",
"npm-run-all": "^4.1.5",
"postcss": "^7.0.23",
"postcss-cli": "^6.1.3",
"rimraf": "^3.0.0",
"uglify-es": "^3.3.9",
"uglify-js": "^3.7.0"
}
}