Permalink
Browse files

Adding elements not included in the library.

Demo is using vaadin-mock-xhr which is not part of the
gwt-polymer-elements.jar.
This commit also helps to users depending on other
components how to setup de maven project.
  • Loading branch information...
manolo committed Oct 26, 2016
1 parent 38ffa3f commit f08725c5d1b81a6970b8ed8703807303c0070341
Showing with 82 additions and 2 deletions.
  1. +6 −0 .gitignore
  2. +9 −0 demo/bower.json
  3. +10 −0 demo/package.json
  4. +57 −2 demo/pom.xml
View
@@ -51,3 +51,9 @@ target
.settings
.project
.classpath
# Temporary stuff in demo
demo/bower_components
demo/src/main/resources
demo/node
demo/src/main/java/com/vaadin/polymer/vaadin
View
@@ -0,0 +1,9 @@
{
"name": "gwt-polymer-elements-demo",
"description": "demo npm and bower dependencies not included in jar",
"main": "",
"license": "Apache-2.0",
"dependencies": {
"vaadin-mock-xhr": "manolo/vaadin-mock-xhr"
}
}
View
@@ -0,0 +1,10 @@
{
"name": "gwt-polymer-elements-demo",
"version": "1.7.0",
"description": "demo npm and bower dependencies not included in jar",
"license": "Apache-2.0",
"repository": "https://github.com/vaadin/gwt-polymer-elements.git",
"dependencies": {
"gwt-api-generator": "vaadin/gwt-api-generator#master"
}
}
View
@@ -82,8 +82,6 @@
<build>
<finalName>gwt-polymer-demo</finalName>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
@@ -148,6 +146,63 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install node and npm</id>
<phase>generate-resources</phase>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v6.2.0</nodeVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>bower install</id>
<goals>
<goal>bower</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<target>
<delete dir="bower_components/polymer" />
<delete dir="bower_components/webcomponentsjs" />
<exec
dir="${project.basedir}"
executable="node_modules/.bin/gwt-api-generator">
<arg value="--excludeLib" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit f08725c

Please sign in to comment.