Working on second Release part #1

Posted: February 1, 2014 in Programming
Tags: , , ,

Welcome to Friday evening…The last day of January outside, and winter is still here…I am getting more and more familiar with OpenSource Development and Mozilla in particular, however much more ahead and much much more I want to get… Working on Content Security Policy (CSP) is still in the process, however some issues are still not resolved.

This week I learned a lot of new for me, in particular:

  • How to use bower. (My job was to package nav.css with bower)

    Bower is a package manager for the web. It offers a generic, unopinionated solution to the problem of front-end package management, while exposing the package dependency model via an API that can be consumed by a more opinionated build stack. There are no system wide dependencies, no dependencies are shared between different apps, and the dependency tree is flat. From ->

    • First step is to create a repo on Github with a nav.css file
    • Next is to give a tag to a commit. (Learned some about Versions as well) Also this article helps with version understanding -> About Versions Thanks Jon Buckley for the link.
    • After that, you have to edit bower.json file inside all required webmaker components, which are using nav.css
    • Change path inside html pages, which are using nav.css file, to bower package path
    • Check all the pages and test
    • If something wrong, or nav.css file is damaged, you will have to change it in your repo (change the version as well) and change version inside bower.json file as well, to make changes happen.
    • Commit all the updates and do the PR.
  • Squashing commits – basically, it is when you are fixing some bug and committing small things about the same problem. After such work, you end up with 10 commits, which are useless. Here is where commit squashing take place. It puts many commits into one. Here is how it works: git rebase -i HEAD~3 This example will squash last 3 commits. After calling this command Text Editor will be opened (vim, sublime, etc.) and you will have to specify some options. You can find good tutorial here -> Squashing commits
  • Looked through Google Map API. Started my own example of it.

Right now thinking of getting a bug more concerning js backend..Hopefully will find one soon. Also my thanks to Jon Buckley for his help and patience 🙂

See you..


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s