Skip to content

Commit

Permalink
Explicitly specify port in 'npm start' script
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Jan 8, 2019
1 parent 8090a8b commit 30c8bb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,20 @@ To use the Material theme, import the correspondent file from the `theme/materia
`vaadin-button.html`


## Running demos and tests in browser
## Running demos and tests in a browser

1. Fork the `vaadin-button` repository and clone it locally.

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

1. When in the `vaadin-button` directory, run `npm install` and then `bower install` to install dependencies.

1. Run `npm start`, browser will automatically open the component API documentation.

1. You can also open demo or in-browser tests by adding **demo** or **test** to the URL, for example:

- http://127.0.0.1:8080/components/vaadin-button/demo
- http://127.0.0.1:8080/components/vaadin-button/test
- http://127.0.0.1:3000/components/vaadin-button/demo
- http://127.0.0.1:3000/components/vaadin-button/test


## Running tests from the command line
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"scripts": {
"test": "wct",
"prestart": "polymer analyze vaadin-* > analysis.json",
"start": "polymer serve --open",
"start": "polymer serve --port 3000 --open",
"preversion": "gulp version:update"
},
"devDependencies": {
Expand Down

0 comments on commit 30c8bb9

Please sign in to comment.