-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
executable file
·29 lines (29 loc) · 1.42 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
{
"name": "gablaxian",
"version": "1.0.0",
"description": "gablaxian website",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/gablaxian/gablaxian.com.git"
},
"scripts": {
"clean": "rm -rf source/assets && mkdir source/assets",
"fonts": "cp -rf assets/fonts source/assets",
"images": "cp -rf assets/img source/assets",
"sass": "sass --style=compressed assets/sass/build.scss source/assets/css/main.css",
"serviceWorker": "cp -f assets/js/ServiceWorker.js source/ServiceWorker.js",
"rollup": "rollup -c -f es",
"stats:css": "echo \"--------------\nSize of main.css is $(stat -f%B \"source/assets/css/main.css\") bytes ($(gzip -c source/assets/css/main.css | wc -c) bytes gzipped)\n--------------\"",
"stats:js": "echo \"--------------\nSize of main.js is $(stat -f%B \"source/assets/js/main.js\") bytes ($(gzip -c source/assets/js/main.js | wc -c) bytes gzipped)\n--------------\"",
"stats": "npm run stats:css --silent && npm run stats:js --silent",
"init": "npm run fonts --silent & npm run images --silent & npm run sass --silent & npm run serviceWorker --silent & npm run rollup --silent",
"build": "npm run clean --silent && npm run init --silent && npm run stats --silent",
"build:watch": "onchange 'assets/sass/**/*.scss' -- npm run sass"
},
"devDependencies": {
"onchange": "^7.1.0",
"rollup": "^2.79.0",
"sass": "^1.54.8"
}
}