{"action":"created","issue":{"url":"https://api.github.com/repos/cincheo/jsweet-examples/issues/14","repository_url":"https://api.github.com/repos/cincheo/jsweet-examples","labels_url":"https://api.github.com/repos/cincheo/jsweet-examples/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/cincheo/jsweet-examples/issues/14/comments","events_url":"https://api.github.com/repos/cincheo/jsweet-examples/issues/14/events","html_url":"https://github.com/cincheo/jsweet-examples/issues/14","id":143065266,"number":14,"title":"Example with polymer .","user":{"login":"EPOTH","id":693249,"avatar_url":"https://avatars.githubusercontent.com/u/693249?v=3","gravatar_id":"","url":"https://api.github.com/users/EPOTH","html_url":"https://github.com/EPOTH","followers_url":"https://api.github.com/users/EPOTH/followers","following_url":"https://api.github.com/users/EPOTH/following{/other_user}","gists_url":"https://api.github.com/users/EPOTH/gists{/gist_id}","starred_url":"https://api.github.com/users/EPOTH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPOTH/subscriptions","organizations_url":"https://api.github.com/users/EPOTH/orgs","repos_url":"https://api.github.com/users/EPOTH/repos","events_url":"https://api.github.com/users/EPOTH/events{/privacy}","received_events_url":"https://api.github.com/users/EPOTH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-03-23T20:02:49Z","updated_at":"2016-07-02T19:41:58Z","closed_at":null,"body":"Could you create a polymer example ? "},"comment":{"url":"https://api.github.com/repos/cincheo/jsweet-examples/issues/comments/230118580","html_url":"https://github.com/cincheo/jsweet-examples/issues/14#issuecomment-230118580","issue_url":"https://api.github.com/repos/cincheo/jsweet-examples/issues/14","id":230118580,"user":{"login":"EPOTH","id":693249,"avatar_url":"https://avatars.githubusercontent.com/u/693249?v=3","gravatar_id":"","url":"https://api.github.com/users/EPOTH","html_url":"https://github.com/EPOTH","followers_url":"https://api.github.com/users/EPOTH/followers","following_url":"https://api.github.com/users/EPOTH/following{/other_user}","gists_url":"https://api.github.com/users/EPOTH/gists{/gist_id}","starred_url":"https://api.github.com/users/EPOTH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPOTH/subscriptions","organizations_url":"https://api.github.com/users/EPOTH/orgs","repos_url":"https://api.github.com/users/EPOTH/repos","events_url":"https://api.github.com/users/EPOTH/events{/privacy}","received_events_url":"https://api.github.com/users/EPOTH/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T19:41:58Z","updated_at":"2016-07-02T19:41:58Z","body":"Good evening Renaud .\n\nFinally i've done a bit of reverse engineering on an original candy jar and\nthen found how to properly do it .\n\nThanks a lot for the answer .\n\nRegards.\n\nEric.\n\nOn 2 July 2016 at 21:00, Renaud Pawlak <notifications@github.com> wrote:\n\n> Hi Eric,\n>\n> It all depends from what you want to build a candy. If you want to build a\n> candy from a JSweet program, then you can use the following build section\n> in your Maven pom.xml.\n>\n> Key points:\n>\n>    - put the generated JavaScript code in the jar so that it can be\n>    automatically extracted by JSweet in the client project\n>    - generate the TypeScript defs (declaration option)\n>    - put the generated TypeScript defs in the jar (mandatory because\n>    JSweet delegates to tsc)\n>    - the plugin management part is just to avoid errors under Eclipse (so\n>    you can get rid of it if you are not using Eclipse)\n>\n>     <build>\n>\n>         <sourceDirectory>src/main/java</sourceDirectory>\n>         <resources>\n>             <resource>\n>                 <directory>src/main/resources</directory>\n>                 <filtering>true</filtering>\n>             </resource>\n>         </resources>\n>         <plugins>\n>             <plugin>\n>                 <artifactId>maven-compiler-plugin</artifactId>\n>                 <version>3.3</version>\n>                 <configuration>\n>                     <source>1.8</source>\n>                     <target>1.8</target>\n>                     <fork>true</fork>\n>                 </configuration>\n>             </plugin>\n>\n>             <plugin>\n>                 <groupId>org.jsweet</groupId>\n>                 <artifactId>jsweet-maven-plugin</artifactId>\n>                 <version>1.2.0-SNAPSHOT</version>\n>                 <configuration>\n>                     <bundle>true</bundle>\n>                     <outDir>src/main/resources/META-INF/resources/webjars/${project.name}/${project.version}</outDir>\n>                     <tsOut>.jsweet/ts</tsOut>\n>                     <targetVersion>ES5</targetVersion>\n>                     <verbose>true</verbose>\n>                     <declaration>true</declaration>\n>                     <dtsOut>src/main/resources/src/typings</dtsOut>\n>                     <encoding>UTF-8</encoding>\n>                 </configuration>\n>                 <executions>\n>                     <execution>\n>                         <id>generate-js</id>\n>                         <phase>generate-sources</phase>\n>                         <goals>\n>                             <goal>jsweet</goal>\n>                         </goals>\n>                     </execution>\n>                     <execution>\n>                         <id>clean</id>\n>                         <phase>clean</phase>\n>                         <goals>\n>                             <goal>clean</goal>\n>                         </goals>\n>                     </execution>\n>                 </executions>\n>             </plugin>\n>             <plugin>\n>                 <artifactId>maven-clean-plugin</artifactId>\n>                 <version>3.0.0</version>\n>                 <configuration>\n>                     <filesets>\n>                         <fileset>\n>                             <directory>src/main/resources/src/typings</directory>\n>                             <includes>\n>                                 <include>**/*</include>\n>                             </includes>\n>                         </fileset>\n>                         <fileset>\n>                             <directory>src/main/resources/META-INF/resources/webjars</directory>\n>                             <includes>\n>                                 <include>**/*</include>\n>                             </includes>\n>                         </fileset>\n>                     </filesets>\n>                 </configuration>\n>             </plugin>\n>         </plugins>\n>         <pluginManagement>\n>             <plugins>\n>                 <!--This plugin's configuration is used to store Eclipse m2e settings                     only. It has no influence on the Maven build itself. -->\n>                 <plugin>\n>                     <groupId>org.eclipse.m2e</groupId>\n>                     <artifactId>lifecycle-mapping</artifactId>\n>                     <version>1.0.0</version>\n>                     <configuration>\n>                         <lifecycleMappingMetadata>\n>                             <pluginExecutions>\n>                                 <pluginExecution>\n>                                     <pluginExecutionFilter>\n>                                         <groupId>org.jsweet</groupId>\n>                                         <artifactId>jsweet-maven-plugin</artifactId>\n>                                         <versionRange>\n>                                             [1.0.0-RC1,)\n>                                         </versionRange>\n>                                         <goals>\n>                                             <goal>jsweet</goal>\n>                                         </goals>\n>                                     </pluginExecutionFilter>\n>                                     <action>\n>                                         <ignore></ignore>\n>                                     </action>\n>                                 </pluginExecution>\n>                             </pluginExecutions>\n>                         </lifecycleMappingMetadata>\n>                     </configuration>\n>                 </plugin>\n>             </plugins>\n>         </pluginManagement>\n>     </build>\n>\n> You also need a src/main/resources/META-INF/candy-metadata.json\n> containing:\n>\n> {\n>     \"transpilerVersion\": \"1.1.1\"\n> }\n>\n> Then just mvn deploy/install.\n>\n> And of course use is as a regular Maven artifact in your client project.\n>\n> Tell me if anything is unclear.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/cincheo/jsweet-examples/issues/14#issuecomment-230116903>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe/AAqUAXXGhOsObCijDVszcsBxB8MZ5C5Dks5qRrU2gaJpZM4H3bVu>\n> .\n>\n\n\n\n-- \n*Eric Ponthiaux *\n*Développeur Senior , Consultant .*\n\n*(+33) 06 14 67 13 11*\n\nponthiaux.eric@gmail.com\n"}}
{"actor":{"display_login":"EPOTH"}}