This repository was archived by the owner on Jul 15, 2025. It is now read-only.
forked from BlueSky-07/Shuang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
51 lines (51 loc) · 2.72 KB
/
Copy pathpackage.json
File metadata and controls
51 lines (51 loc) · 2.72 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
49
50
51
{
"name": "Shuang",
"version": "5.18.0",
"description": "帮助你快速上手双拼输入法",
"scripts": {
"clear": "node scripts/clear.js",
"bundle": "node scripts/bundle.js",
"rename": "node scripts/rename.js",
"build": "npm run clear && npm run build:src && npm run rename && mshta vbscript:CreateObject(\"Wscript.Shell\").popup(\"编译完成\",0,\"Visual Studio Code\",64)(window.close)",
"build:src": "npm run bundle && npm run build:js && npm run build:css && npm run build:html && npm run build:pwa",
"build:js": "npx babel src/app.bundle.js -d build && npx babel src/scheme -d build/scheme",
"build:css": "npx cleancss src/style.css -o build/style.min.css",
"build:html": "npx html-minifier --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 index.src.html -o index.html",
"build:pwa": "npx babel PWA/sw.js -o sw.js && node scripts/copy.js PWA/manifest.webmanifest manifest.webmanifest",
"debug": "npm run clear && npm run debug:src && npm run rename",
"debug:src": "npm run bundle && npm run debug:js && npm run debug:css && npm run debug:html && npm run debug:pwa",
"debug:js": "node scripts/copy.js src/app.bundle.js build/app.min.js && node scripts/copy.js src/scheme build/scheme",
"debug:css": "node scripts/copy.js src/style.css build/style.min.css",
"debug:html": "node scripts/copy.js index.src.html index.html",
"debug:pwa": "node scripts/copy.js PWA/manifest.webmanifest manifest.webmanifest && node scripts/copy.js PWA/sw.js sw.js",
"debug:fast": "node scripts/clear.js && npm run bundle && node scripts/copy.js src/app.bundle.js build/app.min.js && node scripts/copy.js src/scheme build/scheme && node scripts/copy.js src/style.css build/style.min.css && node scripts/copy.js index.src.html index.html && node scripts/copy.js PWA/manifest.webmanifest manifest.webmanifest && node scripts/copy.js PWA/sw.js sw.js && npm run rename",
"start": "npx serve",
"release": "node scripts/release.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BlueSky-07/Shuang.git"
},
"keywords": [
"双拼",
"练习"
],
"author": "BlueSky",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/BlueSky-07/Shuang/issues"
},
"homepage": "https://api.ihint.me/shuang",
"devDependencies": {
"@babel/cli": "latest",
"@babel/core": "latest",
"@babel/preset-env": "latest",
"babel-preset-minify": "latest",
"clean-css-cli": "latest",
"html-minifier": "latest",
"fs-extra": "latest",
"serve": "latest",
"archiver": "latest"
},
"dependencies": {}
}