Skip to content

A cli utility to simplify linking and installing of bower packages locally

License

Notifications You must be signed in to change notification settings

chaosmark/bower-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

A command line utility to ease the link-ing of local bower modules Almost completely based on and fully compatible with npm-workspace by Mario Casciaro.

Install

npm install -g bower-workspace

Configure workspace links

Create a workspace.json in your workspace dir, and create mappings module name -> module dir

{
  "links": {
    "prj2": "prj2",
    "prj3": "prj3"
  }
}

Then

To install and link everything in your workspace

cd myBowerWorkspace
bower-workspace install

To install and link only one module

cd myBowerWorkspace/prj1
bower-workspace install

To clean your workspace (remove all bower_components directories)

cd myBowerWorkspace
bower-workspace clean

Package an app for deployment

When you are ready to deploy your app, you can package all your modules for production, including all your private/local only modules. Just use these 3 options:

  • -c: Copy the packages into bower_components instead of linking them
  • -g: Remove .git directories from dependencies while copying. This is so you can package your production app under a new repo (e.g. for use in a PaaS)
  • -p: Installs only production dependencies (ignores devDependencies)

Example

cd myNodeJsWorkspace/yourapp
bower-workspace install -cgp

Your app is now ready for deployment.

About

A cli utility to simplify linking and installing of bower packages locally

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published