forked from Robinfr/electron-react-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
133 lines (133 loc) · 3.95 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
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "electron-react-typescript",
"version": "0.0.4",
"description": "",
"main": "./dist/main.js",
"scripts": {
"build-main": "cross-env NODE_ENV=production webpack --config webpack.main.prod.config.js",
"build-renderer": "cross-env NODE_ENV=production webpack --config webpack.renderer.prod.config.js",
"build": "npm run build-main && npm run build-renderer",
"start-renderer-dev": "webpack-dev-server --config webpack.renderer.dev.config.js",
"start-main-dev": "webpack --config webpack.main.config.js && electron ./dist/main.js",
"start-dev": "cross-env START_HOT=1 npm run start-renderer-dev",
"prestart": "npm run build",
"start": "electron .",
"lint": "tslint '{src,test,mocks}/**/*.{ts,tsx}' --project ./tsconfig.json",
"precommit": "lint-staged",
"test": "jest '(\\/test\\/(?!e2e/)).*'",
"pretest:e2e": "npm run build",
"test:e2e": "jest '(\\/test\\/e2e/).*'",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder",
"postinstall": "electron-builder install-app-deps"
},
"lint-staged": {
"{src,test,mocks}/**/*.{js,ts,tsx,json,css,scss,md}": [
"prettier --config ./.prettierrc --write",
"git add"
],
"{src,test,mocks}/**/*.{js,ts,tsx}": [
"tslint --project ./tsconfig.json --fix",
"git add"
]
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/test/.+\\.spec)\\.tsx?$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"node"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/mocks/fileMock.js",
"\\.(s?css|sass)$": "<rootDir>/mocks/styleMock.js"
}
},
"build": {
"productName": "ProductName",
"appId": "org.your.productname",
"mac": {
"category": "your.app.category.type"
},
"directories": {
"output": "release"
},
"files": [
"dist/",
"node_modules/",
"package.json"
],
"linux": {
"target": "deb"
},
"win": {
"target": "nsis"
}
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:Robinfr/electron-react-typescript.git"
},
"author": {
"name": "Your name",
"email": "Your email"
},
"license": "SEE LICENSE",
"bugs": {
"url": "https://github.com/Robinfr/electron-react-typescript/issues"
},
"homepage": "https://github.com/Robinfr/electron-react-typescript",
"devDependencies": {
"@types/electron-devtools-installer": "^2.0.2",
"@types/jest": "^21.1.9",
"@types/react": "^16.0.31",
"@types/react-dom": "^16.0.3",
"@types/react-hot-loader": "^3.0.5",
"@types/react-redux": "^6.0.6",
"@types/react-test-renderer": "^16.0.0",
"@types/webdriverio": "^4.8.7",
"@types/webpack-env": "^1.13.3",
"awesome-typescript-loader": "^3.4.1",
"cross-env": "^5.1.3",
"css-loader": "^0.28.7",
"electron": "^2.0.8",
"electron-builder": "^20.28.2",
"electron-devtools-installer": "^2.2.4",
"file-loader": "^1.1.6",
"html-webpack-plugin": "^2.30.1",
"husky": "^0.14.3",
"image-webpack-loader": "^3.4.2",
"jest": "^23.5.0",
"lint-staged": "^6.0.0",
"node-sass": "^4.7.2",
"prettier": "^1.9.2",
"react-hot-loader": "^3.1.3",
"react-test-renderer": "^16.2.0",
"redux-devtools-extension": "^2.13.5",
"sass-loader": "^6.0.6",
"source-map-loader": "^0.2.3",
"spectron": "^3.8.0",
"style-loader": "^0.19.1",
"ts-jest": "^23.1.4",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.4.2",
"tslint-config-prettier": "^1.6.0",
"tslint-react": "^3.2.0",
"typescript": "^3.0.1",
"uglifyjs-webpack-plugin": "^1.1.4",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.7",
"webpack-merge": "^4.1.1"
},
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-redux": "^5.0.7",
"redux": "^4.0.0"
}
}