-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
121 lines (121 loc) · 3.87 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"name": "electron-boilerplate",
"version": "0.1.0",
"description": "A minimal boilerplate for an Electron + React application.",
"main": "dist/main.js",
"author": "iyonaga <yiyonaga@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/iyonaga/electron-boilerplate.git"
},
"scripts": {
"dev": "yarn dev:renderer",
"dev:main": "cross-env BABEL_ENV=main NODE_ENV=development electron ./src/main/index.dev.ts",
"dev:renderer": "cross-env BABEL_ENV=renderer webpack-dev-server --mode development --config webpack.renderer.config.js",
"build": "yarn build:main && yarn build:renderer",
"build:main": "cross-env BABEL_ENV=main webpack --mode production --config webpack.main.config.js",
"build:renderer": "cross-env BABEL_ENV=renderer webpack --mode production --config webpack.renderer.config.js",
"package": "yarn build && electron-builder -mw --x64",
"package:mac": "yarn build && electron-builder --mac --x64",
"package:win": "yarn build && electron-builder --win --x64",
"postinstall": "electron-builder install-app-deps",
"prestart": "yarn build",
"start": "electron .",
"lint": "yarn lint:js & yarn lint:scss",
"lint:js": "eslint --ext .js,.jsx src --format codeframe",
"lint:scss": "stylelint './src/**/*.{css,scss}'",
"format": "yarn format:js && yarn format:scss",
"format:js": "prettier-eslint --write './src/**/*.{js,jsx}'",
"format:scss": "prettier --write './src/**/*.{css,scss}' && stylelint --fix './src/**/*.{css,scss}'"
},
"build": {
"appId": "com.electron.boilerplate",
"files": [
"dist/",
"package.json"
],
"directories": {
"buildResources": "resources",
"output": "release"
},
"dmg": {
"contents": [
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 220,
"type": "file"
}
]
},
"mac": {
"target": "dmg"
},
"win": {
"target": "nsis"
},
"publish": null
},
"devDependencies": {
"@babel/core": "^7.16.5",
"@babel/plugin-proposal-class-properties": "^7.16.5",
"@babel/plugin-proposal-function-bind": "^7.16.5",
"@babel/preset-env": "^7.16.5",
"@babel/preset-react": "^7.16.5",
"@babel/preset-typescript": "^7.16.5",
"@babel/register": "^7.16.5",
"@types/node": "^17.0.2",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@types/webpack-env": "^1.16.3",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.3",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.3",
"css-hot-loader": "^1.4.4",
"css-loader": "^6.5.1",
"cssnano": "^5.0.14",
"electron": "^16.0.5",
"electron-builder": "^22.14.5",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.1",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^3.0.0",
"lint-staged": "^12.1.3",
"mini-css-extract-plugin": "^2.4.5",
"node-sass": "^7.0.0",
"postcss-loader": "^6.2.1",
"prettier": "^2.5.1",
"prettier-eslint-cli": "^5.0.1",
"prettier-stylelint": "^0.4.2",
"react-hot-loader": "^4.13.0",
"sass-loader": "^12.4.0",
"sass-resources-loader": "^2.2.4",
"stylelint": "^14.2.0",
"stylelint-config-standard": "^24.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.1.0",
"svg-url-loader": "^7.1.1",
"terser-webpack-plugin": "^5.3.0",
"typescript": "^4.5.4",
"url-loader": "^4.1.1",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.7.0"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}