Skip to content

Commit

Permalink
More Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzlou7979 committed Jul 23, 2018
1 parent f83b727 commit e2531ba
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 4 deletions.
5 changes: 3 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@
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
file or class name and description of purpose be included on the
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.
Expand All @@ -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.

10 changes: 10 additions & 0 deletions src/main/resources/META-INF/maven/archetype-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
</requiredProperty>
</requiredProperties>
<fileSets>
<!-- Root Directory -->
<fileSet filtered="true" packaged="false" encoding="UTF-8">
<directory></directory>
<includes>
<include>package.json</include>
<include>bin/sw-builder.js</include>
<include>bin/sw-template.js</include>
</includes>
</fileSet>

<!-- Java Sources -->
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
Expand Down
23 changes: 23 additions & 0 deletions src/main/resources/archetype-resources/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<version>1.6</version>
<executions>
<execution>
<id>install node and npm</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

<title>${moduleName}</title>

<link rel="manifest" href="manifest.json" />

<script src="${moduleName}/${moduleName}.nocache.js"></script>

<style>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "${moduleName}",
"short_name": "${moduleName}",
"icons": [
{
"src": "launcher-icons/launcher1x.png",
"type": "image/png",
"sizes": "48x48"
},
{
"src": "launcher-icons/launcher2x.png",
"type": "image/png",
"sizes": "96x96"
},
{
"src": "launcher-icons/launcher4x.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "launcher-icons/launcher5x.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": "/",
"display": "fullscreen",
"background_color": "#2196f3",
"theme_color": "#1565c0"
}

0 comments on commit e2531ba

Please sign in to comment.