Last active
March 10, 2018 11:54
-
-
Save mizdra/38a376d5ebfbfd6b948278a8a670e914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run docker | |
docker run -p 8080:8080 -ti node:latest /bin/bash | |
# Install yarn | |
curl -o- -L https://yarnpkg.com/install.sh | bash | |
# Install rust | |
curl https://sh.rustup.rs -sSf > rustup-init.sh | |
sh rustup-init.sh -y | |
export PATH="$HOME/.cargo/bin:$PATH" | |
rustup install nightly | |
rustup default nightly | |
rustup target add wasm32-unknown-unknown --toolchain nightly | |
# Create project | |
mkdir new-project && cd $_ | |
wget -O - https://github.com/mizdra/webpack-wasm-skeleton/archive/master.tar.gz | tar xzvf - --strip=1 | |
# Build | |
yarn install --force | |
yarn run dev:wasm & | |
yarn run dev:js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment