Skip to content

Commit 630d1ac

Browse files
squash!
1 parent 427f2af commit 630d1ac

3 files changed

Lines changed: 108 additions & 64 deletions

File tree

Source/view/tsconfig.json

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
{
2-
"compilerOptions": {
3-
"module": "esnext",
4-
"moduleResolution": "node",
5-
"target": "es6",
6-
"outDir": "out",
7-
"lib": ["es6", "dom"],
8-
"jsx": "react",
9-
"sourceMap": true,
10-
"rootDir": "..",
11-
"strict": true,
12-
"noUnusedLocals": true,
13-
"noImplicitReturns": true,
14-
"noFallthroughCasesInSwitch": true,
15-
"experimentalDecorators": true
16-
},
17-
"exclude": ["node_modules"],
18-
"include": ["./index.tsx"]
2+
"compilerOptions": {
3+
"baseUrl": "./",
4+
"experimentalDecorators": true,
5+
"jsx": "react",
6+
"lib": [
7+
"es6",
8+
"dom"
9+
],
10+
"module": "esnext",
11+
"moduleResolution": "node",
12+
"noFallthroughCasesInSwitch": true,
13+
"noImplicitReturns": true,
14+
"noUnusedLocals": true,
15+
"outDir": "Target",
16+
"rootDir": "Source",
17+
"sourceMap": true,
18+
"strict": true,
19+
"target": "es6"
20+
},
21+
"exclude": [
22+
"node_modules"
23+
],
24+
"extends": "@playform/build/tsconfig",
25+
"include": [
26+
"Source"
27+
]
1928
}

package.json

Lines changed: 60 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,49 @@
11
{
2-
"activationEvents": [
3-
"onCommand:deviceSimulatorExpress.common.installDependencies",
4-
"onCommand:deviceSimulatorExpress.common.openSerialMonitor",
5-
"onCommand:deviceSimulatorExpress.common.runSimulator",
6-
"onCommand:deviceSimulatorExpress.common.selectSerialPort",
7-
"onCommand:deviceSimulatorExpress.common.gettingStarted",
8-
"onCommand:deviceSimulatorExpress.common.deployToDevice",
9-
"onCommand:deviceSimulatorExpress.common.newFile",
10-
"onCommand:deviceSimulatorExpress.common.openSimulator",
11-
"onDebug"
2+
"name": "__EXTENSIONNAME__",
3+
"displayName": "__DISPLAYNAME__",
4+
"version": "0.0.1",
5+
"private": false,
6+
"description": "__DESCRIPTION__",
7+
"keywords": [
8+
"land"
129
],
10+
"homepage": "HTTPS://GitHub.Com/CodeEditorLand/LandPythonDeviceSimulator#readme",
11+
"bugs": {
12+
"url": "HTTPS://GitHub.Com/CodeEditorLand/LandPythonDeviceSimulator/issues"
13+
},
14+
"repository": {
15+
"type": "git",
16+
"url": "git+HTTPS://github.com/CodeEditorLand/LandPythonDeviceSimulator.git"
17+
},
18+
"license": "SEE LICENSE IN LICENSE",
19+
"author": {
20+
"name": "Land",
21+
"email": "Land@Playform.Cloud",
22+
"url": "HTTPS://Land.Playform.Cloud"
23+
},
24+
"type": "module",
25+
"main": "./out/extension.js",
26+
"scripts": {
27+
"Document": "Document 'Source/**/*.ts'",
28+
"build": "gulp build",
29+
"check:python": "black src --check",
30+
"check:ts": "prettier --config .prettierrc.yaml --check src/**/*.{css,ts,tsx}",
31+
"clean": "gulp clean",
32+
"compile": "npm-run-all compile:*",
33+
"compile:extension": "gulp compile",
34+
"compile:views": "webpack --mode development",
35+
"format:python": "black src",
36+
"format:ts": "prettier --config .prettierrc.yaml --write src/**/*.{css,ts,tsx}",
37+
"lint:python": "pylint src",
38+
"lint:ts": "tslint -c tslint.json src/**/*.{ts,tsx}",
39+
"prepublishOnly": "Build 'Source/**/*.ts'",
40+
"start": "webpack-dev-server",
41+
"test:api-tests": "pytest src",
42+
"test:extension-tests": "node ./out/test/runTest.js",
43+
"test:ts": "jest",
44+
"watch:extension": "tsc --watch",
45+
"watch:views": "webpack --watch --mode development"
46+
},
1347
"contributes": {
1448
"breakpoints": [
1549
{
@@ -194,6 +228,17 @@
194228
}
195229
]
196230
},
231+
"activationEvents": [
232+
"onCommand:deviceSimulatorExpress.common.installDependencies",
233+
"onCommand:deviceSimulatorExpress.common.openSerialMonitor",
234+
"onCommand:deviceSimulatorExpress.common.runSimulator",
235+
"onCommand:deviceSimulatorExpress.common.selectSerialPort",
236+
"onCommand:deviceSimulatorExpress.common.gettingStarted",
237+
"onCommand:deviceSimulatorExpress.common.deployToDevice",
238+
"onCommand:deviceSimulatorExpress.common.newFile",
239+
"onCommand:deviceSimulatorExpress.common.openSimulator",
240+
"onDebug"
241+
],
197242
"dependencies": {
198243
"@types/open": "6.1.0",
199244
"@types/socket.io": "3.0.1",
@@ -206,9 +251,9 @@
206251
"usb-native": "6.0.0",
207252
"util": "0.12.5"
208253
},
209-
"description": "__DESCRIPTION__",
210254
"devDependencies": {
211255
"@playform/build": "0.0.7",
256+
"@playform/document": "0.0.6",
212257
"@types/glob": "8.1.0",
213258
"@types/node": "20.12.7",
214259
"css-loader": "7.1.1",
@@ -222,34 +267,13 @@
222267
"ts-loader": "9.5.1",
223268
"version-from-git": "1.1.1"
224269
},
225-
"displayName": "__DISPLAYNAME__",
226270
"extensionDependencies": [
227271
"ms-python.python"
228272
],
273+
"publishConfig": {
274+
"access": "public"
275+
},
229276
"icon": "assets/icon.png",
230-
"instrumentationKey": "__AIKEY__",
231-
"main": "./out/extension.js",
232-
"name": "__EXTENSIONNAME__",
233277
"preview": true,
234-
"scripts": {
235-
"Document": "Document 'Source/**/*.ts'",
236-
"build": "gulp build",
237-
"check:python": "black src --check",
238-
"check:ts": "prettier --config .prettierrc.yaml --check src/**/*.{css,ts,tsx}",
239-
"clean": "gulp clean",
240-
"compile": "npm-run-all compile:*",
241-
"compile:extension": "gulp compile",
242-
"compile:views": "webpack --mode development",
243-
"format:python": "black src",
244-
"format:ts": "prettier --config .prettierrc.yaml --write src/**/*.{css,ts,tsx}",
245-
"lint:python": "pylint src",
246-
"lint:ts": "tslint -c tslint.json src/**/*.{ts,tsx}",
247-
"prepublishOnly": "Build 'Source/**/*.ts'",
248-
"start": "webpack-dev-server",
249-
"test:api-tests": "pytest src",
250-
"test:extension-tests": "node ./out/test/runTest.js",
251-
"test:ts": "jest",
252-
"watch:extension": "tsc --watch",
253-
"watch:views": "webpack --watch --mode development"
254-
}
278+
"instrumentationKey": "__AIKEY__"
255279
}

tsconfig.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
{
2-
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es6",
5-
"outDir": "out",
6-
"lib": ["es6", "dom"],
7-
"sourceMap": true,
8-
"rootDir": "src",
9-
"jsx": "react",
10-
"alwaysStrict": true
11-
},
12-
"exclude": ["node_modules", ".vscode-test"]
2+
"compilerOptions": {
3+
"alwaysStrict": true,
4+
"baseUrl": "./",
5+
"jsx": "react",
6+
"lib": [
7+
"es6",
8+
"dom"
9+
],
10+
"module": "commonjs",
11+
"outDir": "Target",
12+
"rootDir": "Source",
13+
"sourceMap": true,
14+
"target": "es6"
15+
},
16+
"exclude": [
17+
"node_modules",
18+
".vscode-test"
19+
],
20+
"extends": "@playform/build/tsconfig",
21+
"include": [
22+
"Source"
23+
]
1324
}

0 commit comments

Comments
 (0)