-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathpackage.json
57 lines (57 loc) · 2.18 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "uQRCode",
"version": "4.0.7",
"description": "",
"main": "dist/uqrcode.es.js",
"type": "module",
"formats": [
{
"name": "amd",
"description": "异步模块定义,适用于 RequireJS 等模块加载器"
},
{
"name": "cjs",
"description": "CommonJS,适用于 Node 环境和其他打包工具(别名:commonjs)"
},
{
"name": "es",
"description": "将 bundle 保留为 ES 模块文件,适用于其他打包工具以及支持 <script type=module> 标签的浏览器(别名: esm,module)"
},
{
"name": "umd",
"description": "通用模块定义,生成的包同时支持 amd、cjs 和 iife 三种格式"
}
],
"scripts": {
"dev": "rollup -c -w",
"build:amd": "rollup ./src/main.js -f amd -o ./dist/uqrcode.amd.js",
"build:cjs": "rollup ./src/main.js -f cjs -o ./dist/uqrcode.cjs.js",
"build:es": "rollup ./src/main.js -f es -o ./dist/uqrcode.es.js",
"build:iife": "rollup ./src/main.js -f iife -n UQRCode -o ./dist/uqrcode.iife.js",
"build:umd": "rollup ./src/main.js -f umd -n UQRCode -o ./dist/uqrcode.umd.js",
"build:all": "npm run build:amd && npm run build:cjs && npm run build:es && npm run build:iife && npm run build:umd",
"build:default": "rollup -c",
"build:banner": "rollup -c --configBanner",
"build:copy": "rollup -c --configCopy",
"build": "npm run build:default && npm run build:banner && npm run build:copy",
"install:test:node": "cd test/node && npm install",
"install:test:uni-app": "cd test/uni-app && npm install",
"test:html": "live-server --port=9999 --open=test/html",
"test:uni-app:h5": "cd test/uni-app && npm run dev:h5",
"test:uni-app:mp-weixin": "cd test/uni-app && npm run dev:mp-weixin",
"test:uni-app:app": "cd test/uni-app && npm run dev:app-plus",
"test:node": "cd test/node && node index.js",
"test": "npm run test:html"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-replace": "^5.0.1",
"live-server": "^1.2.2",
"rollup": "^2.79.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-watch": "^4.3.1"
}
}