-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from halvardssm/feat/lots
feat(types): Added types package feat(lexer): Added lexer package feat(lexer): Added general purpose string tokenizer feat(json): Added json package feat(json): Added jsonpath feat(wasm): Refactored WASM chore(ci): Updated ci
- Loading branch information
Showing
65 changed files
with
29,639 additions
and
7,878 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
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,31 @@ | ||
name: version_bump | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
name: version bump | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: canary | ||
|
||
- name: Run version bump | ||
run: | | ||
git fetch --unshallow origin | ||
deno run -A jsr:@deno/bump-workspaces@^0.1/cli | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_USER_NAME: ${{ github.actor }} | ||
GIT_USER_EMAIL: ${{ github.actor}}@users.noreply.github.com |
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
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,4 @@ | ||
{ | ||
"deno.enable": true, | ||
"deno.unstable": true | ||
} |
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,51 @@ | ||
import { parse } from "@std/toml"; | ||
import { resolve } from "@std/path"; | ||
|
||
const isCheck = Deno.args.some((a) => a === "--check"); | ||
const failFast = Deno.args.some((a) => a === "--fail-fast"); | ||
|
||
const rawCargo = Deno.readTextFileSync("./_wasm/Cargo.toml"); | ||
|
||
const parsedCargo = parse(rawCargo) as { workspace: { members: string[] } }; | ||
|
||
let didFail = false; | ||
|
||
for (const member of parsedCargo.workspace.members) { | ||
const [folder] = member.split("_"); | ||
const outPath = resolve( | ||
folder, | ||
"_wasm", | ||
); | ||
|
||
const args: string[] = [ | ||
"run", | ||
"-A", | ||
"jsr:@deno/wasmbuild@0.17.1", | ||
"--js-ext", | ||
"mjs", | ||
"--sync", | ||
"--project", | ||
member, | ||
"--out", | ||
outPath, | ||
]; | ||
|
||
if (isCheck) { | ||
args.push("--check"); | ||
} | ||
|
||
const command = new Deno.Command(Deno.execPath(), { | ||
args: args, | ||
cwd: "./_wasm", | ||
}); | ||
const child = command.spawn(); | ||
const status = await child.status; | ||
if (!status.success) { | ||
didFail = true; | ||
} | ||
if (failFast && didFail) { | ||
Deno.exit(1); | ||
} | ||
} | ||
|
||
Deno.exit(didFail ? 1 : 0); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.