Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bower - developing a component while using it

Tags:

bower

Lets say I have project A and B. Project B depends on Project A.

I am working on project A and I would like to see immediate results by running project B.

My co-worker is working on project B and is not allowed to check-out the code for project A at all!

In Maven+Intellij I can easily do this for Java projects. I can define module dependencies in Intellij which allows me to work on project A and run project B with my modifications. For my co-worker Maven will fetch the deployed artifact on our local repository.

Now I am trying to implement the same work-flow for front-end development. (images, HTML, JavaScript).

I decided to go with Bower which seems "straight and to the point".

How can I achieve these 2 qualities I have with Maven and Intellij:

  1. Change a dependency and with "refresh" see results.
  2. Define a different dependency for different developers.
like image 744
guy mograbi Avatar asked May 29 '13 21:05

guy mograbi


People also ask

What are bower components?

Bower is a package manager for client-side libraries and components that contain HTML, CSS, JavaScript, fonts, image files, and so on. You can install, locate, upgrade, and remove Bower packages without leaving WebStorm, on the dedicated Bower page or from the command line in the built-in terminal.

Is bower still used?

1. Bower has been deprecated by its creators. After a long and heated debate on Github, the creators of Bower decided it does not add value to the current web development stack and should be discontinued.

What is the use of bower JSON file?

json file which defines some information about the projects as well as a list of dependencies. The bower. json file is actually used to define a Bower package, so in effect you're creating your own package that contains all of the dependencies for your application.


1 Answers

I can only answer the first question as I have never used these IDEs.

You can use bower link to symlink project A into project B.

Run bower link -h for more info.

like image 132
Sindre Sorhus Avatar answered Sep 28 '22 08:09

Sindre Sorhus