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

Added possiblity to use npm install options via config #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

piotr-cz
Copy link
Contributor

This adds a feature to set npm install options in config (see npm docs).

It may be used for example to minimize layer size or use different dependencies for development and production.

Example:

custom:
  layerConfig:
    installLayers: true
    installOptions:
    - --no-bin-links
    - --only=production

It's already possible set it up via the .npmrc file after #4, however this solution is more explicit and makes possible to set common options for all layers.

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.

1 participant