Ember VCL Build Demo
The build-demo
package creates demo apps for Ember VCL components
It can be used for testing/development of an individual component.
Usage
How to build a demo for a component
- Checkout the component
- Run
npm install
- Run
npm test
If everything is fine, a new browser window will be opened at http://localhost:3333 showing the component demo.
For example, the navigation component:
git clone https://github.com/ember-vcl/navigation.git
cd navigation
npm install
npm test
How add demo for an existing component w/o one
- Add the
build-demo
package as a dependency into the component'spackage.json
- Define
npm test
command in package.json as"test": "cd tmp && gulp watch"
- Create a folder called
demo
in the component's root folder - Create a folder called
example
in thedemo
folder - Create two files:
application.js
andapplication.hbs
. Theapplication.js
must export an Ember controller and the application.hbs should contain the application template - Commit the changes and create a release
Now you can build the demo according to the How to build a demo for a component
Demo
See instructions how to run a demo app