Skip to content

Commit 63bf92c

Browse files
Angelo ManganielloAngelo Manganiello
authored andcommitted
add cordova initial project
1 parent 3277ad7 commit 63bf92c

File tree

9 files changed

+88
-5
lines changed

9 files changed

+88
-5
lines changed

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,13 @@ electron-client/node_modules
4141
electron-client/distribution
4242
electron-client/dist
4343

44-
45-
44+
# Cordova
45+
cordova-app/node_modules
46+
cordova-app/package-lock.json
47+
cordova/**/www/*
48+
!cordova/**/www/.gitkeep
49+
cordova/**/build
50+
cordova/platforms/*
51+
!cordova/platforms/*.json
52+
cordova/plugins/*
53+
!cordova/plugins/*.json

cordova-app/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cordova cli 8.0.0
2+
3+
I have run:
4+
- cordova create app com.amanganiello30.angular angularDashFullStack
5+
- cordova platform add android --> 7.0.0

cordova-app/app/config.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.amanganiello30.angular" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>angularDashFullStack</name>
4+
<description>
5+
A full stack angular app.
6+
</description>
7+
<author email="[email protected]" href="https://github.com/amanganiello90/java-angular-web-app">
8+
Apache Cordova Team
9+
</author>
10+
<content src="index.html" />
11+
<plugin name="cordova-plugin-whitelist" spec="1" />
12+
<access origin="*" />
13+
<allow-intent href="http://*/*" />
14+
<allow-intent href="https://*/*" />
15+
<allow-intent href="tel:*" />
16+
<allow-intent href="sms:*" />
17+
<allow-intent href="mailto:*" />
18+
<allow-intent href="geo:*" />
19+
<platform name="android">
20+
<allow-intent href="market:*" />
21+
</platform>
22+
<platform name="ios">
23+
<allow-intent href="itms:*" />
24+
<allow-intent href="itms-apps:*" />
25+
</platform>
26+
</widget>

cordova-app/app/hooks/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
-->
21+
# Cordova Hooks
22+
23+
Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide.

cordova-app/app/www/.gitkeep

Whitespace-only changes.

cordova-app/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "cordova-app",
3+
"description": "Full cordova app with backend",
4+
"version": "1.0.0",
5+
"main": "main.js",
6+
"author": {
7+
"name": "Angelo Manganiello",
8+
"email": "[email protected]"
9+
},
10+
"license": "Apache-2.0",
11+
"scripts": {
12+
"preconfig": "cpx \"../frontend-app/dist/**/*.*\" dist -C -p && cd dist && cd .. ",
13+
"start": "npm run preconfig && electron .",
14+
"package": "npm run preconfig && build"
15+
},
16+
"devDependencies": {
17+
"cpx": "1.5.0"
18+
},
19+
"dependencies": {
20+
}
21+
}

electron-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "Angelo Manganiello",
88
"email": "[email protected]"
99
},
10-
"license": "GPL-3.0",
10+
"license": "Apache-2.0",
1111
"scripts": {
1212
"preconfig": "cpx \"../frontend-app/dist/**/*.*\" dist -C -p && cd dist && cd .. ",
1313
"start": "npm run preconfig && electron .",

electron-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "Angelo Manganiello",
88
"email": "[email protected]"
99
},
10-
"license": "GPL-3.0",
10+
"license": "Apache-2.0",
1111
"scripts": {
1212
"preconfig": "cpx \"../frontend-app/dist/**/*.*\" dist -C -p && cd dist && cd .. ",
1313
"start": "npm run preconfig && electron .",

electron-jar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "Angelo Manganiello",
88
"email": "[email protected]"
99
},
10-
"license": "GPL-3.0",
10+
"license": "Apache-2.0",
1111
"scripts": {
1212
"delete": "del \"app.jar\"",
1313
"copy": "cpx \"../target/app.jar\" . ",

0 commit comments

Comments
 (0)