-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
executable file
·31 lines (31 loc) · 1.26 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
{
"name": "npm-scripts",
"version": "1.1.0",
"private": true,
"scripts": {
"scss": "sass assets/scss/style.scss dist/css/style.css",
"concat:css": "concat -o dist/css/styles.css dist/css/style.css assets/css/test.css",
"concat:js": "mkdir -p dist/js && concat -o dist/js/scripts.js assets/js/test1.js assets/js/test2.js",
"concat": "npm run concat:css && npm run concat:js",
"cssmin": "cleancss -o dist/css/styles.min.css dist/css/styles.css",
"uglify": "uglifyjs -o dist/js/scripts.min.js dist/js/scripts.js",
"squoosh": "squoosh-cli --mozjpeg '{quality:70}' assets/img -d dist/img",
"build:css": "npm run scss && npm run concat:css && npm run cssmin",
"build:js": "npm run concat:js && npm run uglify",
"build:img": "npm run squoosh",
"build": "npm run build:css && npm run build:js && npm run build:img",
"watch:css": "onchange 'assets/scss/*.scss' -- npm run build:css",
"watch:js": "onchange 'assets/js/*.js' -- npm run build:js",
"watch": "npm-run-all --parallel watch:*"
},
"devDependencies": {
"@squoosh/cli": "^0.7.2",
"clean-css-cli": "^5.5.0",
"concat": "^1.0.3",
"npm": "^8.3.0",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"sass": "^1.48.0",
"uglify-js": "^3.14.5"
}
}