S
S
s0nly2017-11-03 00:25:40
npm
s0nly, 2017-11-03 00:25:40

Yarn division into libs and dependencies, how to organize a project?

Previously, when building a project, I used npm + bower, pulled libraries into libs through bower, the rest flew into node_modules.
I want to figure out how to achieve this using only yarn or npm?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-11-03
@k12th

npm install lib --savein dependencies in package.json, npm install dep --save-devin devDependencies. Everything gets into node_modules, the developer basically doesn't care where exactly the libraries are located.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question