Skip to content

Commit fb9cd4d

Browse files
committed
Track workspace not as a git repo
1 parent 08a3700 commit fb9cd4d

File tree

9 files changed

+146
-1
lines changed

9 files changed

+146
-1
lines changed

scripts/build/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { crawl } from '../tools/crawl';
1515

1616
// tsc + angular JIT
1717
{
18-
const angularWorkspaceDirPath = pathJoin(distDirPath, 'wp');
18+
const angularWorkspaceDirPath = pathJoin(distDirPath, 'workspace');
1919

2020
if (fs.existsSync(angularWorkspaceDirPath)) {
2121
fs.rmSync(angularWorkspaceDirPath, { recursive: true, force: true });
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"keycloakify-angular": {
7+
"projectType": "library",
8+
"root": "projects/keycloakify-angular",
9+
"sourceRoot": "projects/keycloakify-angular",
10+
"prefix": "kc",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-angular:ng-packagr",
14+
"options": {
15+
"project": "projects/keycloakify-angular/ng-package.json"
16+
},
17+
"configurations": {
18+
"production": {
19+
"tsConfig": "projects/keycloakify-angular/tsconfig.lib.prod.json"
20+
},
21+
"development": {
22+
"tsConfig": "projects/keycloakify-angular/tsconfig.lib.json"
23+
}
24+
},
25+
"defaultConfiguration": "production"
26+
}
27+
}
28+
}
29+
},
30+
"cli": {
31+
"analytics": "5582c240-d3aa-476d-8ab8-bfa63b3b6c8b"
32+
}
33+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "keycloakify-angular-workspace",
3+
"version": "0.0.0",
4+
"type": "module",
5+
"private": true,
6+
"devDependencies": {
7+
"keycloakify": "^11.2.2",
8+
"prettier": "^3.2.5",
9+
"typescript": "~5.4.0",
10+
"husky": "^4.3.8",
11+
"lint-staged": "^11.0.0",
12+
"tsc-alias": "^1.8.10",
13+
"tsx": "^4.15.5",
14+
"@angular/core": "^18.2.6",
15+
"@angular/common": "^18.2.6",
16+
"@angular/platform-browser": "^18.2.6",
17+
"@types/node": "^22.7.4",
18+
"rxjs": "^7.8.1",
19+
"zone.js": "^0.14.0",
20+
"chalk": "^5.3.0",
21+
"@angular-devkit/build-angular": "^18.2.6",
22+
"@angular/cli": "^18.2.6",
23+
"@angular/compiler-cli": "^18.2.6",
24+
"@angular/compiler": "^18.2.6",
25+
"ng-packagr": "^18.2.1",
26+
"tslib": "^2.7.0"
27+
}
28+
}
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/keycloakify-angular",
4+
"lib": {
5+
"entryFile": "src/public-api.ts"
6+
}
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "keycloakify-angular",
3+
"version": "0.0.1",
4+
"type": "module",
5+
"sideEffects": false
6+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3+
{
4+
"extends": "../../tsconfig.json",
5+
"compilerOptions": {
6+
"outDir": "../../out-tsc/lib",
7+
"declaration": true,
8+
"declarationMap": true,
9+
"inlineSources": true,
10+
"types": []
11+
},
12+
"exclude": ["**/*.spec.ts"]
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3+
{
4+
"extends": "./tsconfig.lib.json",
5+
"compilerOptions": {
6+
"declarationMap": false
7+
},
8+
"angularCompilerOptions": {
9+
"compilationMode": "partial"
10+
}
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3+
{
4+
"extends": "../../tsconfig.json",
5+
"compilerOptions": {
6+
"outDir": "../../out-tsc/spec",
7+
"types": ["jasmine"]
8+
},
9+
"include": ["**/*.spec.ts", "**/*.d.ts"]
10+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2+
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3+
{
4+
"compileOnSave": false,
5+
"compilerOptions": {
6+
"outDir": "./dist/out-tsc",
7+
"skipLibCheck": true,
8+
"isolatedModules": true,
9+
"baseUrl": ".",
10+
"paths": {
11+
"@keycloakify/angular/*": ["./projects/keycloakify-angular/src/*"]
12+
},
13+
"esModuleInterop": true,
14+
"sourceMap": true,
15+
"declaration": false,
16+
"experimentalDecorators": true,
17+
"moduleResolution": "bundler",
18+
"importHelpers": true,
19+
"target": "ES2022",
20+
"module": "ES2022",
21+
"lib": ["ES2022", "dom"],
22+
/* Linting */
23+
"strict": true,
24+
"forceConsistentCasingInFileNames": true,
25+
"useDefineForClassFields": false,
26+
"noImplicitOverride": true,
27+
"noPropertyAccessFromIndexSignature": true,
28+
"noImplicitReturns": true,
29+
"noFallthroughCasesInSwitch": true
30+
},
31+
"angularCompilerOptions": {
32+
"enableI18nLegacyMessageIdFormat": false,
33+
"strictInjectionParameters": true,
34+
"strictInputAccessModifiers": true,
35+
"strictTemplates": true
36+
}
37+
}

0 commit comments

Comments
 (0)