Coder Social home page Coder Social logo

danmindru / bower-consolidator Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 57 KB

๐Ÿ—ป CLI tool that takes a bunch of bower packages and makes one big bower file with frozen versions.

JavaScript 100.00%
bower-packages frozen-versions polymer bower-consolidator cli command-line-tool

bower-consolidator's Introduction

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

PowerShell ./bower-consolidator.exe [options]

Mac / Linux

./bower-consolidator [options]

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

Getting started (unpacked)

Run with node

Install dependencies first

yarn
babel-node index.js [options]

Requires node v8.5.0+

Run a demo

npm run demo # outputs consolidated packages to ./custom.bower.json

Developing

Start by installing all dependencies.

yarn
npm run dev # continuous tests, watches files

Run tests once

npm run test

Publish new build

npm run publish:windows
npm run publish:all # node on win, darwin, linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.