Creating a bower library
Inspired by Brian Fords bower post and using angularjs-library yeoman generator I created a simple angularjs component which can be installed using bower.
My cheatsheet of steps:
Make folder and run generator
mkdir dos-<library>
cd dos-<library>
yo angularjs-library
init as git repo
git init
Set & confirm commits email
git config user.email "deniskos@hotmail.com"
git config user.email
Commit
git add .
git ci -m "inital commit"
Add to remote Github
create a new github repo then use command below
git remote add origin https://github.com/DenisOS/dos-sequential-dates.git
Verify
git remote -v
Push to master
git push -u origin master
Tag it and push tag (used by bower)
git tag v0.1.0
git push origin v0.1.0
Install a library dependency from Bower
bower install moment#2.5.0 --save-dev
My cheatsheet of steps:
Make folder and run generator
mkdir dos-<library>
cd dos-<library>
yo angularjs-library
init as git repo
git init
Set & confirm commits email
git config user.email "deniskos@hotmail.com"
git config user.email
Commit
git add .
git ci -m "inital commit"
Add to remote Github
create a new github repo then use command below
git remote add origin https://github.com/DenisOS/dos-sequential-dates.git
Verify
git remote -v
Push to master
git push -u origin master
Tag it and push tag (used by bower)
git tag v0.1.0
git push origin v0.1.0
Install a library dependency from Bower
bower install moment#2.5.0 --save-dev
Comments
Post a Comment