warpo 2.3.0-alpha-0 → 2.3.0

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.
@@ -0,0 +1,110 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "WARPO Configuration Schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "entries": {
7
+ "type": "array",
8
+ "description": "List of entry AssemblyScript source files to be compiled. Each item is a file path.",
9
+ "items": {
10
+ "type": "string",
11
+ "description": "Path to an AssemblyScript entry file."
12
+ }
13
+ },
14
+ "options": {
15
+ "$ref": "#/$defs/OptionsSchema"
16
+ },
17
+ "targets": {
18
+ "type": "object",
19
+ "description": "Build targets configuration. Each property defines a build target with its own output and options.",
20
+ "additionalProperties": {
21
+ "$ref": "#/$defs/OptionsSchema"
22
+ }
23
+ }
24
+ },
25
+ "required": ["entries", "options", "targets"],
26
+
27
+ "$defs": {
28
+ "OptionsSchema": {
29
+ "type": "object",
30
+ "description": "Compiler options that control the build process and output.",
31
+ "properties": {
32
+ "project": {
33
+ "type": "string",
34
+ "description": "Path to the project root (folder containing 'create.ts') or a direct path to 'create.ts'."
35
+ },
36
+ "exportStart": {
37
+ "type": "string",
38
+ "description": "Name of the exported start function for the WebAssembly module."
39
+ },
40
+ "exportRuntime": {
41
+ "type": "boolean",
42
+ "description": "Whether to export the runtime from the WebAssembly module."
43
+ },
44
+ "exportTable": {
45
+ "type": "boolean",
46
+ "description": "Whether to export the function table from the WebAssembly module."
47
+ },
48
+ "initialMemory": {
49
+ "type": "integer",
50
+ "description": "Initial memory size for the WebAssembly module, in WebAssembly pages."
51
+ },
52
+ "stackSize": {
53
+ "type": "integer",
54
+ "description": "Stack size for the WebAssembly module, in bytes."
55
+ },
56
+ "runtime": {
57
+ "type": "string",
58
+ "description": "Type of runtime to use, either 'incremental' or 'radical'.",
59
+ "enum": ["incremental", "radical"]
60
+ },
61
+ "stats": {
62
+ "type": "boolean",
63
+ "description": "Whether to output compilation statistics."
64
+ },
65
+ "outFile": {
66
+ "type": "string",
67
+ "description": "Path to the output WebAssembly (.wasm or .wat) file."
68
+ },
69
+ "disable": {
70
+ "type": "array",
71
+ "description": "List of compiler features to disable.",
72
+ "items": {
73
+ "type": "string",
74
+ "description": "Name of a feature to disable.",
75
+ "enum": ["mutable-globals", "sign-extension", "nontrapping-f2i", "bulk-memory"]
76
+ }
77
+ },
78
+ "debug": {
79
+ "type": "boolean",
80
+ "description": "Enable debug information for this build target."
81
+ },
82
+ "sourceMap": {
83
+ "type": "boolean",
84
+ "description": "Generate source map for this build target."
85
+ },
86
+ "optimizeLevel": {
87
+ "type": "integer",
88
+ "description": "Optimization level for this build target (higher means more optimization).",
89
+ "minimum": 0,
90
+ "maximum": 3
91
+ },
92
+ "shrinkLevel": {
93
+ "type": "integer",
94
+ "description": "Shrink level for this build target (higher means smaller output).",
95
+ "minimum": 0,
96
+ "maximum": 2
97
+ },
98
+ "use": {
99
+ "type": "object",
100
+ "description": "Additional compiler flags or environment variables for this build target.",
101
+ "additionalProperties": {
102
+ "type": "string",
103
+ "description": "Value for the use option."
104
+ }
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ }
109
+ }
110
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warpo",
3
- "version": "2.3.0-alpha-0",
3
+ "version": "2.3.0",
4
4
  "description": "next generation AssemblyScript compiler with optimizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,7 +19,8 @@
19
19
  "test:debug_symbol": "cross-env-shell ./build/tests/DebugSymbol/TestDebugSymbol",
20
20
  "test:debug_symbol:update": "cross-env-shell build/tests/DebugSymbol/TestDebugSymbol --update-fixtures",
21
21
  "test:driver": "node tests/driver/index.mjs",
22
- "test": "npm run test:as:ut && npm run test:cpp:ut && npm run test:as:snapshot && npm run test:opt:snapshot && npm run test:driver && npm run test:debug_symbol && npm run test:bootstrap:debug && npm run test:bootstrap:release",
22
+ "test": "npm run test:as:ut && npm run test:cpp:ut && npm run test:as:snapshot && npm run test:opt:snapshot && npm run test:driver && npm run test:debug_symbol",
23
+ "test:all": "npm run test && npm run test:bootstrap:debug && npm run test:bootstrap:release",
23
24
  "test:update": "npm run test:as:snapshot -- -u && npm run test:opt:snapshot -- -u && npm run test:driver -- -u && npm run test:debug_symbol -- -u",
24
25
  "docs:dev": "vitepress dev docs",
25
26
  "docs:build": "vitepress build docs",
@@ -39,12 +40,12 @@
39
40
  "url": "https://github.com/wasm-ecosystem/warpo"
40
41
  },
41
42
  "files": [
43
+ "asconfig.schema.json",
44
+ "assemblyscript/std/assembly/index.d.ts",
42
45
  "create",
43
46
  "dist",
44
- "types",
45
47
  "tsconfig-warpo.json",
46
- "assemblyscript/tsconfig-base.json",
47
- "assemblyscript/std/assembly/index.d.ts"
48
+ "types"
48
49
  ],
49
50
  "devDependencies": {
50
51
  "@assemblyscript/loader": "^0.28.9",
@@ -58,6 +59,6 @@
58
59
  "diff": "^8.0.0",
59
60
  "prettier": "^3.6.2",
60
61
  "typescript": "^5.8.3",
61
- "vitepress": "^1.6.3"
62
+ "vitepress": "^2.0.0-alpha.15"
62
63
  }
63
64
  }
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "alwaysStrict": true,
5
- "noImplicitAny": true,
6
- "noImplicitReturns": true,
7
- "noImplicitThis": true,
8
- "noEmitOnError": true,
9
- "strictNullChecks": true,
10
- "experimentalDecorators": true,
11
- "preserveConstEnums": false,
12
- "downlevelIteration": true
13
- }
14
- }