fsprojects / fsprojects/Paket

Add npm dependencies?

Open
#3,436 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Continuing 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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked discussion in issue 1649 and this issue's questions about Paket, package.json, npm install, and semver translation. Define the intended behavior for declaring npm dependencies and whether restore/install should invoke npm; done means those behaviors and scope are agreed and documented for implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, node.js
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.