Skip to content

Add npm script and docs to run examples #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ This command will start a `webpack-dev-server` with content of `dev` folder.
npm run dev
```

## See Examples in Action
This command will start a `webpack-dev-server` and open your browser in the root folder. From there,
you may click on `examples` and choose an example folder.
```bash
npm run examples
```

## Build
This command will build a distributable version in the `dist` directory.
```bash
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build:full": "cross-env FULL_BUNDLE=true webpack --progress --config webpack.build.config.js --define process.env.FULL_BUNDLE=true",
"build": "npm run build:core && npm run build:full",
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
"examples": "webpack-dev-server --config webpack.dev.config.js --no-info --inline --hot --content-base ./ --open",
"lint": "eslint --ext=.js,.vue src test/unit/specs",
"coverall": "cat ./test/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"coverage": "npm run test && npm run coverall",
Expand Down