Skip to content

Commit 3f3dd00

Browse files
committed
feat: extract package ngx-view-transition from @angularity/cdk
1 parent 136f51e commit 3f3dd00

12 files changed

Lines changed: 104 additions & 2 deletions

package-lock.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@angular/common": ">=19",
88
"@angular/core": ">=19",
99
"@angularity/core": "*",
10+
"ngx-view-transition": "*",
1011
"rxjs": ">=7"
1112
},
1213
"dependencies": {

packages/cdk/src/public-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './host-transition';
1+
export * from 'ngx-view-transition';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3+
"dest": "../../dist/ngx-view-transition",
4+
"lib": {
5+
"entryFile": "src/public-api.ts"
6+
}
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "ngx-view-transition",
3+
"version": "19.0.1",
4+
"peerDependencies": {
5+
"@angular/core": ">=19",
6+
"@angular/common": ">=19"
7+
},
8+
"dependencies": {
9+
"tslib": "2.x.x"
10+
},
11+
"sideEffects": false
12+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3+
"name": "ngx-view-transition",
4+
"projectType": "library",
5+
"sourceRoot": "packages/ngx-view-transition/src",
6+
"prefix": "ngx",
7+
"targets": {
8+
"build": {
9+
"executor": "@angular-devkit/build-angular:ng-packagr",
10+
"options": {
11+
"project": "packages/ngx-view-transition/ng-package.json"
12+
},
13+
"configurations": {
14+
"production": {
15+
"tsConfig": "packages/ngx-view-transition/tsconfig.lib.prod.json"
16+
},
17+
"development": {
18+
"tsConfig": "packages/ngx-view-transition/tsconfig.lib.json"
19+
}
20+
},
21+
"defaultConfiguration": "production"
22+
},
23+
"test": {
24+
"executor": "@angular-devkit/build-angular:karma",
25+
"options": {
26+
"tsConfig": "packages/ngx-view-transition/tsconfig.spec.json",
27+
"polyfills": ["zone.js", "zone.js/testing"]
28+
}
29+
},
30+
"nx-release-publish": {
31+
"dependsOn": ["build", "^nx-release-publish"]
32+
}
33+
}
34+
}

packages/cdk/src/host-transition.ts renamed to packages/ngx-view-transition/src/host-transition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { computed, Directive, ElementRef, inject, input } from '@angular/core';
1616
export type TransitionInput = string | boolean;
1717

1818
/**
19-
* Directive for specifying (potentially anonymous)
19+
* Directive for assigning (potentially anonymous)
2020
* View Transition names for elements.
2121
*
2222
* - When a non-empty string is provided as input, it will be used
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './host-transition';
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
2+
{
3+
"extends": "../../tsconfig.json",
4+
"compilerOptions": {
5+
"outDir": "../../out-tsc/lib",
6+
"declaration": true,
7+
"declarationMap": true,
8+
"inlineSources": true,
9+
"types": []
10+
},
11+
"exclude": ["**/*.spec.ts"]
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
2+
{
3+
"extends": "./tsconfig.lib.json",
4+
"compilerOptions": {
5+
"declarationMap": false
6+
},
7+
"angularCompilerOptions": {
8+
"compilationMode": "partial"
9+
}
10+
}

0 commit comments

Comments
 (0)