A set of high-quality Web Components built using Polymer.
Learn more about Vaadin Components.
- For getting started, see our README.md for users
- For more usage examples, see components-examples
The contained modules are:
-
vaadin-components: Polymer-based Web Components.
-
vaadin-components-gwt: The internal GWT implementations for some of the components, exported to JavaScript which is used by the Polymer-based implementations.
-
vaadin-components-export: A set of utilities and scripts to create vaadin-components packages and deploy them to production.
The main Git repository is located at https://dev.vaadin.com:29418/components, and is replicated in GitHub as a read-only repository.
First, make sure you've installed all the necessary tooling:
$ npm install -g bower gulp web-component-tester serve
- Clone the project:
$ git clone https://github.com/vaadin/components.git
$ cd components
- Install the project dependencies
$ npm install
- Compile the GWT modules to JS.
$ gulp gwt
- Spin up a web server
$ serve
- Access the components through
http://localhost:3000/vaadin-components/
- If you wish to import components using the development URL, remember to manually install Polymer as a dependency to your application.
$ cd your-application
$ bower install polymer#0.9.0 --save
- Run all tests locally
$ gulp test
- Run a single browser locally
$ wct --local=chrome/firefox/safari
- Run and debug tests manually
$ serve
$ open http://localhost:3000/vaadin-components/vaadin-grid/test/
- Gather references for visual tests
$ gemini gather visual-test --screenshots-dir=visual-test
- Run visual tests
$ gemini test visual-test --screenshots-dir=visual-test
- Compiling GWT using "pretty" output
$ gulp gwt --gwt-pretty
- Adding file watcher for GWT compilation
$ gulp watch:gwt
- Running and debugging in GWT SuperDevMode
$ mvn -f vaadin-components-gwt/pom.xml gwt:run
- Update your dependencies once in a while
$ npm install
- Creating a zip package under
target/zip/
$ gulp stage:zip OR
$ gulp stage:zip --version=0.3-custom --release
- Copying bower.json and components under
target/bower/
$ gulp stage:bower OR
$ gulp stage:bower --version=0.3-custom --release
Start a server in the root folder, and access one of the demo.html files inside the component folders, e.g:
$ serve
$ open http://localhost:3000/vaadin-components/vaadin-grid/demo.html
Vaadin Components is licensed under the Apache License 2.0.