warpo 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -27
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,38 +2,17 @@
2
2
 
3
3
  next generation assemblyscript compiler
4
4
 
5
- ## quick start
5
+ Seamlessly migrate from TypeScript to developing WebAssembly modules!
6
6
 
7
- config `tsconfig.json` like below.
7
+ ## Documents
8
8
 
9
- ```json
10
- {
11
- "extends": "warpo/tsconfig-warpo.json",
12
- "include": ["./**/*.ts"]
13
- }
14
- ```
9
+ https://wasm-ecosystem.github.io/warpo/
15
10
 
16
- write ts code in `assembly/index.ts`
17
-
18
- ```bash
19
- export function add(a: i32, b: i32): i32 {
20
- return a + b;
21
- }
22
- ```
23
-
24
- ```bash
25
- node node_modules/.bin/warpo assembly/index.ts -o build/debug.wat
26
- node node_modules/.bin/warpo assembly/index.ts -o build/release.wasm --optimizeLevel 3 --shrinkLevel 2
27
- npx warpo assembly/index.ts -o build/debug.wat # simplify with npx
28
- npx warpo -h # for more cli options
29
- ```
30
-
31
- ## language
11
+ ## Acknowledgment
32
12
 
33
13
  - [Assemblyscript](https://www.assemblyscript.org/)
34
- - warpo new features: WIP
35
- - [warpo optimization](https://wasm-ecosystem.github.io/warpo/)
14
+ - [binaryen](https://github.com/WebAssembly/binaryen)
36
15
 
37
- ## developer
16
+ ## for Developer
38
17
 
39
18
  see [CONTRIBUTING](./CONTRIBUTING.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warpo",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "next generation AssemblyScript compiler with optimizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "build:ts": "tsc -p tools/scripts/tsconfig.json",
11
11
  "build:cpp": "cmake -S . -B build && cmake --build build --parallel",
12
12
  "build": "npm run build:ts && npm run build:cpp",
13
- "test:ut": "./build/passes/warpo_passes_test && ./build/support/warpo_support_test",
13
+ "test:ut": "cd build && ctest --output-on-failure",
14
14
  "test:as:snapshot": "./build/tests/frontend/warpo_frontend_test",
15
15
  "test:opt:snapshot": "node tests/snapshot_diff/index.mjs",
16
16
  "test:bootstrap:debug": "./tests/bootstrap/debug.sh",