Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit e618754

Browse files
committed
added postinstall script and updated readme.md
1 parent 61ae390 commit e618754

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ Clone the github repository:
4040

4141
git clone https://github.com/angular/protractor.git
4242
cd protractor
43+
44+
Install all the dependencies in the folder:
45+
4346
npm install
44-
./bin/webdriver-manager update
45-
cd website
46-
npm install
47-
cd ..
47+
4848

4949
Start up a selenium server. By default, the tests expect the selenium server to be running at `http://localhost:4444/wd/hub`. A selenium server can be started with [webdriver-manager](https://github.com/angular/webdriver-manager) which is included in
5050
[bin/webdriver-manager](https://github.com/angular/protractor/blob/master/bin/webdriver-manager).
@@ -54,11 +54,7 @@ Start up a selenium server. By default, the tests expect the selenium server to
5454

5555
Protractor's test suite runs against the included test application.
5656

57-
Install the test application dependencies with:
58-
59-
npm run install_testapp
60-
61-
Start that up with
57+
Start the test application with
6258

6359
npm start
6460

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@
6262
"main": "built/index.js",
6363
"typings": "built/index.d.ts",
6464
"scripts": {
65+
"postinstall": "cd bin && webdriver-manager update && npm run install_website && npm run install_testapp",
6566
"prepublish": "gulp prepublish",
6667
"pretest": "gulp pretest",
6768
"start": "node testapp/scripts/web-server.js",
6869
"test": "node scripts/test.js",
70+
"install_website":"cd website && npm install",
6971
"install_testapp": "cd testapp && npm install",
7072
"tsc": "./node_modules/typescript/bin/tsc",
7173
"tsc:w": "./node_modules/typescript/bin/tsc -w"

0 commit comments

Comments
 (0)