https://github.com/danmindru/bower-consolidator
🗻 CLI tool that takes a bunch of bower packages and makes one big bower file with frozen versions.
https://github.com/danmindru/bower-consolidator
bower-consolidator bower-packages cli command-line-tool frozen-versions polymer
Last synced: 11 months ago
JSON representation
🗻 CLI tool that takes a bunch of bower packages and makes one big bower file with frozen versions.
- Host: GitHub
- URL: https://github.com/danmindru/bower-consolidator
- Owner: danmindru
- Created: 2017-09-12T13:03:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-22T22:05:24.000Z (over 8 years ago)
- Last Synced: 2025-07-21T16:16:54.505Z (11 months ago)
- Topics: bower-consolidator, bower-packages, cli, command-line-tool, frozen-versions, polymer
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bower consolidator
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.
##### What is this for?
✅ 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)
## Usage (packaged)
### Windows
```bash
PowerShell ./bower-consolidator.exe [options]
```
### Mac / Linux
```bash
./bower-consolidator [options]
```
## Options
```bash
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
```
-----------------------------------------
## Getting started (unpacked)
### Run with node
Install dependencies first
```bash
yarn
```
```bash
babel-node index.js [options]
```
> Requires node v8.5.0+
#### Run a demo
```bash
npm run demo # outputs consolidated packages to ./custom.bower.json
```
## Developing
Start by installing all dependencies.
```bash
yarn
npm run dev # continuous tests, watches files
```
### Run tests once
```bash
npm run test
```
### Publish new build
```bash
npm run publish:windows
npm run publish:all # node on win, darwin, linux
```