Skip to content

Commit

Permalink
chore: replace vscode-test and compile test files by esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchardxyz committed Oct 3, 2023
1 parent ba26a93 commit 27f0ef0
Show file tree
Hide file tree
Showing 5 changed files with 2,337 additions and 1,133 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ dist
**/src/.umi-test
**/.env.local
# yarn.lock

# test
out-test
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@
"webview-watch": "pnpm --filter tswagger-webview start",
"esbuild-build": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild-watch": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --sourcemap --watch --define:process.env.NODE_ENV='development'",
"test-compile": "tsc -p ./",
"package": "npm run webview-build && npm run esbuild-build -- --minify && vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies",
"release": "release-it",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"lint-staged": "lint-staged",
"test": "node ./out/test/runTest.js",
"test-compile": "rimraf ./out-test && esbuild ./src/test/**/*.ts --outdir=out-test --resolve-extensions=.ts,.js --format=cjs --platform=node",
"test": "node ./out-test/runTest.js",
"prepare": "husky install"
},
"devDependencies": {
Expand All @@ -90,9 +90,10 @@
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.20.1",
"chokidar": "^3.5.3",
"esbuild": "^0.17.15",
"esbuild": "^0.19.4",
"eslint": "^7.19.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
Expand All @@ -103,8 +104,8 @@
"openapi-types": "^12.1.0",
"prettier": "^3.0.2",
"release-it": "^16.1.5",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
"rimraf": "^5.0.5",
"typescript": "^4.1.3"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
Expand Down
Loading

0 comments on commit 27f0ef0

Please sign in to comment.