Skip to content

Commit 0b2d761

Browse files
committed
feat(cva): setup infra
1 parent e40d40f commit 0b2d761

9 files changed

Lines changed: 107 additions & 0 deletions

File tree

projects/angularity/cva/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Cva
2+
3+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.0.
4+
5+
## Code scaffolding
6+
7+
Run `ng generate component component-name --project cva` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project cva`.
8+
9+
> Note: Don't forget to add `--project cva` or else it will be added to the default project in your `angular.json` file.
10+
11+
## Build
12+
13+
Run `ng build cva` to build the project. The build artifacts will be stored in the `dist/` directory.
14+
15+
## Publishing
16+
17+
After building your library with `ng build cva`, go to the dist folder `cd dist/cva` and run `npm publish`.
18+
19+
## Running unit tests
20+
21+
Run `ng test cva` to execute the unit tests via [Karma](https://karma-runner.github.io).
22+
23+
## Further help
24+
25+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
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/angularity/cva",
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": "@angularity/cva",
3+
"version": "0.1.0-2",
4+
"peerDependencies": {
5+
"@angular/common": "^17.2.0",
6+
"@angular/core": "^17.2.0"
7+
},
8+
"dependencies": {
9+
"tslib": "^2.3.0"
10+
},
11+
"sideEffects": false
12+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "@angularity/cva",
3+
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
4+
"projectType": "library",
5+
"sourceRoot": "projects/angularity/cva/src",
6+
"prefix": "lib",
7+
"targets": {
8+
"build": {
9+
"executor": "@angular-devkit/build-angular:ng-packagr",
10+
"options": {
11+
"project": "projects/angularity/cva/ng-package.json"
12+
},
13+
"configurations": {
14+
"production": {
15+
"tsConfig": "projects/angularity/cva/tsconfig.lib.prod.json"
16+
},
17+
"development": {
18+
"tsConfig": "projects/angularity/cva/tsconfig.lib.json"
19+
}
20+
},
21+
"defaultConfiguration": "production"
22+
},
23+
"test": {
24+
"executor": "@angular-devkit/build-angular:karma",
25+
"options": {
26+
"tsConfig": "projects/angularity/cva/tsconfig.spec.json",
27+
"polyfills": ["zone.js", "zone.js/testing"]
28+
}
29+
}
30+
}
31+
}

projects/angularity/cva/src/public-api.ts

Whitespace-only changes.
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
2+
{
3+
"extends": "../../../tsconfig.json",
4+
"compilerOptions": {
5+
"outDir": "../../../out-tsc/spec",
6+
"types": ["jasmine"]
7+
},
8+
"include": ["**/*.spec.ts", "**/*.d.ts"]
9+
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@angularity/cdk": ["./dist/angularity/cdk"],
2323
"@angularity/config-files": ["./dist/angularity/config-files"],
2424
"@angularity/core": ["./dist/angularity/core"],
25+
"@angularity/cva": ["./dist/angularity/cva"],
2526
"@angularity/endpoints": ["./dist/angularity/endpoints"],
2627
"@angularity/fire": ["./dist/angularity/fire"],
2728
"@angularity/theming": ["./dist/angularity/theming"],

0 commit comments

Comments
 (0)