Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustwasm/create-wasm-app
npm init template for consuming rustwasm pkgs
https://github.com/rustwasm/create-wasm-app
Last synced: about 2 months ago
JSON representation
npm init template for consuming rustwasm pkgs
- Host: GitHub
- URL: https://github.com/rustwasm/create-wasm-app
- Owner: rustwasm
- License: apache-2.0
- Created: 2018-07-31T17:53:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-09T12:57:31.000Z (7 months ago)
- Last Synced: 2024-07-19T08:12:37.111Z (2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/create-wasm-app
- Size: 1.17 MB
- Stars: 487
- Watchers: 5
- Forks: 91
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
create-wasm-app
An
npm init
template for kick starting a project that uses NPM packages containing Rust-generated WebAssembly and bundles them with Webpack.
Usage
|
Chat
Built with 🦀🕸 by The Rust and WebAssembly Working Group
## About
This template is designed for depending on NPM packages that contain
Rust-generated WebAssembly and using them to create a Website.* Want to create an NPM package with Rust and WebAssembly? [Check out
`wasm-pack-template`.](https://github.com/rustwasm/wasm-pack-template)
* Want to make a monorepo-style Website without publishing to NPM? Check out
[`rust-webpack-template`](https://github.com/rustwasm/rust-webpack-template)
and/or
[`rust-parcel-template`](https://github.com/rustwasm/rust-parcel-template).## 🚴 Usage
```
npm init wasm-app
```## 🔋 Batteries Included
- `.gitignore`: ignores `node_modules`
- `LICENSE-APACHE` and `LICENSE-MIT`: most Rust projects are licensed this way, so these are included for you
- `README.md`: the file you are reading now!
- `index.html`: a bare bones html document that includes the webpack bundle
- `index.js`: example js file with a comment showing how to import and use a wasm pkg
- `package.json` and `package-lock.json`:
- pulls in devDependencies for using webpack:
- [`webpack`](https://www.npmjs.com/package/webpack)
- [`webpack-cli`](https://www.npmjs.com/package/webpack-cli)
- [`webpack-dev-server`](https://www.npmjs.com/package/webpack-dev-server)
- defines a `start` script to run `webpack-dev-server`
- `webpack.config.js`: configuration file for bundling your js with webpack## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.