Bower: How to create and register your own packages | Taswar BhattiTaswar Bhatti. Continuing on our previous blog post on bower, in this blog post, I will talk about how to create your own front-end packages in bower. One thing I forgot to mention in the previous post is git is required when using bower. If you are using windows you can install git for windows or Mac/Unix/Linux. The very first thing one needs to do is create a bower.json file in your project root folder.
By using the command below The above command will prompt you to fill in the form and afterwards it will generate us a bower.json file. Lets take a look at our bower.json file Adding Jquery For our package, we will require jquery and in order to add our dependency to the bower.json file we can use the install command line. Our bower.json file will now look like I will now use my previous jquery plugin that I created for sorting a list and add it to my project.
Next we will add a gitignore file so that we don’t push up the bower_components folder if we have any, also I will create a repo on github.