Skip to content

Package for sharing #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 19, 2020
Prev Previous commit
Next Next commit
cleanup ts build
  • Loading branch information
ShMcK committed Jan 18, 2020
commit 0bb15c346bef243e082e8cdb3fb41d850a032637
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
},
"main": "./build/extension.js",
"scripts": {
"build": "rm -rf build && concurrently \"npm run build:ext\" \"npm run build:web\"",
"build:ext": "npm run compile",
"build": "rm -rf build && npm run build:ext && npm run build:web",
"build:ext": "tsc -p ./",
"build:web": "cd web-app && npm run build",
"compile": "tsc -p ./",
"postbuild:web": "cp -R ./web-app/build/ ./build/",
"postinstall": "node ./node_modules/vscode/bin/install",
"lint": "eslint src/**/*ts",
"machine": "node ./out/state/index.js",
Expand Down
1 change: 0 additions & 1 deletion web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"scripts": {
"build": "react-app-rewired build",
"postbuild": "cp -R ./build/ ../build/",
"build-storybook": "build-storybook",
"start": "react-app-rewired start",
"storybook": "start-storybook -p 6006",
Expand Down
9 changes: 8 additions & 1 deletion web-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"extends": "./tsconfig.paths.json",
"compilerOptions": {
"rootDirs": [
"src",
"stories"
],
"baseUrl": "src",
"outDir": "build",
"target": "es2018",
"lib": [
"dom",
Expand All @@ -18,7 +24,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve"
"jsx": "preserve",
"sourceMap": true
},
"include": [
"src"
Expand Down
18 changes: 8 additions & 10 deletions web-app/tsconfig.paths.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"compilerOptions": {
"baseUrl": "src",
"rootDirs": ["src", "stories"],
"paths": {
"typings": ["../../typings/index.d.ts"],
"typings/graphql": ["../../typings/graphql.d.ts"]
},
"allowSyntheticDefaultImports": true
},
"exclude": ["node_modules", "build", "scripts", "jest", "public"]
"compilerOptions": {
"paths": {
"typings": ["../../typings/index.d.ts"],
"typings/graphql": ["../../typings/graphql.d.ts"]
},
"allowSyntheticDefaultImports": true
},
"exclude": ["node_modules", "build", "scripts", "jest", "public"]
}