@gilt-tech/swig-publish
Publishes a UI Module, providing linting and spec automation.
Last updated 14 days ago by gilt-tech .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install @gilt-tech/swig-publish 
SYNC missed versions from official npm registry.

swig-publish

Swig plugin that allows for a super easy way to publish NPM modules.

Installation

npm install -D @gilt-tech/swig-publish

or, if you are really kool:

yarn add -D @gilt-tech/swig-publish

Usage

This plugin will add the task publish to the swig CLI.

Once you have it installed, you have to organize your modules codebase, like so:

modules-repo
 - src
   + moduleA
   - moduleB
     package.json
     ...
 package.json // <-- where the swig package is installed

You can then ask swig to publish one of the modules with a simple command:

swig publish -m <module-name>

This will instruct swig to search inside the src folder for a module, which package.json property name matches the given module-name, and then publish the new version of it on NPM.

CLI options

--module <module-name>, -m <module-name> (required):

This one tells the publish plugin which module it has to process.

--beta (optional):

This will instruct the publish plugin to create a *-beta version of the module you want to publish, and publish it on the beta dist tag of NPM.

It also checks if there is an already published beta version with the same semver number, and if so, it asks the user if it should override it with a new beta version.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 20
Last Day 0
Last Week 0
Last Month 39
Dependencies (11)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |