mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-10 21:41:25 +00:00
Slight restructure
This commit is contained in:
@ -34,10 +34,10 @@ $> cd next
|
||||
$> npm install
|
||||
```
|
||||
|
||||
Author your module in AssemblyScript ([definitions](./assembly.d.ts), [base config](./assembly.json)) or portable AssemblyScript ([definitions](./portable.d.ts), [base config](./portable.json)) and run:
|
||||
Author your module in AssemblyScript ([definitions](./std/assembly.d.ts), [base config](./std/assembly.json)) or portable AssemblyScript ([definitions](./std/portable.d.ts), [base config](./std/portable.json)) and run:
|
||||
|
||||
```
|
||||
$> node bin\asc yourModule.ts
|
||||
$> node bin/asc yourModule.ts
|
||||
```
|
||||
|
||||
Using the CLI
|
||||
|
13
package.json
13
package.json
@ -48,20 +48,17 @@
|
||||
"test": "npm run test:config --scripts-prepend-node-path && npm run test:parser --scripts-prepend-node-path && npm run test:compiler --scripts-prepend-node-path"
|
||||
},
|
||||
"files": [
|
||||
"assembly.d.ts",
|
||||
"bin/asc.js",
|
||||
"bin/asc.json",
|
||||
"dist/assemblyscript.js",
|
||||
"dist/assemblyscript.js.map",
|
||||
"bin/",
|
||||
"dist/",
|
||||
"index.d.ts",
|
||||
"index.js",
|
||||
"LICENSE",
|
||||
"NOTICE",
|
||||
"package.json",
|
||||
"package-lock.json",
|
||||
"portable-assembly.d.ts",
|
||||
"portable-assembly.js",
|
||||
"README.md",
|
||||
"src"
|
||||
"src/",
|
||||
"std/",
|
||||
"tsconfig-base.json"
|
||||
]
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
require("../../portable");
|
||||
require("../../std/portable");
|
||||
|
||||
// Copy Binaryen exports to global scope
|
||||
var globalScope = typeof window !== "undefined" && window || typeof global !== "undefined" && global || self;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../portable.json",
|
||||
"extends": "../std/portable.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../out",
|
||||
"sourceMap": true
|
||||
|
2
assembly.d.ts → std/assembly.d.ts
vendored
2
assembly.d.ts → std/assembly.d.ts
vendored
@ -106,8 +106,6 @@ declare function struct(): any;
|
||||
|
||||
// Standard library (not yet implemented)
|
||||
|
||||
/// <reference path="./std/heap.d.ts" />
|
||||
|
||||
interface Array<T> {}
|
||||
interface Boolean {}
|
||||
interface Function {}
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"extends": "./tsconfig-base.json",
|
||||
"extends": "../tsconfig-base.json",
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"noLib": true,
|
||||
"types": [],
|
||||
"rootDirs": [
|
||||
"./std/assembly",
|
||||
"./node_modules"
|
||||
]
|
||||
"./assembly"
|
||||
],
|
||||
"allowJs": false
|
||||
},
|
||||
"files": [
|
||||
"./assembly.d.ts"
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../../assembly.json",
|
||||
"extends": "../assembly.json",
|
||||
"compilerOptions": {
|
||||
"diagnostics": true
|
||||
},
|
||||
|
0
portable.d.ts → std/portable.d.ts
vendored
0
portable.d.ts → std/portable.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "./tsconfig-base.json",
|
||||
"extends": "../tsconfig-base.json",
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
@ -8,15 +8,14 @@
|
||||
"noLib": true,
|
||||
"types": [],
|
||||
"rootDirs": [
|
||||
"./std/portable",
|
||||
"./node_modules"
|
||||
"./portable"
|
||||
],
|
||||
"allowJs": true
|
||||
},
|
||||
"files": [
|
||||
"./portable.d.ts",
|
||||
"./portable.js",
|
||||
"./std/portable/heap.d.ts",
|
||||
"./std/portable/heap.js"
|
||||
"./portable/heap.d.ts",
|
||||
"./portable/heap.js"
|
||||
]
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../../portable.json",
|
||||
"extends": "../portable.json",
|
||||
"compilerOptions": {
|
||||
"diagnostics": true
|
||||
},
|
||||
|
Reference in New Issue
Block a user