-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json.template
84 lines (84 loc) · 1.93 KB
/
package.json.template
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "{{name}}",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
{{#useBundler}}
{{#hasWindow}}
"serve-window": "parcel serve ui/window/index.html --dist-dir dist/ui/window",
{{/hasWindow}}
{{#hasSidebar}}
"serve-sidebar": "parcel serve ui/sidebar/index.html --dist-dir dist/ui/sidebar",
{{/hasSidebar}}
{{#hasOverlay}}
"serve-overlay": "parcel serve ui/overlay/index.html --dist-dir dist/ui/overlay",
{{/hasOverlay}}
"build": "rm -rf dist && parcel build .",
{{/useBundler}}
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
{{#useBundler}}
"@parcel/transformer-sass": "^2.8.3",
{{/useBundler}}
"iina-plugin-definition": "^0.0.7",
{{#useBundler}}
"prettier": "^2.8.8",
"process": "^0.11.10"
{{/useBundler}}
},
"dependencies": {
{{#useBundler}}
"parcel": "^2.8.3",
"parcel-optimizer-webview": "git+https://github.com/iina/parcel-optimizer-webview.git",
{{/useBundler}}
{{#useReact}}
"react": "^18.2.0",
"react-dom": "^18.2.0"
{{/useReact}}
{{#useVue}}
"vue": "^3.3.4"
{{/useVue}}
},
"browserslist": "safari >= 9",
"entry": "src/index.js",
"targets": {
"main": false,
{{#hasWindow}}
"window": {
"distDir": "./dist/ui/window",
"source": "ui/window/index.html",
"publicUrl": "./"
},
{{/hasWindow}}
{{#hasOverlay}}
"overlay": {
"distDir": "./dist/ui/overlay",
"source": "ui/overlay/index.html",
"publicUrl": "./"
},
{{/hasOverlay}}
{{#hasSidebar}}
"sidebar": {
"distDir": "./dist/ui/sidebar",
"source": "ui/sidebar/index.html",
"publicUrl": "./"
},
{{/hasSidebar}}
{{#hasGlobal}}
"global": {
"distDir": "./dist/",
"source": "src/global.js",
"isLibrary": false
},
{{/hasGlobal}}
"entry": {
"distDir": "./dist/",
"source": "src/index.js",
"isLibrary": false
}
}
}