Acode plugin for using the AssemblyScript compiler. Configure and compile AssemblyScript projects directly within the Acode editor.
-
Clone the Repository:
git clone https://github.com/k79sn4/acode-plugin-asc.git cd acode-plugin-asc
-
Install Dependencies:
npm install
-
Build Assets:
npm run assets
-
Build Plugin:
Development version
npm run dev
Production version
npm run build
-
Install the Plugin:
Use the generateddist.zip
file to install the plugin.
- Compile AssemblyScript projects directly within Acode.
- Pass arguments to the compiler.
- View compilation output and errors.
- Read and write support for existing files using Acode's file system API.
- Limitation: Creating new files is not supported in the current version.
-
Open the Plugin:
Tap the plugin icon in Acode's sidebar to access the interface. -
Pass Arguments:
Use the textarea (marked asARGV
) to provide custom arguments for the compiler. -
Compile Project:
Click theRun
button to compile the current project (the top-most folder opened in Acode).Output messages are displayed in the
STDOUT
section, and errors in theSTDERR
section. -
Programmatic Use:
Execute the compiler by calling the registered command:const action = acode.require("asc-compile-project"); action();
- Open an AssemblyScript project in Acode.
- Launch the plugin from the sidebar.
- Provide arguments in the
ARGV
field. - Click the
Run
button and verify the output inSTDOUT
andSTDERR
fields.
Contributions to improve this plugin are welcome! Use github issues for bugs and feature requests.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
See the CHANGELOG for details on recent changes.