Slight restructure

This commit is contained in:
dcodeIO
2017-12-12 16:08:54 +01:00
parent c8680b1e77
commit 3d544c2fe5
11 changed files with 19 additions and 25 deletions

View File

@ -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

View File

@ -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"
]
}

View File

@ -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;

View File

@ -1,5 +1,5 @@
{
"extends": "../portable.json",
"extends": "../std/portable.json",
"compilerOptions": {
"outDir": "../out",
"sourceMap": true

View File

@ -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 {}

View File

@ -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"

View File

@ -1,5 +1,5 @@
{
"extends": "../../assembly.json",
"extends": "../assembly.json",
"compilerOptions": {
"diagnostics": true
},

View File

View File

@ -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"
]
}

View File

@ -1,5 +1,5 @@
{
"extends": "../../portable.json",
"extends": "../portable.json",
"compilerOptions": {
"diagnostics": true
},