@ionic/angular 8.6.3-nightly.20250702 → 8.6.4-nightly.20250703

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 CHANGED
@@ -18,40 +18,80 @@ 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 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.
21
+ ## Testing Local Ionic Framework with `ng add`
22
+
23
+ This guide shows you how to test the local Ionic Framework build with a new Angular application using `ng add`. This is useful for development and testing changes before publishing.
24
+
25
+ ### Prerequisites
26
+
27
+ - Node.js and npm installed
28
+ - Angular CLI installed globally (`npm install -g @angular/cli`)
29
+
30
+ ### Build Local Ionic Framework
31
+
32
+ 1. Clone the repository (if not already done):
33
+ ```sh
34
+ git clone https://github.com/ionic-team/ionic-framework.git
35
+ cd ionic-framework
36
+ ```
37
+
38
+ 2. Pull the latest from `main`
39
+ ```sh
40
+ git pull origin main
41
+ ```
42
+
43
+ 3. Install dependencies and build the `core` package:
44
+ ```sh
45
+ cd core
46
+ npm install
47
+ npm run build
48
+ ```
49
+
50
+ 4. Install dependencies, sync the `core` build and build the Angular package:
51
+ ```sh
52
+ cd ../packages/angular
53
+ npm install
54
+ npm run sync
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.
55
95
 
56
96
  ## Project Structure
57
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/angular",
3
- "version": "8.6.3-nightly.20250702",
3
+ "version": "8.6.4-nightly.20250703",
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-nightly.20250702",
53
+ "@ionic/core": "8.6.4-nightly.20250703",
54
54
  "ionicons": "^7.0.0",
55
55
  "jsonc-parser": "^3.0.0",
56
56
  "tslib": "^2.3.0"
@@ -16,10 +16,12 @@ function isAngularBrowserProject(projectConfig) {
16
16
  if (projectConfig.projectType === 'application') {
17
17
  const buildConfig = projectConfig.architect.build;
18
18
  // Angular 16 and lower
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;
19
+ const legacyBrowserBuilder = buildConfig.builder === '@angular-devkit/build-angular:browser';
20
+ // Angular 17
21
+ const legacyApplicationBuilder = buildConfig.builder === '@angular-devkit/build-angular:application';
22
+ // Angular 18+
23
+ const modernApplicationBuilder = buildConfig.builder === '@angular/build:application';
24
+ return legacyBrowserBuilder || legacyApplicationBuilder || modernApplicationBuilder;
23
25
  }
24
26
  return false;
25
27
  }