|
3 | 3 | "name": "playground", |
4 | 4 | "productName": "GraphQL Playground", |
5 | 5 | "homepage": "https://github.com/graphcool/graphql-playground", |
| 6 | + "repository": "graphcool/graphql-playground", |
6 | 7 | "description": "Playground app", |
7 | 8 | "version": "1.0.0", |
8 | 9 | "author": { |
|
12 | 13 | }, |
13 | 14 | "main": "lib/main.js", |
14 | 15 | "scripts": { |
15 | | - "build": "rm -rf ./dist && NODE_ENV=production GRAPHQL_ENDPOINT=$BACKEND_ADDR/system webpack --config webpack.config.build.js && cp -r static/* dist", |
16 | | - "build-electron": "npm run compile; npm run build; cp -r dist lib; rm -rf ./build-electron && electron-builder", |
17 | | - "release": "npm run build-electron", |
| 16 | + "build-ts": "rm -rf lib && tsc --target es5", |
| 17 | + "build-webpack": "rm -rf ./dist && NODE_ENV=production GRAPHQL_ENDPOINT=$BACKEND_ADDR/system webpack --config webpack.config.build.js && cp -r static/* dist", |
| 18 | + "build": "npm run build-ts && npm run build-webpack && cp -r dist lib && rm -rf ./build-electron", |
| 19 | + "release": "npm run build && electron-builder -lmw", |
18 | 20 | "library": "rm -rf .happypack && NODE_ENV=production webpack --config webpack.library.js -p", |
19 | 21 | "lint": "tslint \"src/**/*.ts{,x}\" && lint-staged", |
20 | | - "start": "yarn run compile; concurrently 'yarn react-start' 'wait-on http://localhost:4040/ && yarn electron-start'", |
| 22 | + "start": "yarn run compile && concurrently 'yarn react-start' 'wait-on http://localhost:4040/ && yarn electron-start'", |
21 | 23 | "react-start": "webpack-dev-server --hot --profile --history-api-fallback --host 0.0.0.0 --port 4040", |
22 | | - "compile": "rm -rf lib; tsc --target es5", |
23 | 24 | "electron-start": "electron lib/main", |
24 | 25 | "stats": "NODE_ENV=production webpack --config webpack.library.js --profile --json > stats.json", |
25 | 26 | "test": "npm run lint", |
|
0 commit comments