rustwasm/rust-webpack-template

Run `npm install` after it has been cloned

xtuc opened this issue · 4 comments

xtuc commented

We could run npm install for the user after the installation: https://github.com/rustwasm/rust-webpack-template/blob/master/.bin/create-rust-webpack.js#L12.

This means that we have to support both npm and yarn here. Eventhough it is small. I would like to keep this minimum. WDYT?

xtuc commented

We can spawn a shell with yarn install || npm install, or just npm. Note that yarn is bundled with some new Nodejs versions.

xtuc commented

I just noticed that we don't use yarn, we can only spawn npm.

We don't use yarn but what if folks use 🤔 Okay I am creating a PR