Skip to content

Commit 87da652

Browse files
committed
Updated readme to consolidate install on npm.
1 parent 0666bda commit 87da652

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@ You have to install required software before you're able to use grunt:
2121
Angular Patternfly stays up to date with the Node LTS [Release Schedule](https://github.com/nodejs/LTS#lts_schedule). If you're using Angular Patternfly downstream, we suggest the use of an actively supported version of Node/NPM, although prior versions of Node may work.
2222

2323
* Install npm - If npm is not already installed with Node.js, you have to install it manually. Find more information on [NPM](https://www.npmjs.org/)
24-
* Install Bower globally - Find more information on [Bower](http://bower.io/)
2524

26-
npm install -g bower
2725
* Install Grunt globally - Find more information on [Grunt](http://gruntjs.com/)
2826

2927
npm install -g grunt-cli
28+
3029
* Install npm dependencies with:
3130

3231
npm install
33-
* Install bower dependencies with:
34-
35-
bower install
3632

3733
You should have your environment ready now.
3834

@@ -52,8 +48,8 @@ Note:
5248

5349
1. Add Angular and Angular-PatternFly as dependencies for your project and you'll receive all the libraries you'll need:
5450

55-
$ bower install angular --save
56-
$ bower install angular-patternfly --save
51+
$ npm install angular --save
52+
$ npm install angular-patternfly --save
5753

5854
2. Add the core Patternfly CSS and script includes to your HTML file(s):
5955

@@ -62,26 +58,26 @@ Note:
6258
3. Add the following CSS include to your HTML file(s):
6359

6460
<!-- Angular-PatternFly Styles -->
65-
<link rel="stylesheet" href="bower_components/angular-patternfly/dist/styles/angular-patternfly.min.css" />
61+
<link rel="stylesheet" href="node_modules/angular-patternfly/dist/styles/angular-patternfly.min.css" />
6662

6763
4. Add the following script includes to your HTML file(s), adjusting where necessary to pull in only what you need:
6864

6965
<!-- Angular -->
70-
<script src="bower_components/angular/angular.min.js"></script>
66+
<script src="node_modules/angular-patternfly/node_modules/angular/angular.min.js"></script>
7167

7268
<!-- Angular-Bootstrap -->
73-
<script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>
74-
<script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
69+
<script src="node_modules/angular-patternfly/node_modules/angular-ui-bootstrap/dist/ui-bootstrap.js"></script>
70+
<script src="node_modules/angular-patternfly/node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
7571

7672
<!-- Angular-Sanitize -->
77-
<script src="bower_components/angular-sanitize/angular-sanitize.min.js"></script>
73+
<script src="node_modules/angular-patternfly/node_modules/angular-sanitize/angular-sanitize.min.js"></script>
7874

7975
<!-- Angular-PatternFly -->
80-
<script src="bower_components/angular-patternfly/dist/angular-patternfly.min.js"></script>
76+
<script src="node_modules/angular-patternfly/dist/angular-patternfly.min.js"></script>
8177

8278
<!-- C3, D3 - Charting Libraries. Only required if you are using the 'patternfly.charts' module-->
83-
<script src="bower_components/patternfly/components/c3/c3.min.js"></script>
84-
<script src="bower_components/patternfly/components/d3/d3.min.js"></script>
79+
<script src="node_modules/angular-patternfly/node_modules/patternfly/node_modules/c3/c3.min.js"></script>
80+
<script src="node_modules/angular-patternfly/node_modules/patternfly/node_modules/d3/d3.min.js"></script>
8581

8682
5. (optional) The 'patternfly.charts' module is not a dependency in the default angular 'patternfly' module.
8783
In order to use patternfly charts you must add 'patternfly.charts' as a dependency in your application:
@@ -112,7 +108,7 @@ grunt ngdocs:view --port=8002
112108

113109
## Releasing
114110

115-
Angular PatternFly is released through Bower. To release a new version version of Angular PatternFly, edit `bower.json` and `package.json` accordingly.
111+
Angular PatternFly is released through Bower and npm. To release a new version version of Angular PatternFly, edit `bower.json` and `package.json` accordingly.
116112

117113
Update the version listed in `bower.json` by editing the file and changing the line:
118114

0 commit comments

Comments
 (0)