diff --git a/LICENSE b/LICENSE index 261eeb9..8f71f43 100644 --- a/LICENSE +++ b/LICENSE @@ -178,7 +178,7 @@ APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" + boilerplate notice, with the fields enclosed by brackets "{}" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright {yyyy} {name of copyright owner} Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -199,3 +199,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + diff --git a/src/main/resources/META-INF/maven/archetype-metadata.xml b/src/main/resources/META-INF/maven/archetype-metadata.xml index c6d2f6d..925759c 100644 --- a/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -44,6 +44,16 @@ + + + + + package.json + bin/sw-builder.js + bin/sw-template.js + + + src/main/java diff --git a/src/main/resources/archetype-resources/package.json b/src/main/resources/archetype-resources/package.json new file mode 100644 index 0000000..f4a1778 --- /dev/null +++ b/src/main/resources/archetype-resources/package.json @@ -0,0 +1,23 @@ +{ + "name": "PwaDemo", + "version": "0.0.1", + "description": "Service worker generator", + "main": "bin/sw-builder.js", + "dependencies": { + "handlebars": "^4.0.11" + }, + "devDependencies": {}, + "scripts": { + "generate": "node bin/sw-builder.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/GwtMaterialDesign/gwt-material.git" + }, + "author": "kevzlou7979", + "license": "Apache 2.0", + "bugs": { + "url": "https://github.com/GwtMaterialDesign/gwt-material/issues" + }, + "homepage": "https://github.com/GwtMaterialDesign/gwt-material#readme" +} diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml index 21d4baf..82289a4 100644 --- a/src/main/resources/archetype-resources/pom.xml +++ b/src/main/resources/archetype-resources/pom.xml @@ -129,7 +129,7 @@ com.github.eirslett frontend-maven-plugin - ${frontend-maven-plugin.version} + 1.6 install node and npm diff --git a/src/main/resources/archetype-resources/src/main/java/client/application/AppServiceWorker.java b/src/main/resources/archetype-resources/src/main/java/client/application/AppServiceWorker.java index 373bd2a..d6bfb25 100644 --- a/src/main/resources/archetype-resources/src/main/java/client/application/AppServiceWorker.java +++ b/src/main/resources/archetype-resources/src/main/java/client/application/AppServiceWorker.java @@ -17,7 +17,7 @@ * limitations under the License. * #L% */ -package test.client.application; +package ${package}.client.application; import gwt.material.design.client.pwa.serviceworker.ServiceEvent; import gwt.material.design.client.pwa.serviceworker.ServiceWorkerManager; diff --git a/src/main/resources/archetype-resources/src/main/webapp/index.html b/src/main/resources/archetype-resources/src/main/webapp/index.html index 5f6cf8b..268f8e8 100644 --- a/src/main/resources/archetype-resources/src/main/webapp/index.html +++ b/src/main/resources/archetype-resources/src/main/webapp/index.html @@ -7,6 +7,8 @@ ${moduleName} + +