Skip to content
TypeScript port of Scout
TypeScript JavaScript HTML
Branch: master
Clone or download
Latest commit 2742ec3 Oct 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assembly Add assembly files to package Oct 1, 2019
public
src Mv bignum and debug imports to env namespace Oct 1, 2019
.gitignore Add browser support Jul 19, 2019
.nycrc Initial commit Jul 19, 2019
.prettierignore
LICENSE Update LICENSE Jul 19, 2019
README.md Add usage to README.md Aug 7, 2019
as-pect.config.js Add as-pect for AS unit tests Aug 7, 2019
package.json Bump version to 0.0.2 Oct 1, 2019
prettier.config.js Initial commit Jul 19, 2019
test.yaml Support multiple exec envs and blocks in test case Jul 19, 2019
tsconfig.json Initial commit Jul 19, 2019
tsconfig.prod.json Initial commit Jul 19, 2019
tslint.json Initial commit Jul 19, 2019

README.md

scout.ts

Typescript port of scout.

Usage

Node

In order to run an execution environment, several build steps need to be performed. First build the typescript source code:

npm run build

Then, the execution environment written in AssemblyScript needs to be built. The hello world example can be built by running:

npm run asbuild:optimized

In order to build a custom execution environment you can use something like:

asc assembly/test/index.ts -b build/test-optimized.wasm -t build/test-optimized.wat --sourceMap --validate --optimize

To run the EE, you'll need a scout yaml file (see test.yaml for an example) which also specifies the path to the Wasm binary:

npm run start test.yaml

Browser

The process for running the script in the browser is similar. When building the typescript source code, use instead:

npm run build:browser

And when running the EE, modify the yamlPath variable in src/browser.js to point to your yaml file and do:

npm run start:browser
You can’t perform that action at this time.