https://github.com/uditdc/as-site-builder
https://github.com/uditdc/as-site-builder
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uditdc/as-site-builder
- Owner: uditdc
- Created: 2023-04-06T23:01:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T23:13:07.000Z (about 3 years ago)
- Last Synced: 2025-04-13T10:59:24.343Z (about 1 year ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# as-site-builder
as-site-builder is a Node.js package that compiles a static site to WebAssembly, by transpiling the site's markup and assets into AssemblyScript code. It uses the @blockless/sdk for interfacing with the HTTP component.
## Installation
To install as-site-builder, run:
```bash
npm install as-site-builder
```
## Usage
To use as-site-builder, you can run the following commands:
```bash
npm run build # Build the project using TypeScript
npm start # Run the project
```
The `start` command will execute the TypeScript file src/index.ts using the ts-node package.
## Scripts
as-site-builder has the following scripts:
- build: Builds the project using TypeScript and generates type declarations using the build:types script.
- start: Runs the project using the ts-node package.
## Dependencies
- @assemblyscript/wasi-shim: Version ^0.1.0
- @blockless/sdk: Version https://github.com/blocklessnetwork/sdk-assemblyscript#54ac31d4053a1eec0b3c020dbb21a0b458b96ca5
- as-wasi: Version ^0.5.1