Skip to content

Commit

Permalink
🩹 Move shell scripts into package.json scripts to allow cross platfor…
Browse files Browse the repository at this point in the history
…m builds
  • Loading branch information
s-weigand committed Nov 11, 2023
1 parent 2d2b413 commit a594aee
Show file tree
Hide file tree
Showing 10 changed files with 1,315 additions and 79 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build bundle
run: ./s/build
run: npm run compile
format:
runs-on: ubuntu-latest
steps:
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Check Formatting
run: ./s/fmt
run: npm run fmt:check
lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Lint JS
run: ./s/eslint
run: npm run eslint
typecheck:
runs-on: ubuntu-latest
steps:
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Typescript
run: ./s/typecheck
run: npm run typecheck
test:
strategy:
matrix:
Expand Down
15 changes: 15 additions & 0 deletions esbuild.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { build } = require("esbuild")

build({
entryPoints: ["./src/extension.ts"],
outfile: "./out/extension.js",
external: ["vscode"],
platform: "node",
sourcemap: "linked",
minify: true,
bundle: true,
}).catch((error) => {
console.error(error)
process.exit(1)
})
Loading

0 comments on commit a594aee

Please sign in to comment.