Add npm dependencies?
See original GitHub issueContinuing discussion from https://github.com/fable-compiler/Fable/issues/1649#issuecomment-440917740
There are currently two issues for Fable users and authors. Would it be possible to fix both by adding npm dependencies to Paket?
- Fable users need to handle two package managers: Paket/Nuget and npm
- Sometimes Fable lib authors need npm dependencies and they have no way to specify that, so users need to check the docs and remember what they should install.
Note I’m not talking about Fable.React because it’s loosely coupled to React (can be used with preact, or in a netcore app), but about other libs where the npm dependency is more transparent to the user (Fulma, Zaid’s bindings…).
What would Paket do with npm dependencies?
- I assume Paket won’t take care of the actual installation, just adding the packages to package.json (translating the semver syntax used by Paket to npm’s one).
- Should Paket run
npm install
automatically after restore/install if it detects npm dependencies?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Adding dependencies to a package.json file
To add dependencies and devDependencies to a package.json file from the command line, you can install them in the root directory of your...
Read more >How to Install npm, Master npm Commands & Use Packages
This step-by-step guide will show you how to install npm, and master common commands in the Node Package Manager (npm) command-line ...
Read more >Add "globalDependencies" option in package.json for ...
Store all dependencies at one place, using the same folder. i.e. /var/lib/npm ... This has the problem that two separate applications that are ......
Read more >node.js - npm install won't install devDependencies
On windows for some reason when I run npm install it won't install devDependencies. AFAIK it should. If I run npm install --dev ......
Read more >Installing Dependencies with npm
Anytime you change a dependency in package.json , you need to make sure that npm applies the changes with the command $ npm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alfonsogarciacaro I’m like the biggest fan of Paket .NET Core, install via
Just my 2c:
Paket is not npm, and npm is not paket. I wouldn’t expect npm to run paket install if it happened to see a paket.references file locally. That’s for the developer and documentation of how to build the project.
If Fable is used to nuget/paket and npm, then it’s part of the ecosystem already. Create a build.sh or build.cmd which invokes both if you need to.