viralify
Version:
Injects one or more browserify transforms into all dependencies of a package recursively.
21 lines (12 loc) • 772 B
Plain Text
usage: viralify <path> <options>
Inject browserify transform(s) into the package.json files of all packages at and below the given path.
OPTIONS:
-t, --transform transform(s) to inject (required)
-p, --packages packages into which to inject the transforms (required)
-f, --front if set, the transform(s) are injected in the front of the transform field so they run first
EXAMPLES:
Inject 'browserify-swap' transform for all foo dependencies of the package in the current directory
viralify . -t browserify-swap -p foo
Inject 'envify' and 'es6ify' transforms in front for all foo and bar dependencies of the package
in the current directory
viralify ./node_modules --transform envify --transform es6ify --front --package foo -p bar