Skip to content

Commit

Permalink
♻️ Remove JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanren1225 committed Feb 16, 2022
1 parent 5ba3abc commit 4117b35
Show file tree
Hide file tree
Showing 16 changed files with 218 additions and 218 deletions.
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ src/**
.yarnrc
vsc-extension-quickstart.md
**/tsconfig.json
**/webpack.config.js
**/webpack.config.ts
**/.eslintrc.json
**/*.map
**/*.ts
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,18 @@
"@types/fs-extra": "^8.0.0",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/node": "^12.20.46",
"@types/vscode": "^1.37.0",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"ts-loader": "^9.2.6",
"typescript": "^4.5.4",
"ts-node": "^10.5.0",
"typescript": "^4.5.5",
"vscode-nls-dev": "^4.0.0",
"vscode-nls-i18n": "^0.2.4",
"webpack": "^5.66.0",
Expand Down
22 changes: 22 additions & 0 deletions src/test/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
//
// This file is providing the test runner to use when running extension tests.
// By default the test runner in use is Mocha based.
//
// You can provide your own test runner if you want to override it by exporting
// a function run(testRoot: string, clb: (error:Error) => void) that the extension
// host can call to run the tests. The test runner is expected to use console.log
// to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none.

var testRunner = require("vscode/lib/testrunner");

// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner.configure({
ui: "tdd", // the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors: true, // colored output from test results
});

module.exports = testRunner;
22 changes: 0 additions & 22 deletions src/test/runTest.js

This file was deleted.

1 change: 0 additions & 1 deletion src/test/runTest.js.map

This file was deleted.

23 changes: 0 additions & 23 deletions src/test/runTest.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/test/suite/extension.test.js

This file was deleted.

1 change: 0 additions & 1 deletion src/test/suite/extension.test.js.map

This file was deleted.

15 changes: 0 additions & 15 deletions src/test/suite/extension.test.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/test/suite/index.js

This file was deleted.

1 change: 0 additions & 1 deletion src/test/suite/index.js.map

This file was deleted.

38 changes: 0 additions & 38 deletions src/test/suite/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
},
"exclude": ["node_modules", ".vscode-test"]
"exclude": ["node_modules", ".vscode-test", "webpack.config.ts"]
}
48 changes: 0 additions & 48 deletions webpack.config.js

This file was deleted.

37 changes: 37 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import path = require("path");
import webpack = require("webpack");

const extensionConfig: webpack.Configuration = {
target: "node",
mode: "none",
entry: "./src/extension.ts",
output: {
path: path.resolve(__dirname, "dist"),
filename: "extension.js",
libraryTarget: "commonjs2",
},
externals: {
vscode: "commonjs vscode",
},
resolve: {
extensions: [".ts", ".js"],
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: [
{
loader: "ts-loader",
},
],
},
],
},
devtool: "nosources-source-map",
infrastructureLogging: {
level: "log", // enables logging required for problem matchers
},
};
module.exports = [extensionConfig];
Loading

0 comments on commit 4117b35

Please sign in to comment.