@ionic/angular 7.5.5-dev.11699980334.140f8b95 → 7.5.5-dev.11700239837.1925bbdb
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/angular",
|
|
3
|
-
"version": "7.5.5-dev.
|
|
3
|
+
"version": "7.5.5-dev.11700239837.1925bbdb",
|
|
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.11700239837.1925bbdb",
|
|
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,22 @@ function addIonicons(projectName, projectSourceRoot) {
|
|
|
105
105
|
return host;
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
+
function addIonicConfig(projectSourceRoot) {
|
|
109
|
+
return (host) => {
|
|
110
|
+
const ionicConfig = 'ionic.config.json';
|
|
111
|
+
if (!host.exists(ionicConfig)) {
|
|
112
|
+
const hasAppModule = host.exists(`${projectSourceRoot}/app/app.module.ts`);
|
|
113
|
+
const type = hasAppModule ? 'angular' : 'angular-standalone';
|
|
114
|
+
host.create(ionicConfig, JSON.stringify({
|
|
115
|
+
name: 'ionic-app',
|
|
116
|
+
app_id: '',
|
|
117
|
+
type,
|
|
118
|
+
integrations: {},
|
|
119
|
+
}, null, 2));
|
|
120
|
+
}
|
|
121
|
+
return host;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
108
124
|
function addIonicBuilder(projectName) {
|
|
109
125
|
return (host) => {
|
|
110
126
|
(0, config_1.addArchitectBuilder)(host, projectName, 'ionic-cordova-serve', {
|
|
@@ -161,6 +177,7 @@ function ngAdd(options) {
|
|
|
161
177
|
addIonicBuilder(options.project),
|
|
162
178
|
addIonicStyles(options.project, sourcePath),
|
|
163
179
|
addIonicons(options.project, sourcePath),
|
|
180
|
+
addIonicConfig(sourcePath),
|
|
164
181
|
(0, schematics_1.mergeWith)(rootTemplateSource),
|
|
165
182
|
// install freshly added dependencies
|
|
166
183
|
installNodeDeps(),
|
|
@@ -78,6 +78,10 @@ function addArchitectBuilder(host, projectName, builderName, builderOpts) {
|
|
|
78
78
|
writeConfig(host, config);
|
|
79
79
|
}
|
|
80
80
|
exports.addArchitectBuilder = addArchitectBuilder;
|
|
81
|
+
/**
|
|
82
|
+
* Updates the angular.json to add an additional schematic collection
|
|
83
|
+
* to the CLI configuration.
|
|
84
|
+
*/
|
|
81
85
|
function addCli(host, collectionName) {
|
|
82
86
|
const angularJson = readConfig(host);
|
|
83
87
|
if (angularJson.cli === undefined) {
|
|
@@ -90,6 +94,7 @@ function addCli(host, collectionName) {
|
|
|
90
94
|
writeConfig(host, angularJson);
|
|
91
95
|
}
|
|
92
96
|
exports.addCli = addCli;
|
|
97
|
+
// TODO can remove [property: string]: any; when upgrading @angular/cli dev-dep to v16 or later
|
|
93
98
|
function addSchematics(host, schematicName, schematicOpts) {
|
|
94
99
|
const angularJson = readConfig(host);
|
|
95
100
|
if (angularJson.schematics === undefined) {
|