-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: * Improve typescript typings * Update format/lint * Fix circular dependency * Replace `yargs` with `minimist` * Replace `mocha` with `vitest` * Configure GitHub Actions
- Loading branch information
1 parent
b052276
commit 3ba4318
Showing
19 changed files
with
1,415 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: demo/parser | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
bun: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo/parser | ||
|
||
steps: | ||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
with: | ||
submodules: recursive | ||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1 | ||
- run: bun install | ||
|
||
- run: npm run bun:build | ||
- run: ./bin/cli --debug -- hanoi | ||
|
||
- run: npm run bun:run -- --debug -- hanoi | ||
|
||
deno: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo/parser | ||
|
||
steps: | ||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
with: | ||
submodules: recursive | ||
- name: Setup Deno | ||
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 | ||
|
||
- run: npm run deno:compile | ||
- run: ./bin/cli --debug -- hanoi | ||
|
||
- run: npm run deno:run -- --debug -- hanoi | ||
|
||
node: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo/parser | ||
|
||
strategy: | ||
matrix: | ||
node-version: | ||
# TODO: re-enable v16, v18 when OOM is fixed | ||
# - 16.x | ||
# - 18.x | ||
- 20.x | ||
|
||
steps: | ||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | ||
with: | ||
submodules: recursive | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | ||
with: | ||
cache: npm | ||
cache-dependency-path: ./demo/parser/package-lock.json | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm test | ||
|
||
- run: npm run build:bin | ||
- run: node bin/cli.js --debug -- hanoi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/bin/cli | ||
/bin/cli.js | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// TODO |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @ts-check | ||
|
||
import json from "@rollup/plugin-json"; | ||
import typescript from "@rollup/plugin-typescript"; | ||
|
||
/** @type {import("rollup").RollupOptions} */ | ||
export default { | ||
input: "api/vercel.ts", | ||
plugins: [json(), typescript()], | ||
output: { | ||
file: "api/index.js", | ||
format: "cjs", | ||
}, | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @ts-check | ||
|
||
import json from "@rollup/plugin-json"; | ||
import typescript from "@rollup/plugin-typescript"; | ||
|
||
/** @type {import("rollup").RollupOptions} */ | ||
export default { | ||
input: "bin/cli.ts", | ||
plugins: [json(), typescript()], | ||
output: { | ||
file: "bin/cli.js", | ||
format: "cjs", | ||
}, | ||
}; |
Oops, something went wrong.
3ba4318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dvhcvn – ./
dvhcvn-daohoangson.vercel.app
dvhcvn.vercel.app
dvhcvn-git-master-daohoangson.vercel.app