How to implement auto-connect npm packages for the current configuration node.js application?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
14 views
Make your garbage for projects on the layout of web pages. To simplify support in the future, I want to make plugin-based architecture. Namely, if it is necessary to connect CSS preprocessors, or PostCSS, or something.
In the end, the question arises. Each other part of the tie. And what about the dependencies in the package.json?
To make all the possible dependencies in the package.json is not an option. The excess should be cut off.

For each plugin of course needs its own npm packages. When connecting the plug-in they need to make to the package.json, if you unplug to remove. Or maybe there are ways within the application to trigger the installation of the necessary packages and check their installation at the moment?

Prompt in what side to dig, and then googled, nothing suitable was found.
by | 14 views

2 Answers

0 like 0 dislike
As one of the options is to write your own yeoman generator
by
0 like 0 dislike
Actually, the package file.json no role in the application is not playing. From any application on the Node it can be thrown out - nothing will happen: everything will work as it did before.
by

Related questions

110,608 questions
257,186 answers
0 comments
35,649 users