@ionic/angular 7.5.5-dev.11699980334.140f8b95 → 7.5.5-dev.11699997410.16566960
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/schematics/add/index.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/angular",
|
|
3
|
-
"version": "7.5.5-dev.
|
|
3
|
+
"version": "7.5.5-dev.11699997410.16566960",
|
|
4
4
|
"description": "Angular specific wrappers for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@ionic/core": "7.5.5-dev.
|
|
59
|
+
"@ionic/core": "7.5.5-dev.11699997410.16566960",
|
|
60
60
|
"ionicons": "^7.0.0",
|
|
61
61
|
"jsonc-parser": "^3.0.0",
|
|
62
62
|
"tslib": "^2.3.0"
|
package/schematics/add/index.js
CHANGED
|
@@ -105,6 +105,20 @@ function addIonicons(projectName, projectSourceRoot) {
|
|
|
105
105
|
return host;
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
+
function addIonicConfig() {
|
|
109
|
+
return (host) => {
|
|
110
|
+
const ionicConfig = `ionic.config.json`;
|
|
111
|
+
if (!host.exists(ionicConfig)) {
|
|
112
|
+
host.create(ionicConfig, JSON.stringify({
|
|
113
|
+
name: 'ionic-app',
|
|
114
|
+
app_id: '',
|
|
115
|
+
type: 'angular',
|
|
116
|
+
integrations: {},
|
|
117
|
+
}, null, 2));
|
|
118
|
+
}
|
|
119
|
+
return host;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
108
122
|
function addIonicBuilder(projectName) {
|
|
109
123
|
return (host) => {
|
|
110
124
|
(0, config_1.addArchitectBuilder)(host, projectName, 'ionic-cordova-serve', {
|
|
@@ -161,6 +175,7 @@ function ngAdd(options) {
|
|
|
161
175
|
addIonicBuilder(options.project),
|
|
162
176
|
addIonicStyles(options.project, sourcePath),
|
|
163
177
|
addIonicons(options.project, sourcePath),
|
|
178
|
+
addIonicConfig(),
|
|
164
179
|
(0, schematics_1.mergeWith)(rootTemplateSource),
|
|
165
180
|
// install freshly added dependencies
|
|
166
181
|
installNodeDeps(),
|