Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
13 changes: 8 additions & 5 deletions as-pect.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ module.exports = {
/**
* A set of globs passed to the glob package that qualify typescript files for testing.
*/
include: ["assembly/__tests__/**/*.spec.ts"],
include: [
"packages/*/assembly/__tests__/**/*.spec.ts",
"packages/kernel/*/assembly/__tests/**/*.spec.ts"
],
/**
* A set of globs passed to the glob package that quality files to be added to each test.
*/
add: ["assembly/__tests__/**/*.include.ts"],
add: [],
/**
* All the compiler flags needed for this test suite. Make sure that a binary file is output.
*/
Expand All @@ -15,16 +18,16 @@ module.exports = {
"--debug": [],
"--measure": [],
/** This is required. Do not change this. */
"--binaryFile": ["output.wasm"],
"--binaryFile": ["output.wasm"]
},
/**
* A set of regexp that will disclude source files from testing.
*/
disclude: [],
disclude: [/packages\/.*node_module/i],
/**
* Add your required AssemblyScript imports here.
*/
imports: {},
imports: {}
/**
* Add a custom reporter here if you want one
*/
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"clean": "lerna clean -y",
"linkDev": "lerna exec \"ldev\"",
"ci": "npm-run-all clean bootstrap check ci:test",
"ci:test": "npm run test -- -i"
"ci:test": "npm run test -- -i || npm run test -- -i"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,13 +46,13 @@
"typescript": "^3.4.2",
"webpack": "^4.29.5",
"webpack-cli": "^3.2.3",
"webpack-dev-server": "^3.2.0"
"webpack-dev-server": "^3.2.0",
"@wasmos/utils": "file:./utils"
},
"dependencies": {
"@types/filesystem": "0.0.28",
"@types/jest": "^24.0.11",
"@types/shelljs": "^0.8.4",
"@wasmos/utils": "file:./utils",
"lerna": "^3.13.0",
"shelljs": "^0.8.3",
"shx": "^0.3.2"
Expand Down
167 changes: 18 additions & 149 deletions packages/as-node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 15 additions & 7 deletions packages/assemblyscript/assembly/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"extends": "../node_modules/assemblyscript/std/assembly.json",
"include": ["**/*.ts"],
"compilerOptions": {
"typeRoots": [
"./types",
"../node_modules/.assembly/",
"../node_modules/assemblyscript/std/types"
]
"alwaysStrict": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noEmitOnError": true,
"strictNullChecks": true,
"experimentalDecorators": true,
"target": "es6",
"moduleResolution": "node",
"esModuleInterop": true,
"module": "commonjs",
"noLib": true,
"allowJs": false,
"typeRoots": ["./types"],
"types": ["assembly"]
}
}
31 changes: 31 additions & 0 deletions packages/assemblyscript/assembly/types/assembly/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import "@wasmos/wasa/assembly";
import "../../../node_modules/assemblyscript/std/assembly/index";
//
// declare class Console {
// /**
// * Write a string to the console
// * @param s string
// * @param newline `false` to avoid inserting a newline after the string
// */
// static write(s: string, newline?: boolean): void;
//
// /**
// * Read an UTF8 string from the console, convert it to a native string
// */
// static readAll(): string | null;
//
// /**
// * Alias for `Console.write()`
// */
// static log(s: string): void;
//
// /**
// * Write an error to the console
// * @param s string
// * @param newline `false` to avoid inserting a newline after the string
// */
// static error(s: string, newline?: boolean): void;
// }
// // declare const Cons: number;
// // declare function Cons1(): void;
// // declare type IO = wasa.IO;
3 changes: 3 additions & 0 deletions packages/assemblyscript/assembly/types/assembly/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"types": "index.d.ts"
}
Loading