Skip to content

Commit

Permalink
Merge pull request #18 from seegno/bugfix/remove-postinstall
Browse files Browse the repository at this point in the history
Remove npm postinstall script
  • Loading branch information
fixe committed Mar 6, 2015
2 parents ae82fa9 + e751f15 commit 63da6e3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
37 changes: 20 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,24 @@ Choose your preferred method:

## Usage

1. Include `angular-oauth2` and dependencies.
###### 1. Download `angular-oauth2` dependencies.

* [angular](https://github.com/angular/angular.js)
* [angular-cookie](https://github.com/ivpusic/angular-cookie)
* [query-string](https://github.com/sindresorhus/query-string)

If you're using `bower` they will be automatically downloaded upon installing this library.

###### 2. Include `angular-oauth2` and dependencies.

```html
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-cookie/dist/angular-cookie.min.js"></script>
<script src="bower_components/query-string/query-string.min.js"></script>
<script src="bower_components/angular-oauth2/dist/angular-oauth2.min.js"></script>
<script src="<VENDOR_FOLDER>/angular/angular.min.js"></script>
<script src="<VENDOR_FOLDER>/angular-cookie/dist/angular-cookie.min.js"></script>
<script src="<VENDOR_FOLDER>/query-string/query-string.min.js"></script>
<script src="<VENDOR_FOLDER>/angular-oauth2/dist/angular-oauth2.min.js"></script>
```

2. Configure `OAuth` (required) and `OAuthToken` (optional):
###### 3. Configure `OAuth` (required) and `OAuthToken` (optional):

```js
angular.module('myApp', ['angular-oauth2'])
Expand All @@ -36,7 +44,7 @@ angular.module('myApp', ['angular-oauth2'])
}]);
```

3. Catch `OAuth` errors and do something with them (optional):
###### 4. Catch `OAuth` errors and do something with them (optional):

```js
angular.module('myApp', ['angular-oauth2'])
Expand All @@ -58,12 +66,6 @@ angular.module('myApp', ['angular-oauth2'])
}]);
```

Dependencies:

* [angular](https://github.com/angular/angular.js)
* [angular-cookie](https://github.com/ivpusic/angular-cookie)
* [query-string](https://github.com/sindresorhus/query-string)

## API

#### OAuthProvider
Expand Down Expand Up @@ -169,10 +171,11 @@ It will be awesome if you can help us evolve `angular-oauth2`. Want to help?

1. [Fork it](https://github.com/seegno/angular-oauth2).
2. `npm install`.
3. Do your magic.
4. Run the tests: `gulp test`.
5. Build: `gulp build`
6. Create a [Pull Request](https://github.com/seegno/angular-oauth2/compare).
3. `bower install`
4. Do your magic.
5. Run the tests: `gulp test`.
6. Build: `gulp build`
7. Create a [Pull Request](https://github.com/seegno/angular-oauth2/compare).

*The source files are written in ES6.*

Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "2.0.0",
"description": "Angular OAuth2",
"main": "./dist/angular-oauth2.js",
"scripts": {
"postinstall": "./node_modules/bower/bin/bower install"
},
"repository": {
"type": "git",
"url": "https://github.com/seegno/angular-oauth2.git"
Expand Down

0 comments on commit 63da6e3

Please sign in to comment.