Skip to content

Commit 3d47bc1

Browse files
committed
changed modules and configs to be ready for prod
1 parent 35cfdcf commit 3d47bc1

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
node_modules
1+
/node_modules/
22
/package-lock.json
33
/.vscode-test/
4-
/build/
4+
/build/
5+
/.DS_Store

.vscodeignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
# FOLDERS
12
.vscode/**
23
.vscode-test/**
34
test/**
4-
.gitignore
5-
.yarnrc
6-
vsc-extension-quickstart.md
5+
node_modules
76
**/jsconfig.json
87
**/*.map
98
**/.eslintrc.json
9+
10+
# FILES
11+
.gitignore
12+
.yarnrc
13+
vsc-extension-quickstart.md
1014
**/*.js.map
15+

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
11
{
22
"name": "react-labyrinth",
33
"displayName": "React Labyrinth",
4-
"description": "React Server Components visualization tool",
4+
"description": "React Component Type hierarchy tree visualization tool",
55
"version": "0.0.1",
6+
"icon": "./media/reactLbayrinthFinal.png",
67
"publisher": "ReactLabyrinthDev",
8+
"preview": false,
79
"engines": {
810
"vscode": "^1.85.1"
911
},
1012
"repository": {
1113
"type": "git",
12-
"url": "https://github.com/oslabs-beta/React-Labyrinth"
14+
"url": "https://github.com/oslabs-beta/React-Labyrinth/tree/main"
1315
},
1416
"categories": [
1517
"Other"
1618
],
1719
"keywords": [
1820
"react",
1921
"rsc",
22+
"react components",
2023
"hierarchy tree",
2124
"parent-child",
2225
"visualizer",
23-
"server component"
26+
"server component",
27+
"client component"
2428
],
2529
"license": "MIT",
2630
"pricing": "Free",
27-
"activationEvents": [],
31+
"activationEvents": [
32+
"onStartupFinished"
33+
],
2834
"main": "./build/extension.js",
2935
"contributes": {
3036
"commands": [
@@ -53,10 +59,6 @@
5359
{
5460
"id": "metrics-file",
5561
"name": "Metrics"
56-
},
57-
{
58-
"id": "test",
59-
"name": "Test"
6062
}
6163
]
6264
},
@@ -68,11 +70,12 @@
6870
]
6971
},
7072
"scripts": {
73+
"vscode:prepublish": "build",
7174
"lint": "eslint .",
7275
"pretest": "npm run lint",
7376
"test": "npx tsc ; node ./build/src/test/runTest.js",
74-
"dev": "webpack --watch",
75-
"webpack": "webpack"
77+
"watch": "webpack --mode development --config webpack.config.ts --watch",
78+
"build": "webpack --mode production --config webpack.config.ts"
7679
},
7780
"devDependencies": {
7881
"@babel/preset-typescript": "^7.23.3",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"node_modules",
2121
".vscode-test",
2222
"src/webviews",
23-
"node_modules/@types/mocha/index.d.ts"
23+
"node_modules/@types/mocha/index.d.ts",
24+
"src/test/test_cases"
2425
]
2526
}

webpack.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const extConfig: webpack.Configuration = {
1212
resolve: { extensions: ['.ts', '.js'] },
1313
module: { rules: [{ test: /\.ts$/, loader: 'ts-loader' }] },
1414
externals: { vscode: 'vscode' },
15-
mode: 'development'
1615
};
1716

1817
const webviewConfig: webpack.Configuration = {
@@ -34,7 +33,6 @@ const webviewConfig: webpack.Configuration = {
3433
},
3534
],
3635
},
37-
mode: 'development'
3836
};
3937

4038
export default [webviewConfig, extConfig];

0 commit comments

Comments
 (0)