@shopify/scripts-toolchain-as
Shopify's assemblyscript toolchain to build and verify scripts.
Last updated a month ago by shopify-dep .
UNLICENSED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shopify/scripts-toolchain-as 
SYNC missed versions from official npm registry.

scripts-toolchain-as

Package that contains assemblyscript specific build tools used by the Scripts platform.

For assemblyscript shared types, see shopify/scripts-sdk-as.

For extension-points definitions, see shopify/extension-points.

How this works

This package builds a custom Assemblyscript transform that visits the assemblyscript AST in order to generate a "Fetch Plan" used by shopify/runtime-engine to lay out the data into memory. This script will generate a graphql schema that is a proper subset of the EP schema defined in shopify/extension-points.

How to use it

npm install -g @shopify/scripts-toolchain-as
npx shopify-scripts-build \
  --src ./myscript.ts \
  --binary ./myscript.wasm \
  --schema ./myscript.graphql \

It is also possible to supply additional arguments that will be directly forwarded to the assemblyscript compiler. E.g.

npx shopify-scripts-build \
  --src=sample/script.ts \
  --binary=sample/build.wasm \
  --schema=sample/generated.schema \
  -- --lib=node_modules --lib=sample --validate --optimize

Current Tags

  • 1.1.1                                ...           latest (a month ago)

6 Versions

  • 1.1.1                                ...           a month ago
  • 1.1.0                                ...           3 months ago
  • 1.0.1                                ...           4 months ago
  • 0.1.0                                ...           4 months ago
  • 0.0.2                                ...           4 months ago
  • 0.0.1                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 16
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |