diff options
author | Manolo Carrasco <manolo@apache.org> | 2015-09-29 23:54:43 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2015-09-29 23:54:43 +0200 |
commit | 75e39b939d3a171c5c26d2b9bd3afeb5345ae9b1 (patch) | |
tree | e7bd8cf1db896d96b6d2dd8f17d38764a80cb1b4 | |
parent | c532eac6b41b041f48194ad9afe7a5e37064efc9 (diff) | |
parent | fef191e55a0055ace031fb2431fc2d9edc781052 (diff) | |
download | vaadin-core-75e39b939d3a171c5c26d2b9bd3afeb5345ae9b1.tar.gz vaadin-core-75e39b939d3a171c5c26d2b9bd3afeb5345ae9b1.zip |
Merge branch 'master' into docsite_task
-rw-r--r-- | README.md | 30 |
1 files changed, 18 insertions, 12 deletions
@@ -43,20 +43,26 @@ We offer three ways to use Vaadin Components in your project: Bower, CDN and ZIP ``` This will download Vaadin Components and its dependencies to the `bower_components` folder inside your project's folder. - - If you want to experiment with current development code, download the snapshot version running: - + + If you wish to use the development snapshot version of some component, you can install/update that separately: + ```shell - $ bower install --save vaadin-components#master + $ bower install --save vaadin-grid#master ``` - ##### CDN You can use Vaadin Components from CDN (see example below). This is especially convenient for services like JSFiddle, Codepen.io, etc. + For example, to import vaadin-grid, use the following URL: + `https://cdn.vaadin.com/vaadin-components/latest/vaadin-grid/vaadin-grid.html` - _*Note*: that we have a fragment in the url with the version to use, so you could for instance replace it with the snapshot version_ + To import all Vaadin Components, use the following URL: + + `https://cdn.vaadin.com/vaadin-components/latest/vaadin-components/vaadin-components.html` + + > You can also use the nightly snapshot versions of any component, e.g. https://cdn.vaadin.com/vaadin-components/master/vaadin-grid/vaadin-grid.html - ##### Download ZIP @@ -68,7 +74,7 @@ We offer three ways to use Vaadin Components in your project: Bower, CDN and ZIP Create a new HTML file inside your project folder and copy the following code into it (choose one of the options how to import Vaadin Components in the `<head>` section): - > **Note on serving the files during development**, when using Bower or the ZIP archive: + > **Serving the files during development**, when using Bower or the ZIP archive: > Due to browser security restrictions, serving HTML imports from a `file:///` URL does not work. You need a web server to view pages where you use custom elements. One simple option is to use the [`serve`](https://www.npmjs.com/package/serve) NPM package. @@ -76,19 +82,19 @@ We offer three ways to use Vaadin Components in your project: Bower, CDN and ZIP <!doctype html> <html> <head> - <!-- Import Web Component polyfills and the components that you want --> + <!-- Import Web Component polyfills and all Vaadin Components --> <!-- CDN --> - <script src="https://cdn.vaadin.com/vaadin-components/latest/webcomponentsjs/webcomponents-lite.js"></script> - <link href="https://cdn.vaadin.com/vaadin-components/latest/vaadin-grid/vaadin-grid.html" rel="import"> + <script src="https://cdn.vaadin.com/vaadin-components/latest/webcomponentsjs/webcomponents-lite.min.js"></script> + <link href="https://cdn.vaadin.com/vaadin-components/latest/vaadin-components/vaadin-components.html" rel="import"> <!-- Bower --> - <!-- <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script> + <!-- <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script> <link href="bower_components/vaadin-components/vaadin-components.html" rel="import"> --> <!-- ZIP archive --> - <!-- <script src="deps/vaadin-components/webcomponentsjs/webcomponents-lite.js"></script> - <link href="deps/vaadin-components/vaadin-components/vaadin-components.html" rel="import"> --> + <!-- <script src="deps/webcomponentsjs/webcomponents-lite.min.js"></script> + <link href="deps/vaadin-components/vaadin-components.html" rel="import"> --> </head> <body> |