Skip to content

Latest commit

History

History

www

Rust + WebAssembly + TypeScript Demo app with world-map-gen package

This is a demo application for world-map-gen wasm package built with TypeScript and webpack.

Snapshot of the built application is put in ../docs directory and served on gh-pages.

Development

Install all dependencies by npm install before development.

Development server

Webpack provides a development server with live reload. Please run following command and open http://localhost:8080.

npm run start

Build production application

Following command compiles all TypeScript sources, bundles the result into one JavaScript source and copy all assets (wasm binary, HTML, styles, images...). Built application is put in dist directory.

npm run build

Run linters

tslint is used for linting TypeScript sources. And stylelint is used for linting CSS.

Following command runs linters in parallel.

npm run lint