Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 9401b22

Browse files
committed
Merge pull request #11 from ehelms/update-bower
Updating Bower ignores to ignore all but the dist/ and less/ directories...
2 parents 713cc6c + bbd6fab commit 9401b22

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
This reference implementation of PatternFly is based on [Bootstrap v3](http://getbootstrap.com/). Think of PatternFly as a "skinned" version of Bootstrap with additional components and customizations.
44

5+
## Install with Bower
6+
7+
PatternFly can be installed and managed through Bower. To do so, either add `patternfly` as a dependency in your `bower.json` or run the following:
8+
9+
```
10+
bower install patternfly
11+
```
12+
513
## Dependencies
614

715
PatternFly includes a number of dependencies that are not committed to this repository. To add them, see "Install Bower Components". And make sure you keep them updated (see "Keeping Bower Components Updated").
@@ -82,6 +90,31 @@ PatternFlyIcons font is generated using [IcoMoon](http://icomoon.io/app). [Load
8290

8391
The `tests/` directory contains HTML pages with component and pattern examples in order to facilitate development. Please consult the official documentation (see below) for full details on how to use PatternFly.
8492

93+
## Release
94+
95+
The PatternFly library is released through the Bower package manager. This package manager determines available versions and installs based upon git tags. To release a new version version of PatternFly the version listed in `bower.json` needs to be updated and the repository tagged and pushed upstream.
96+
97+
Update the version listed in `bower.json` by editing the file and changing the line:
98+
99+
```
100+
"version": "<new_version>"
101+
```
102+
103+
Commit the version bump:
104+
105+
```
106+
git commit -a -m "Version bump to <new_version>"
107+
```
108+
109+
Tag and push upstream (assuming you have commit access):
110+
111+
```
112+
git tag <new_version>
113+
git push && git push --tags
114+
```
115+
116+
The new version will now be automatically available via Bower.
117+
85118
## Documentation
86119

87120
See [https://www.patternfly.org](https://www.patternfly.org) and [http://getbootstrap.com/](http://getbootstrap.com/).

bower.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"bower_components",
1111
"app/components",
1212
"test",
13-
"tests"
13+
"tests",
14+
"package.json",
15+
"Gruntfile.js",
16+
"PatternFlyIcons-webfont.json",
17+
"README.md"
1418
],
1519
"dependencies": {
1620
"bootstrap": "~3.1.1",
@@ -19,6 +23,5 @@
1923
"font-awesome": "~4.0.1",
2024
"html5shiv": "~3.7.0",
2125
"respond": "~1.3.0"
22-
},
23-
"private": true
26+
}
2427
}

0 commit comments

Comments
 (0)