JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 215
  • Score
    100M100P100Q83703F
  • License MIT

Npm tasks for shipit.

Package Exports

  • shipit-npm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shipit-npm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

shipit-npm

A set of tasks for Shipit used for npm specific tasks on deploy.

Inspired by the capistrano/composer extension.

Features:

Install

npm install shipit-npm

Usage

Just simply run: (This triggers the npm task on the deploy updated event. No additional config necessary.)

shipit staging deploy

Or you can run the tasks separatly :

shipit staging npm
  shipit staging npm:install
  shipit staging npm:run --cmd "update"

Options shipit.config.npm

remote

Type: Boolean Default: true

A Boolean to determine whether to run the task in local workspace or on the remote.

npm.installArgs

Type: Array or String Default: []

An array or string specifying npm args passed to the npm install cmd.

npm.installFlags

Type: Array or String Default: []

An array or string specifying npm flags passed to the npm install cmd.

Example shipitfile.js options usage

module.exports = function (shipit) {
  require('shipit-deploy')(shipit);
  require('shipit-npm')(shipit);

  shipit.initConfig({
    default: {
      npm: {
        remote: false,
        installArgs: ['gulp']
        installFlags: ['-g'];
      }
    }
  });
};

License

MIT