Skip to content

Commit

Permalink
Simplify the tooling required to compile the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Sep 24, 2024
1 parent 40a43d1 commit 1e4047a
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 665 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
enable-cache: 'true'

- name: Install vendors
run: devbox run yarn install --frozen-lockfile --production
run: devbox run yarn install --frozen-lockfile

- id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_modules
.idea
dist
*.vsix
out
.vscode-test
16 changes: 5 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,10 @@
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
Expand All @@ -132,10 +129,7 @@
"glob": "^8.1.0",
"mocha": "^10.2.0",
"prettier": "3.0.2",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
"typescript": "^4.9.5"
},
"dependencies": {
"cors": "^2.8.5",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib": ["ES2021"],
"sourceMap": true,
"rootDir": "src",
"outDir": "out",
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
Expand Down
48 changes: 0 additions & 48 deletions webpack.config.js

This file was deleted.

Loading

0 comments on commit 1e4047a

Please sign in to comment.