Accept yarn
instead of npm
#2629
ggreif
started this conversation in
Feature Requests
Replies: 1 comment
-
Also referenced in #1584 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently
npm
is hard-coded indfx
:I am asking for support for the (more-or-less) drop-in replacement
yarn
. I had some nice success using it in connection withvuetify
:git clone https://github.com/nop33/dfinity-vue -b vuetify
dfx start --background --clean
yarn add webpack-cli
env NPM=yarn dfx deploy
(suggested way of usingyarn
instead ofnpm
)open http://localhost:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai
The
assets.rs
invocation works out of the box (this is what the above commands trigger). Thenew.rs
would need some adaptation (maybe probing).An alternative would be to introduce a
--toolchain
argument (in-lieu-ofNPM
env-var):dfx --toolchain=yarn
would just select theyarn
incarnation of the commands and could potentially also do theyarn add webpack-cli
step.I am happy to send a PR if you think this is a good idea.
Beta Was this translation helpful? Give feedback.
All reactions