WIP: Use yarn instead of npm #98
Closed
fsmanuel wants to merge 1 commits from
chore/yarn into master
pull from: chore/yarn
merge into: :master
:master
:new-final-deploy
:new-final-deploy-2
:reimbursement-export
:staging
:legacy
:addresses/rsk-testnet-raucao-1
:ipfs-defaults
:deletemewhendone
:feature/184-improve_withdrawal
:tests/contracts-contribution
:tests/contracts-kit
:kit/add-vault-app
:feature/ipfs_hash_in_add_response
:chore/bootstrap-on-travis
:chore/remove-direct-aragon-cli-dependency
:chore/update-dependencies-1
:fix/ipfs-config
:apm-hack
:wtf/package-lock
:feature/contributor-balance
:feature/constructor-options
Labels
Clear labels
good first issue
ipfs
rsk
scaling
bug
dev environment
docs
duplicate
enhancement
feature
idea
invalid
kredits-1
kredits-2
kredits-3
question
security
ui/ux
wontfix
Good for newcomers
Something is not working
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kredits/contracts#98
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Using yarn fixed my setup problems.
In the beginning I had a problem with a web3 package but this error is somehow gone, now.
Can someone test if it works for you as well?
I never really looked into yarn and never understood why it exists. it always felt like throwing more code on a problem instead of fixing the problem... but as said I have no idea :D
but it looks good to me and I am happy that it solves an issue for you.
I guess then one can even use both?
It has some historical reasons why yarn exists. npm2 installed all the packages nested aka the same package got installed multiple times. Yarn on the other hand flattend the dependencies and did a much better job at version resolution. It also installed the packages in parallel and was much faster. Since then npm3 also flattend the dependencies but is still very slow. The yarn lock file is much more stable and doesn't change every time. So I prefer yarn over npm for package management...
ok, I see.. but
npmworks as it does currently.. so it is not a breaking change, is it?Except for the difference in lockfiles, npm over time introduced pretty much any and all benefits that yarn ever had over npm afaik. I think our code should definitely support being used with yarn, but I'd propose to keep npm as the default, simply because it is the de-facto standard package manager for JavaScript, and yarn is just an alternative client for npm's registry.
Alright! I'll rebase and readd the package-lock files so we can use both.
Superseded by #102
Pull request closed