barneyjs
v5.1.0
Published
Barney is a collection of Angular micro-libraries, useful for various purposes.
Downloads
26
Readme
Barney
Barney is a collection of Angular micro-libraries, useful for various purposes.
Every micro-library is indipendent, tested and documented.
This is the list of Barney libreries with related description:
How to install Barney
Bower
- Install Barney with Bower
bower install --save barney
- Add barney files you want use to index.html file, according to Barney documentation.For example, for infinite module add:
<script src="bower_components/barney/dist/infinite.min.js"></script>
- Add barney main module to your app.js file
angular.module('myproject', [ ..., 'barney'])
NPM
- Install Barney with NPM
npm install --save barneyjs
- Add barney files you want use to index.html file, according to Barney documentation.For example, for infinite module add:
<script src="node_modules/barneyjs/dist/infinite.min.js"></script>
- Add barney main module to your app.js file
angular.module('myproject', [ ..., 'barney'])
Full documentation
To read documentation, open
http://d-mobilelab.github.io/barney/temp replacing temp with version number.
For example, for version 4.0.0, open
http://d-mobilelab.github.io/barney/4.0.0
Contribute
Clone and install dependecies
- Clone Barney git
git clone https://github.com/D-Mobilelab/barney.git barney
npm install -g bower grunt
- Install NPM and Bower dependecies
npm install
bower install
Grunt command list
Create a new version
Barney uses Git flow to create a new feature or make an hotfix and Semantic Versioning to create a new version.
- When you push on master branch, Travis checks if all test are successful, es-lint is successful, the documentation is created without problems and the coverage is sent to coveralls successful. If everything goes well, then Travis approves the merge and a new version can be created
- On master branch use this command
grunt version
- You can choose between a major version, a minor version or a patch
? Current: 1.1.0 - Choose a new version for Barney: (Use arrow keys)
❯ No new version
Major Version (2.0.0)
Minor Version (1.2.0)
Patch (1.1.1)
- Describe the features of this new version, seperating them with semicolons
? Features for version 1.2.0 (use ";" to separate features): ()
Commit, Push, Tag, Docs and NPM version will be automatically updated during the grunt version process
The new Barney version is ready!
Problems publishing a new npm version?
Try running the following commands
npm login
- Enter your credentials
npm publish
The new version will be now published on npm!