AngularJS directives for PatternFly
This project will provide a set of common AngularJS directives for use with the PatternFly reference implementation.
- Web site: https://www.patternfly.org
- API Docs: http://angular-patternfly.rhcloud.com/#/api
- Build Status: https://travis-ci.org/patternfly/angular-patternfly.svg?branch=master
You have to install required software before you're able to use grunt:
-
Install Node.js - Find more information on Node.js
-
Install npm - If npm is not already installed with Node.js, you have to install it manually. Find more information on NPM
-
Install Bower globally - Find more information on Bower
npm install -g bower -
Install Grunt globally - Find more information on Grunt
npm install -g grunt-cli -
Install npm dependencies with:
npm install -
Install bower dependencies with:
bower install
Note: The 'patternfly.charts' module is not a dependency in the default angular 'patternfly' module. In order to use patternfly charts you must add 'patternfly.charts' as a dependency in your application.
You should have your environment ready now.
Angular-PatternFly can now be built with:
grunt buildTo see all the grunt tasks that are available:
grunt helpThe API documentation can be built with:
grunt ngdocsIf you're interested in reading the docs right away, you can use special target, which will start a web server:
grunt ngdocs:viewAfter executing this tasks you'll be able to access the documentation at http://localhost:8000/.
Angular PatternFly is released through Bower. To release a new version version of Angular PatternFly, edit bower.json and package.json accordingly.
Update the version listed in bower.json by editing the file and changing the line:
"version": "<new_version>"
Update the patternfly reference version listed in bower.json by editing the file and changing the line below. Angular patternfly has a dependency on the patternfly reference implementation so the major and minor version numbers of the two project should be the same:
"patternfly": "<new_version>"
Update the version listed in package.json by editing the file and changing the line:
"version": "<new_version>"
Commit the version bump:
git commit -m "Version bump to <new_version>"
Publish a new set of release notes with new version as the tag version:
https://github.com/patternfly/angular-patternfly/releases/new
We're always interested in contributions from the community.
Please ensure that your PR provides the following:
- Detailed description of the proposed changes
- Follows the style rules for javascript and html.
- Rebased onto the latest master commit