Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add npm copy rfc #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

docs: add npm copy rfc #493

wants to merge 1 commit into from

Conversation

everett1992
Copy link

@everett1992 everett1992 commented Nov 15, 2021

npm copy <destination> copies the current project's files and dependencies to
destination

When deploying a project (COPY into a docker image, zip into an archive)
non production dependencies and files should be excluded. npm has some commands
that cover this usecase (prune, pack, install -g but they each have
issues, especially when workspaces are used.

# copy app's production dependencies and packaged files to out
npm copy out --production -w app

# copy all workspace production dependencies and packaged files to archive
npm copy out --production --workspaces

See 0000-npm-copy.md

I've written an implementation here npm/cli#4082

@everett1992
Copy link
Author

I think this RFC addresses #463 Multi-app Monorepo Support

@bnb
Copy link

bnb commented Nov 17, 2021

Seems like a nice command. Just reiterating what I said in the RFC, want to make sure this works well for non-workspace users in addition to workspaces (which it seems to!).

@jeanbmar
Copy link

jeanbmar commented Feb 8, 2022

I can't wait for this to land. Packaging workspaces for deployment is a guaranteed headache.

@darcyclarke darcyclarke added the Agenda will be discussed at the Open RFC call label Mar 31, 2022
@darcyclarke darcyclarke removed the Agenda will be discussed at the Open RFC call label Apr 20, 2022
@darcyclarke
Copy link
Contributor

Removing Agenda label as we have discussed this work & agree we'd like to see it land. We can ratify this doc at any point here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants