twigs
v0.2.4
Published
> "And Calimero was a hatchling no more - old enough to build his own nest..."
Downloads
6
Readme
Twigs
"And Calimero was a hatchling no more - old enough to build his own nest..."
Twigs is a library of useful Services and Directives for AngularJS applications. It evolved out of the Hatch project.
Status
| Branch | Status | | ------------- |:-------------:| | master | | | develop | |
Quickstart
- Add twigs as a dependency to your project.
bower install twigs --save-dev
- Reference the twigs modules you want to use in your angular module's declaration.
var App = angular.module('MyApp',['twigs']);
- Reference the needed files in your index.html
<head>
<!-- include twigs css for twigs.globalPopups -->
<!-- after bootstrap.css and before yourOwn.css -->
<link rel="stylesheet" href="bower_components/twigs/dist/styles/twigs.css">
</head>
<body>
<!-- here goes your app/markup -->
<!-- include angular -->
<script src="bower_components/angular/angular.js"></script>
<!-- include twigs -->
<script src="bower_components/twigs/dist/twigs.js"></script>
</body>
Docu
- API reference http://hatchteam.github.io/twigs/docs/#/api/
Development Info
- check out the code
- run npm install
- run gulp test
Create a new twigs release
(this tutorial is only relevant for twigs core developers)
- merge your changes into master
- change version number in bower.json { "name": "twigs", "version": "0.1.4.1", ...
- grunt build
- commit the version number and dist folder
- run gulp docu if the docu changed
- commit the new docu to "gh-pages" branch
- push gh-pages branch
- push master
- create new release on github
- make sure that all branches (i.e. hotfix and develop) have at least the version of your new release