0.0.7 • Published 5 years ago

create-smithy-app v0.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

Kickstart your Rust, WebAssembly, and Webpack project!

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

This template is designed for creating monorepo-style Web applications with Rust-generated WebAssembly and Webpack without publishing your wasm to NPM.

📚 Read this template's tutorial! 📚

Be sure to check out other wasm-pack tutorials online for other templates and usages of wasm-pack.

🚴 Using This Template

You can use npm init to clone this template:

npm init rust-webpack my-app

Afterwards check out the full documentation for exploring it.

🔋 Batteries Included

This template comes pre-configured with all the boilerplate for compiling Rust to WebAssembly and hooking into a Webpack build pipeline.

  • npm start -- Serve the project locally for development at http://localhost:8080. It auto-reloads when you make any changes.

  • npm run build:prod -- Export the project into the /pkg folder. These files can now be served statically, e.g. from a CDN.

  • npm run serve:prod -- After npm run build:prod has been run, serves the files statically (using python. This may change soon to decrease the number of dependencies).

  • S3_BUCKET=... npm run upload -- After npm run build:prod has been run, uploads the files to an S3 bucket with the correct mime types and with brotli compression.

  • npm test -- Run the project's unit tests.

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago