Commit Graph

98 Commits

Author SHA1 Message Date
ionitron
150ea1a8ad v7.6.1 2023-12-13 14:27:51 +00:00
ionitron
90ce7f00fa v7.6.0 2023-12-06 15:33:45 +00:00
ionitron
507d5ee1da v7.5.8 2023-12-06 15:04:23 +00:00
ionitron
3a35fdd2f5 v7.5.7 2023-11-29 15:05:12 +00:00
ionitron
f6a740dce5 v7.5.6 2023-11-21 14:31:40 +00:00
Sean Perkins
c07312e5ed fix(angular): ng add @ionic/angular in standalone projects (#28523)
Issue number: Resolves #28514

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

When using the `@ionic/angular` schematic in an Angular 17 project (`ng
add @ionic/angular`), developers will receive an error preventing the
schematic from running.

Additionally, the previous implementations of the schematic are out of
sync with the current state of the Ionic starters:
- `variables.css` is empty and missing Ionic's defaults
- `ionic.config.json` is not created
- Schematic does not have support for module vs. standalone projects.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- `ng add @ionic/angular` works with Angular 17 projects
- `ng add @ionic/angular` has fallback behavior for Angular 16 projects
using `AppModule`
- Schematics now includes the proper `variables.css` from Ionic starters
- Ionicons assets will no longer be copied when being added to a
standalone project
- Refactors a majority of the implementation to use the utilities that
come directly from `@angular-devkit/schematics` and
`@schematics/angular`.
- Sets the `@ionic/angular-toolkit` CLI configuration and schematics
configuration in the `angular.json`
- Creates missing `ionic.config.json`

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Dev-build: `7.5.5-dev.11700239837.1925bbdb`

To test this PR:

1. Install Angular CLI v17 - `npm install -g @angular/cli@17`
2. Create a new project - `ng new angular-17`
3. Use the dev-build: - `ng add
@ionic/angular@7.5.5-dev.11700239837.1925bbdb`
4. Confirm the prompts
5. Validate that `provideIonicAngular({})` is added to the
`app.config.ts`
6. Validate that `ionic.config.json` was created
7. Validate that `angular.json` was updated with the
`@ionic/angular-devkit` configurations

Now verify legacy behavior:

1. Install Angular CLI v16 - `npm install -g @angular/cli@16`
2. Create a new project - `ng new angular-16`
3. Use the dev-build - `ng add
@ionic/angular@7.5.5-dev.11700239837.1925bbdb`
4. Confirm the prompts
5. Validate that `IonicModule.forRoot({})` is added to the
`app.module.ts`
8. Validate the ionicons glob pattern is added to the `angular.json`
9. Validate the `ionic.config.json` was created
10. Validate the `angular.json` was updated with the
`@ionic/angular-devkit` configurations
2023-11-20 22:20:20 +00:00
ionitron
78ce39f8c6 v7.5.5 2023-11-15 15:27:28 +00:00
Liam DeBeasi
aeeb84b77d refactor: introduce watch command (#28453)
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

This is part of my work for hack day, but I wanted to tackle the
following problems:

1. There is no easy way to have angular, angular-server, vue,
vue-router, react, and react-router automatically recompile when you
make a change. Right now you have to manually run `npm run build` every
time you make a change.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Adds `npm run build.watch` to let developers easily watch for changes
in each project.
## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
2023-11-09 16:50:19 +00:00
ionitron
5bd4af2c51 v7.5.4 2023-11-08 14:48:46 +00:00
ionitron
d70c89c0e2 v7.5.3 2023-11-01 13:40:40 +00:00
ionitron
7722ba05eb v7.5.2 2023-10-25 14:12:43 +00:00
ionitron
38f2a027f0 v7.5.1 2023-10-18 13:26:44 +00:00
ionitron
053b7d59d3 v7.5.0 2023-10-11 14:21:18 +00:00
ionitron
cb47273f26 v7.4.4 2023-10-11 13:29:27 +00:00
ionitron
a8517f4fcf v7.4.3 2023-10-04 13:26:30 +00:00
ionitron
45bcd4c22b v7.4.2 2023-09-27 13:32:27 +00:00
ionitron
d82414d43f v7.4.1 2023-09-20 13:20:51 +00:00
ionitron
c28b66a99a v7.4.0 2023-09-14 13:06:52 +00:00
ionitron
f9a984e4aa v7.3.4 2023-09-13 13:12:09 +00:00
ionitron
3de1dd3c14 v7.3.3 2023-09-06 13:23:50 +00:00
ionitron
f9211e5434 v7.3.2 2023-08-30 12:47:53 +00:00
ionitron
5701f7661e v7.3.1 2023-08-23 13:40:10 +00:00
ionitron
16f7ec2284 v7.3.0 2023-08-16 14:23:33 +00:00
ionitron
ffe5307905 v7.2.4 2023-08-16 13:26:09 +00:00
ionitron
0cb37430d3 v7.2.3 2023-08-09 16:27:57 +00:00
ionitron
dbe6f390ef v7.2.2 2023-08-02 15:59:37 +00:00
ionitron
db29871654 v7.2.1 2023-07-26 15:54:29 +00:00
ionitron
8661e21674 v7.2.0 2023-07-19 16:29:12 +00:00
ionitron
7e174849b5 v7.1.4 2023-07-19 13:08:11 +00:00
ionitron
0c9392abd6 v7.1.3 2023-07-12 12:54:40 +00:00
ionitron
20331458de v7.1.2 2023-07-06 16:40:00 +00:00
Liam DeBeasi
32bc33ed28 refactor(angular): move to packages directory (#27719)
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

The `angular` directory sits at the root of the project instead of in
`packages` with all the other JS Framework integrations. This does not
cause any functional issues with Ionic, but it is confusing since
integrations are not in a consistent place.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Moves the `angular` directory to `packages/angular`

Note: Most files should remain unchanged. The only files I changed are
the files that had direct paths to the old `angular` directory:

1. Removes the `angular` path in `lerna.json`. This is now covered by
`packages/*`
2. Updated the angular file path in `.gitignore`
3. Updates the path to the angular package in `stencil.config.ts` for
the Angular Output Targets
4. Updates some of Angular's sync scripts to correctly get the core
stylesheets as well as the core package.
5. Updates the test app sync script to correctly sync core and
angular-server

~I'm not entirely sure why GitHub thinks
https://github.com/ionic-team/ionic-framework/pull/27719/files#diff-f5bba7e7c7c75426e2b9c89868310cb03890493b4efe0252adf8d12cc8398962
is a new file since it exists in `main` here:
1f06be4a31/angular/test/base/scripts/build-ionic.sh~
Fixed in
6e7fc49827

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Dev build: `7.1.2-dev.11688052109.13454f5c`
2023-07-05 17:52:35 +00:00
Brandy Carney
d37623a2ca chore(packages): move the packages to root 2018-03-12 16:02:25 -04:00
Adam Bradley
851aa838fa refactor(router): init ng router refactor 2018-03-06 19:57:45 -06:00
Manu Mtz.-Almeida
056ec4b666 @ionic/angular 0.0.2-29 2018-03-05 14:45:02 +01:00
Manu Mtz.-Almeida
dcbaf5e7ec Angular needs <2.7? 2018-03-05 14:45:01 +01:00
Adam Bradley
b4590f4849 chore(build): create npm run build.link 2018-03-04 06:10:15 -06:00
Adam Bradley
239b0aa1bb chore(build): update build scripts 2018-03-03 16:16:10 -06:00
Manu Mtz.-Almeida
06abbf069f chore(): update to latest ionic/core 2018-03-03 16:35:41 +01:00
Adam Bradley
4e0ffbb82c chore(build): add changelog 2018-03-03 00:06:19 -06:00
Adam Bradley
8d704947b9 chore(build): update build scripts 2018-03-03 00:03:27 -06:00
Adam Bradley
afd89e77e4 chore(build): update build scripts 2018-03-02 23:57:52 -06:00
Adam Bradley
9c93df48d8 style(lint): fix lint errors 2018-03-01 16:21:06 -06:00
Brandy Carney
217c51e4c5 0.0.2-28 2018-03-01 13:23:16 -05:00
Brandy Carney
a8e42e32cb chore(angular): run build first 2018-03-01 13:20:06 -05:00
Brandy Carney
b94ba2ae02 0.0.2-27 2018-03-01 13:19:38 -05:00
Brandy Carney
db9b5ccb90 chore(np): add np 2018-03-01 13:13:05 -05:00
Adam Bradley
95abd46ada chore(build): update tsconfig build and package 2018-02-28 14:45:21 -06:00
Dan Bucholtz
16c14d4bca chore(dependencies): latest 2018-02-21 16:03:20 -06:00
Dan Bucholtz
f2fc3b2043 chore(dependencies): latest 2018-02-21 16:01:47 -06:00