From e751f154b1ace8abec6b382bcf211e6e0fa9c5da Mon Sep 17 00:00:00 2001 From: Rui Silva Date: Fri, 6 Mar 2015 10:52:42 +0000 Subject: [PATCH] Remove npm postinstall script --- README.md | 37 ++++++++++++++++++++----------------- package.json | 3 --- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 2663f29..b4bf8b5 100644 --- a/README.md +++ b/README.md @@ -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 - - - - + + + + ``` -2. Configure `OAuth` (required) and `OAuthToken` (optional): +###### 3. Configure `OAuth` (required) and `OAuthToken` (optional): ```js angular.module('myApp', ['angular-oauth2']) @@ -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']) @@ -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 @@ -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.* diff --git a/package.json b/package.json index 2dcd98c..1177c5b 100644 --- a/package.json +++ b/package.json @@ -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"