create-cwf-app

Crates.iocreate-cwf-app
lib.rscreate-cwf-app
version0.0.2
sourcesrc
created_at2020-07-09 22:33:25.008964
updated_at2020-07-19 20:51:13.280072
descriptionSkeleton for a CWF web app
homepage
repositoryhttps://github.com/thisminute/create-cwf-app
max_upload_size
id263035
size256,084
Sasha Kondrashov (skondrashov)

documentation

README

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 CWF.

To install, you will need:

  1. rustc/cargo
  2. node/npm
  3. wasm-pack

Then:

git clone https://github.com/thisminute/create-cwf-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-cwf-app/www    # npm stuff is in the www directory
npm run prod:clean # will run wasm-pack and npm install
npm start     # opens a new browser tab in watch mode for the binary!

Usage

All code goes in the ./cwf directory in .cwf files. Example file:

div {
   text: hello;
}
span {
   text: world;
}

represents

<div>
   hello
</div>
<span>
   world
</span>
Commit count: 82

cargo fmt