Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asbuild

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asbuild

Build tool for building AssemblyScript projects

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
143
increased by55.43%
Maintainers
1
Weekly downloads
 
Created
Source

ASBuild

A simple build tool for AssemblyScript projects, similar to cargo, etc.

Usage

asb [entry file] [options] -- [args passed to asc]

Background

AssemblyScript greater than v0.14.4 provides a asconfig.json configuration file that can be used to describe the options for building a project. ASBuild uses this and some adds defaults to create an easier CLI interface.

Defaults

Project structure
project/
  package.json   
  asconfig.json
  assembly/
    index.ts
  build/
    release/
      project.wasm
    debug/
      project.wasm
  • If no entry file passed and no entry field is in asconfig.json, project/assembly/index.ts is assumed.
  • asconfig.json allows for options for different compile targets, e.g. release, debug, etc. asc defaults to the release target.
  • The default build directory is ./build, and artifacts are placed at ./build/<target>/packageName.wasm.

Workspaces

If a workspace field is added to a top level asconfig.json file, then each path in the array is built and placed into the top level outDir.

For example,

asconfig.json:

{
  "workspace": ["a", "b"]
}

Running asb in the directory below will use the top level build directory to place all the binaries.

project/
  package.json
  asconfig.json
  a/
    asconfig.json
    assembly/
      index.ts
  b/
    asconfig.json
    assembly/
      index.ts
  build/
    release/
      a.wasm
      b.wasm
    debug/
      a.wasm
      b.wasm

To see an example in action check out the test workspace

FAQs

Package last updated on 29 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc