0.0.31 • Published 3 years ago

sfdx-npm v0.0.31

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

sfdx-npm

Install node modules into your packages and automatically remove duplicate modules across 2GP packages using Salesforce DX.

Version CircleCI Appveyor CI Codecov Greenkeeper Known Vulnerabilities Downloads/week License

Installation

This is an SFDX plugin. Install this plugin to your SFDX instance.

$ sfdx plugins:install sfdx-npm

Setup

This works by installing packages into the directory where package.json exists and where you run the command in the current working directory.

In the force-app directory, run the following to create a package.json file:

$ npm init

Second Generation Packaging

For second generation packaging, you will have a folder for each package. Each folder should contain their own package.json file. Follow the above instructions to create this file for each package.

When you install node modules, this plugin will identify other instances of node modules across the whole project and remove any duplicates.

Usage

To install a node module into your package, use the same parameters as npm install. Change the prefix to sfdx npm:install.

$ sfdx npm:install my-module --save

Roadmap

  • CLI command for $ sfdx npm:version:match [package]
  • CLI command for $ sfdx npm:module:clean
0.0.30

3 years ago

0.0.31

3 years ago

0.0.29

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago