Takes a bunch of bower packages and finds their version from bower.json
or .bower.json
, then makes one big bower file with frozen versions.
โ
older projects that need dependencies consolidated
โ
older projects that you want to freeze deps for (point this at bower_components
)
โ
projects that have a bunch of bower files which you want to merge into one
โ
projects that have source and 3rd party deps in the same dir (use excludePaths, but ask yourself why did you get in this situation first)
PowerShell ./bower-consolidator.exe [options]
./bower-consolidator [options]
Usage: index [options]
Options:
-V, --version output the version number
--cwd, --workingDir Current working directory (where your many
bower packages are).
--e, --excludePaths One or many paths (or globs) you want to
exclude, i.e. `-e "prefix-*"`. Can be
applied multiple times: `-e "one" -e "two"`.
--o, --outputFile The output file name (in your cwd).
Defaults to `new.bower.json`
--tf, --templateFile (optional) A JSON file you want to use as
template. You *need* to supply a path to
write in that file (see --templatePathtp).
--tp, --templatePath (optional) An object path, like
`path.to.something` to insert packages at.
Required if template file provided
(see --templateFile).
-h, --help output usage information
Install dependencies first
yarn
babel-node index.js [options]
Requires node v8.5.0+
npm run demo # outputs consolidated packages to ./custom.bower.json
Start by installing all dependencies.
yarn
npm run dev # continuous tests, watches files
npm run test
npm run publish:windows
npm run publish:all # node on win, darwin, linux