Skip to content

Split asc.js to Compiler Frontend and CLI #1636

@piotr-oles

Description

@piotr-oles

Hi!
I would like to improve AssemblyScript adoption by creating tools/integrations around it. To make it easier for me and other developers, I have a proposition for improving an API.

Currently, asc.js is one big file for everything. My proposition is to split it into 2 components - Compiler Frontend and CLI. The architecture would be like this:
image

The Compiler Frontend component would expose high-level API to build AssemblyScript projects (it would work with the WASM version of AssemblyScript OOTB). The API would be similar to TypeScript Compiler API to reduce the friction.

The CLI component would handle all CLI commands including building projects using Compiler Frontend. There would be no breaking change on the CLI interface.

@dcodeIO Would you be interested in such a contribution from my side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions