@ionic/angular 8.6.3-dev.11751478001.1cb7436f → 8.6.3-nightly.20250620
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/README.md +34 -74
- package/package.json +2 -2
- package/schematics/utils/config.js +4 -6
package/README.md
CHANGED
|
@@ -18,80 +18,40 @@ Ionic Angular specific building blocks on top of [@ionic/core](https://www.npmjs
|
|
|
18
18
|
|
|
19
19
|
* [MIT](https://raw.githubusercontent.com/ionic-team/ionic/main/LICENSE)
|
|
20
20
|
|
|
21
|
-
## Testing
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
npm run build
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
5. Create a tarball:
|
|
59
|
-
```sh
|
|
60
|
-
cd dist
|
|
61
|
-
npm pack
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
6. Copy the tarball to Downloads:
|
|
65
|
-
```sh
|
|
66
|
-
cp ionic-angular-*.tgz ~/Downloads/ionic-angular.tgz
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Test with New Angular App
|
|
70
|
-
|
|
71
|
-
7. Create a new Angular app:
|
|
72
|
-
```sh
|
|
73
|
-
# Change to whichever directory you want the app in
|
|
74
|
-
cd ~/Documents/
|
|
75
|
-
ng new my-app --style=css --ssr=false --zoneless=false
|
|
76
|
-
cd my-app
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
8. Install the local `@ionic/angular` package:
|
|
80
|
-
```sh
|
|
81
|
-
npm install ~/Downloads/ionic-angular.tgz
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
9. Run `ng add`:
|
|
85
|
-
```sh
|
|
86
|
-
ng add @ionic/angular --skip-confirmation
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
10. Serve the app:
|
|
90
|
-
```sh
|
|
91
|
-
ng serve
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
The local Ionic Framework build is now active in the Angular app. Changes to the Ionic source code require rebuilding the packages and reinstalling the tarball to see updates.
|
|
21
|
+
## Testing ng-add in ionic
|
|
22
|
+
|
|
23
|
+
1. Pull the latest from `main`
|
|
24
|
+
2. Build ionic/angular: `npm run build`
|
|
25
|
+
3. Run `npm link` from `ionic/angular/dist` directory
|
|
26
|
+
4. Create a blank angular project
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
ng new add-test
|
|
30
|
+
// Say yes to including the router, we need it
|
|
31
|
+
cd add-test
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
5. To run schematics locally, we need the schematics-cli (once published, this will not be needed)
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
npm install @angular-devkit/schematics-cli
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
6. Link `@ionic/angular`
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
npm link @ionic/angular
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
7. Run the local copy of the ng-add schematic
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
$ npx schematics @ionic/angular:ng-add
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
You'll now be able to add ionic components to a vanilla Angular app setup.
|
|
95
55
|
|
|
96
56
|
## Project Structure
|
|
97
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/angular",
|
|
3
|
-
"version": "8.6.3-
|
|
3
|
+
"version": "8.6.3-nightly.20250620",
|
|
4
4
|
"description": "Angular specific wrappers for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@ionic/core": "8.6.3-
|
|
53
|
+
"@ionic/core": "8.6.3-nightly.20250620",
|
|
54
54
|
"ionicons": "^7.0.0",
|
|
55
55
|
"jsonc-parser": "^3.0.0",
|
|
56
56
|
"tslib": "^2.3.0"
|
|
@@ -16,12 +16,10 @@ function isAngularBrowserProject(projectConfig) {
|
|
|
16
16
|
if (projectConfig.projectType === 'application') {
|
|
17
17
|
const buildConfig = projectConfig.architect.build;
|
|
18
18
|
// Angular 16 and lower
|
|
19
|
-
const
|
|
20
|
-
// Angular 17
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const modernApplicationBuilder = buildConfig.builder === '@angular/build:application';
|
|
24
|
-
return legacyBrowserBuilder || legacyApplicationBuilder || modernApplicationBuilder;
|
|
19
|
+
const legacyAngularBuilder = buildConfig.builder === '@angular-devkit/build-angular:browser';
|
|
20
|
+
// Angular 17+
|
|
21
|
+
const modernAngularBuilder = buildConfig.builder === '@angular-devkit/build-angular:application';
|
|
22
|
+
return legacyAngularBuilder || modernAngularBuilder;
|
|
25
23
|
}
|
|
26
24
|
return false;
|
|
27
25
|
}
|