-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4209dd
commit 25c38dd
Showing
43 changed files
with
1,031 additions
and
963 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 |
---|---|---|
|
@@ -10,3 +10,4 @@ src/grammar/next/grammar.ts | |
jest.setup.js | ||
jest.teardown.js | ||
/docs | ||
version.build.ts |
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
import * as fs from "node:fs/promises"; | ||
import * as path from "node:path"; | ||
import * as glob from "glob"; | ||
|
||
const cp = async (fromGlob: string, toPath: string) => { | ||
const files = glob.sync(fromGlob); | ||
for (const file of files) { | ||
await fs.copyFile(file, path.join(toPath, path.basename(file))); | ||
} | ||
}; | ||
|
||
const main = async () => { | ||
try { | ||
await cp("./src/func/funcfiftlib.*", "./dist/func/"); | ||
} catch (e) { | ||
console.error(e); | ||
process.exit(1); | ||
} | ||
}; | ||
|
||
void main(); |
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,9 @@ | ||
import fs from "fs"; | ||
import path from "path"; | ||
|
||
const sourcePath = path.resolve(__dirname, "funcfiftlib.wasm"); | ||
const targetPath = path.resolve(__dirname, "funcfiftlib.wasm.js"); | ||
|
||
const wasmBase64 = fs.readFileSync(sourcePath).toString("base64"); | ||
const wasmBase64js = `module.exports = { FuncFiftLibWasm: '${wasmBase64}' };`; | ||
fs.writeFileSync(targetPath, wasmBase64js); |
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
Oops, something went wrong.