Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0bb15c3

Browse files
committed
cleanup ts build
1 parent252fd05 commit0bb15c3

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

‎package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
},
1818
"main":"./build/extension.js",
1919
"scripts": {
20-
"build":"rm -rf build &&concurrently\"npm run build:ext\"\"npm run build:web\"",
21-
"build:ext":"npm run compile",
20+
"build":"rm -rf build && npm run build:ext &&npm run build:web",
21+
"build:ext":"tsc -p ./",
2222
"build:web":"cd web-app && npm run build",
23-
"compile":"tsc -p ./",
23+
"postbuild:web":"cp -R ./web-app/build/ ./build/",
2424
"postinstall":"node ./node_modules/vscode/bin/install",
2525
"lint":"eslint src/**/*ts",
2626
"machine":"node ./out/state/index.js",

‎web-app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"private":true,
55
"scripts": {
66
"build":"react-app-rewired build",
7-
"postbuild":"cp -R ./build/ ../build/",
87
"build-storybook":"build-storybook",
98
"start":"react-app-rewired start",
109
"storybook":"start-storybook -p 6006",

‎web-app/tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"extends":"./tsconfig.paths.json",
33
"compilerOptions": {
4+
"rootDirs": [
5+
"src",
6+
"stories"
7+
],
8+
"baseUrl":"src",
9+
"outDir":"build",
410
"target":"es2018",
511
"lib": [
612
"dom",
@@ -18,7 +24,8 @@
1824
"resolveJsonModule":true,
1925
"isolatedModules":true,
2026
"noEmit":true,
21-
"jsx":"preserve"
27+
"jsx":"preserve",
28+
"sourceMap":true
2229
},
2330
"include": [
2431
"src"

‎web-app/tsconfig.paths.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
2-
"compilerOptions": {
3-
"baseUrl":"src",
4-
"rootDirs": ["src","stories"],
5-
"paths": {
6-
"typings": ["../../typings/index.d.ts"],
7-
"typings/graphql": ["../../typings/graphql.d.ts"]
8-
},
9-
"allowSyntheticDefaultImports":true
10-
},
11-
"exclude": ["node_modules","build","scripts","jest","public"]
2+
"compilerOptions": {
3+
"paths": {
4+
"typings": ["../../typings/index.d.ts"],
5+
"typings/graphql": ["../../typings/graphql.d.ts"]
6+
},
7+
"allowSyntheticDefaultImports":true
8+
},
9+
"exclude": ["node_modules","build","scripts","jest","public"]
1210
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp