-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
90 lines (90 loc) · 2.77 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
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
85
86
87
88
89
90
{
"name": "openscd-transpower",
"description": "Transpower OpenSCD distribution - A System Configuration Tool for managing IEC 61850 digital substations",
"license": "Apache-2.0",
"author": "Transpower New Zealand (Daniel Mulholland)",
"version": "0.2.0",
"main": "main.js",
"type": "module",
"scripts": {
"preinstall": "git submodule update --init --recursive --remote",
"build": "rimraf dist && rollup -c rollup.config.js && cp favicon.ico dist",
"deploy": "npm run preinstall && npm run build && gh-pages -d dist",
"deploy:nobuild": "gh-pages -d dist",
"deploy:prod": "gh-pages -d dist -o prod",
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
"start": "web-dev-server",
"pack:electron": "rimraf dist && npm run build && electron-builder build --win --dir",
"dist:electron": "rimraf dist && npm run build && electron-builder build --win",
"elec": "electron ."
},
"build": {
"productName": "OpenSCD TP",
"appId": "com.transpower.openscd-transpower",
"artifactName": "${name}_${os}_${arch}_${version}_${channel}.${ext}",
"extends": "electron-builder.cjs",
"win": {
"icon": "build/icons/win/icon.ico",
"target": [
"nsis",
"portable",
"msi"
],
"executableName": "OpenSCD_TP",
"fileAssociations": [
{
"ext": "scd"
},
{
"ext": "ssd"
},
{
"ext": "cid"
},
{
"ext": "icd"
},
{
"ext": "iid"
}
],
"signAndEditExecutable": true
},
"msi": {
"createDesktopShortcut": "always",
"createStartMenuShortcut": true,
"menuCategory": "Transpower",
"oneClick": false,
"perMachine": true
},
"nsis": {
"artifactName": "${name}_${os}_${arch}_${version}_${channel}_nsis.${ext}",
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"license": "LICENCE.md",
"oneClick": false,
"perMachine": true,
"selectPerMachineByDefault": true,
"menuCategory": "Transpower"
}
},
"devDependencies": {
"@babel/preset-env": "^7.16.4",
"@open-wc/building-rollup": "^2.0.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@web/dev-server": "^0.1.34",
"@web/rollup-plugin-html": "^1.11.0",
"@web/rollup-plugin-import-meta-assets": "^1.0.7",
"babel-plugin-template-html-minifier": "^4.1.0",
"electron": "^34.1.1",
"electron-builder": "^25.1.8",
"gh-pages": "^4.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.60.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-workbox": "^6.2.0"
}
}