|
11 | 11 | "url": "graph.cool"
|
12 | 12 | },
|
13 | 13 | "main": "lib/main.js",
|
14 |
| - "build": { |
15 |
| - "fileAssociations": [ |
16 |
| - { |
17 |
| - "ext": "graphql", |
18 |
| - "name": "GraphQL", |
19 |
| - "description": "GraphQL file", |
20 |
| - "role": "Editor" |
21 |
| - } |
22 |
| - ] |
23 |
| - }, |
24 |
| - "scripts": { |
25 |
| - "build-ts": "rm -rf lib && tsc --target es5", |
26 |
| - "build-webpack": "rm -rf ./dist && NODE_ENV=production GRAPHQL_ENDPOINT=$BACKEND_ADDR/system webpack --config webpack.config.build.js && cp -r static/* dist", |
27 |
| - "build": "npm run build-ts && npm run build-webpack && cp -r dist lib && rm -rf ./build-electron", |
28 |
| - "mac": "npm run build && electron-builder -m", |
29 |
| - "release": "npm run build && electron-builder -lmw", |
30 |
| - "library": "rm -rf .happypack && NODE_ENV=production webpack --config webpack.library.js -p", |
31 |
| - "lint": "tslint \"src/**/*.ts{,x}\" && lint-staged", |
32 |
| - "start": "yarn build-ts && concurrently \"yarn react-start\" \"wait-on http://localhost:4040/ && yarn electron-start\"", |
33 |
| - "react-start": "webpack-dev-server --hot --profile --history-api-fallback --host 0.0.0.0 --port 4040", |
34 |
| - "electron-start": "electron lib/main", |
35 |
| - "stats": "NODE_ENV=production webpack --config webpack.library.js --profile --json > stats.json", |
36 |
| - "test": "npm run lint", |
37 |
| - "precommit": "lint-staged", |
38 |
| - "prettier": "prettier --single-quote --no-semi --trailing-comma all --write '*.{js,ts,tsx}' 'src/**/*.{js,ts,tsx}'" |
39 |
| - }, |
40 |
| - "lint-staged": { |
41 |
| - "*.{ts,tsx}": [ |
42 |
| - "prettier --single-quote --no-semi --trailing-comma all --write", |
43 |
| - "tslint", |
44 |
| - "git add" |
45 |
| - ] |
46 |
| - }, |
47 |
| - "pre-push": [ |
48 |
| - "test-quick" |
49 |
| - ], |
50 | 14 | "build": {
|
51 | 15 | "appId": "cool.graph.playground",
|
52 | 16 | "mac": {
|
|
92 | 56 | "role": "Editor"
|
93 | 57 | }
|
94 | 58 | },
|
| 59 | + "scripts": { |
| 60 | + "build-ts": "rimraf lib && tsc --target es5", |
| 61 | + "build-webpack": "rimraf ./dist && NODE_ENV=production GRAPHQL_ENDPOINT=$BACKEND_ADDR/system webpack --config webpack.config.build.js && cp -r static/* dist", |
| 62 | + "build": "npm run build-ts && npm run build-webpack && cp -r dist lib && rimraf ./build-electron", |
| 63 | + "mac": "npm run build && electron-builder -m", |
| 64 | + "release": "npm run build && electron-builder -lmw", |
| 65 | + "library": "rimraf .happypack && NODE_ENV=production webpack --config webpack.library.js -p", |
| 66 | + "lint": "tslint \"src/**/*.ts{,x}\" && lint-staged", |
| 67 | + "start": "yarn build-ts && concurrently \"yarn react-start\" \"wait-on http://localhost:4040/ && yarn electron-start\"", |
| 68 | + "react-start": "webpack-dev-server --hot --profile --history-api-fallback --host 0.0.0.0 --port 4040", |
| 69 | + "electron-start": "electron lib/main", |
| 70 | + "stats": "NODE_ENV=production webpack --config webpack.library.js --profile --json > stats.json", |
| 71 | + "test": "npm run lint", |
| 72 | + "precommit": "lint-staged", |
| 73 | + "prettier": "prettier --single-quote --no-semi --trailing-comma all --write '*.{js,ts,tsx}' 'src/**/*.{js,ts,tsx}'" |
| 74 | + }, |
| 75 | + "lint-staged": { |
| 76 | + "*.{ts,tsx}": [ |
| 77 | + "prettier --single-quote --no-semi --trailing-comma all --write", |
| 78 | + "tslint", |
| 79 | + "git add" |
| 80 | + ] |
| 81 | + }, |
| 82 | + "pre-push": [ |
| 83 | + "test-quick" |
| 84 | + ], |
95 | 85 | "dependencies": {
|
96 | 86 | "classnames": "^2.2.5",
|
97 | 87 | "date-fns": "^1.28.5",
|
|
155 | 145 | "react-addons-test-utils": "^15.3.2",
|
156 | 146 | "react-test-renderer": "^15.3.2",
|
157 | 147 | "redux-mock-store": "^1.2.1",
|
| 148 | + "rimraf": "^2.6.2", |
158 | 149 | "style-loader": "^0.18.2",
|
159 | 150 | "svgo-loader": "^1.1.0",
|
160 | 151 | "ts-loader": "^2.3.2",
|
|
0 commit comments