2 releases
0.0.1 | Aug 3, 2020 |
---|---|
0.0.0 | Jul 25, 2020 |
#17 in #skeleton
65KB
Based on the https://github.com/rustwasm/wasm-pack-template.git
Installation
This project uses wasm-build and webpack-dev-server together to serve a wasm binary compiled from a syntax called cwl.
To install, you will need:
Then:
git clone https://github.com/thisminute/create-cwl-app.git
For windows users, run in the root directory:
rustup toolchain install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnu
Then:
cd create-cwl-app/www # npm stuff is in the www directory
wasm-pack build
npm install
npm start # opens a new browser tab in watch mode for the binary!
Usage
All code goes in the ./cwl
directory in .cwl files. Example file:
div {
text: hello;
}
span {
text: world;
}
represents
<div>
hello
</div>
<span>
world
</span>
Dependencies
~10MB
~189K SLoC