-
Notifications
You must be signed in to change notification settings - Fork 18
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
Example with polymer . #14
Comments
Hello, it should be fairly simple. Candies are available. I contributed to those on DefTyped. We will miss the "iron & paper" components candies though because of the missing definitions. We should use @ambient or @interface here to strongly type polymer components. |
First i will try the "@ambient https://github.com/Ambient or @interface But this is the fitting occasion for me to learn more from Jsweet . I will see . regards . On 23 March 2016 at 22:14, Louis Grignon notifications@github.com wrote:
Eric Ponthiaux * (+33) 06 14 67 13 11 |
Hi guys, |
Nice, thanks, I will give a try soon. |
Great news! I finally got time to publish a polymer example. It works like a charm! I followed the following tutorial so readers could have a reference documentation: |
Hi guys , I suspect a problem in the deployment of the most recent version of " Trying to build the maven plugin gives me : *$ mvn clean install [INFO] Scanning for projects... [INFO] [INFO][INFO] Building JSweet maven plugin 1.1.1 [INFO]Downloading: [INFO][INFO] BUILD FAILURE [INFO][INFO] Total time: 1.022s [INFO] Finished at: Fri Jul 01 13:18:16 CEST 2016 [INFO] Final Memory: 20M/981M [INFO][ERROR] Failed to execute goal on project jsweet-maven-plugin: Could not Regards . On 20 May 2016 at 17:30, Louis Grignon notifications@github.com wrote:
Eric Ponthiaux * (+33) 06 14 67 13 11 |
Hello. I am just looking at it, I get back to you asap. |
Could you please try again? It should be better. |
Look perfect now . Thanks . On 1 July 2016 at 15:28, Louis Grignon notifications@github.com wrote:
Eric Ponthiaux * (+33) 06 14 67 13 11 |
Good evening, Where can I find an example on how to build a candy ? I found some lines that talk about it in the jsweet documentation , but Regards . Eric. On 1 July 2016 at 17:03, ponthiaux eric ponthiaux.eric@gmail.com wrote:
Eric Ponthiaux * (+33) 06 14 67 13 11 |
Hi Eric, It all depends from what you want to build a candy. If you want to build a candy from a JSweet program, then you can use the following build section in your Maven pom.xml. Key points:
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<fork>true</fork>
</configuration>
</plugin>
<plugin>
<groupId>org.jsweet</groupId>
<artifactId>jsweet-maven-plugin</artifactId>
<version>1.2.0-SNAPSHOT</version>
<configuration>
<bundle>true</bundle>
<outDir>src/main/resources/META-INF/resources/webjars/${project.name}/${project.version}</outDir>
<tsOut>.jsweet/ts</tsOut>
<targetVersion>ES5</targetVersion>
<verbose>true</verbose>
<declaration>true</declaration>
<dtsOut>src/main/resources/src/typings</dtsOut>
<encoding>UTF-8</encoding>
</configuration>
<executions>
<execution>
<id>generate-js</id>
<phase>generate-sources</phase>
<goals>
<goal>jsweet</goal>
</goals>
</execution>
<execution>
<id>clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>src/main/resources/src/typings</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
<fileset>
<directory>src/main/resources/META-INF/resources/webjars</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jsweet</groupId>
<artifactId>jsweet-maven-plugin</artifactId>
<versionRange>
[1.0.0-RC1,)
</versionRange>
<goals>
<goal>jsweet</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> You also need a {
"transpilerVersion": "1.1.1"
} Then just And of course use is as a regular Maven artifact in your client project. Tell me if anything is unclear. |
Good evening Renaud . Finally i've done a bit of reverse engineering on an original candy jar and Thanks a lot for the answer . Regards. Eric. On 2 July 2016 at 21:00, Renaud Pawlak notifications@github.com wrote:
Eric Ponthiaux * (+33) 06 14 67 13 11 |
Could you create a polymer example ?
The text was updated successfully, but these errors were encountered: