Skip to content

Commit

Permalink
Explicitly specify port in 'npm start' script [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Jan 9, 2019
1 parent 3f7456c commit 1fe8b96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,16 @@ To use the Material theme, import the correspondent file from the `theme/materia

1. Make sure you have [npm](https://www.npmjs.com/) and [Bower](https://bower.io) installed.

1. When in the `vaadin-split-layout` directory, run `npm install` and then `polymer install --variants` to install dependencies.
1. When in the `vaadin-split-layout` directory, run `npm install` and then `bower install` to install dependencies.

1. Run `polymer serve`, after that you will be able to access:
1. Make sure you have [polymer-cli](https://www.npmjs.com/package/polymer-cli) installed globally: `npm i -g polymer-cli`.

- Polymer1-compatible version:
1. Run `npm start`, browser will automatically open the component API documentation.

- API documentation: http://127.0.0.1:8000/components/vaadin-split-layout/
- Examples: http://127.0.0.1:8000/components/vaadin-split-layout/demo/
- Tests: http://127.0.0.1:8000/components/vaadin-split-layout/test/
1. You can also open demo or in-browser tests by adding **demo** or **test** to the URL, for example:

- Polymer2-compatible version:

- API documentation: http://127.0.0.1:8001/components/vaadin-split-layout/
- Examples: http://127.0.0.1:8001/components/vaadin-split-layout/demo/
- Tests: http://127.0.0.1:8001/components/vaadin-split-layout/test/

Note that ports `8000` and `8001` could be different in your environment.
- http://127.0.0.1:3000/components/vaadin-split-layout/demo
- http://127.0.0.1:3000/components/vaadin-split-layout/test


## Running tests from the command line
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"scripts": {
"test": "wct",
"start": "polymer serve --port 3000 --open",
"preversion": "gulp version:update"
}
}

0 comments on commit 1fe8b96

Please sign in to comment.