-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
48 lines (48 loc) · 2.43 KB
/
package.json
File metadata and controls
48 lines (48 loc) · 2.43 KB
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
40
41
42
43
44
45
46
47
48
{
"name": "method-tutor",
"description": "An interactive method tutor.",
"version": "0.1.0",
"license": "GPL-2.0+",
"repository": {
"type": "git",
"url": "git://github.com/bobwallis/MethodTutor.git"
},
"scripts": {
"build:css": "postcss src/css/style.css -o web/style.css --use postcss-import --use postcss-nesting --use postcss-csso --map.inline false",
"build:js": "rollup src/js/app.js --file web/app.js --format iife --name app --sourcemap --compact && terser web/app.js --compress toplevel=true,pure_getters=true,unsafe=true,passes=3 --mangle --keep-fnames --source-map 'content=web/app.js.map' -o web/app.js",
"build:serviceworker": "cp src/js/service-worker.js web/service-worker.js && replace-in-file '{{DATE}}' $(date -u +%Y%m%d%H%M%S) web/service-worker.js && terser web/service-worker.js -o web/service-worker.js",
"build:html": "cp src/html/index.html web/index.html && replace-in-file '{{DATE}}' $(date -u +%Y%m%d%H%M%S) web/index.html && html-minifier-terser --collapse-whitespace --remove-comments -o web/index.html web/index.html",
"build:img": "svgo -f src/img -o web && cp src/img/*.png web/ && cp src/img/*.ico web/",
"build:manifest": "cp src/manifest/manifest.json web/",
"build:favicon": "cp src/img/favicon.* web/",
"build": "npm-run-all --parallel build:*",
"watch": "npm-run-all --parallel watch:*",
"watch:css": "onchange 'src/css/**/*.css' -- npm run build:css",
"watch:js": "onchange 'src/js/**/*.js' -- npm run build:js",
"watch:serviceworker": "onchange 'src/js/service-worker.js' -- npm run build:serviceworker",
"watch:html": "onchange 'src/html/**/*.html' -- npm run build:html",
"watch:img": "onchange 'src/img/**/*.{svg,png,ico}' -- npm run build:img",
"watch:manifest": "onchange 'src/manifest/manifest.json' -- npm run build:manifest",
"watch:favicon": "onchange 'src/img/favicon.*' -- npm run build:favicon",
"serve": "npx http-server ./web -r",
"start": "npm-run-all build --parallel watch serve"
},
"browserslist": [
"last 3 versions"
],
"devDependencies": {
"autoprefixer": "^10.4.21",
"html-minifier-terser": "^7.2.0",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"postcss": "^8.5.3",
"postcss-cli": "^11.0.1",
"postcss-csso": "^6.0.1",
"postcss-import": "^16.1.0",
"postcss-nesting": "^14.0.0",
"replace-in-file": "^8.4.0",
"rollup": "^4.40.0",
"svgo": "^4.0.1",
"terser": "^5.39.0"
}
}