Skip to content

Commit 304a93d

Browse files
wip(angular): move angular workspace into a subfolder called "workspace" (#24)
1 parent 7ad22c1 commit 304a93d

24 files changed

+103
-59
lines changed

libraries/angular/moon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ workspace:
77

88
tasks:
99
build:
10-
command: 'ng build @chatkitty/angular'
10+
command: 'cd workspace && ng build @chatkitty/angular'
1111
inputs:
1212
- '@group(app)'
1313
- '@group(sources)'

libraries/angular/package.json

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,30 @@
11
{
2-
"name": "angular",
3-
"version": "0.0.0",
2+
"name": "@chatkitty/angular",
3+
"version": "0.0.1",
44
"scripts": {
5-
"ng": "ng",
6-
"start": "ng serve",
7-
"build": "ng build",
8-
"watch": "ng build --watch --configuration development",
9-
"test": "ng test"
5+
"start": "cd workspace && ng serve",
6+
"build": "cd workspace && ng build",
7+
"watch": "cd workspace && ng build --watch --configuration development",
8+
"test": "cd workspace && ng test"
109
},
11-
"private": true,
12-
"dependencies": {
10+
"peerDependencies": {
1311
"@angular/common": "^19.2.0",
14-
"@angular/compiler": "^19.2.0",
15-
"@angular/core": "^19.2.0",
16-
"@angular/forms": "^19.2.0",
17-
"@angular/platform-browser": "^19.2.0",
18-
"@angular/platform-browser-dynamic": "^19.2.0",
19-
"@angular/router": "^19.2.0",
20-
"rxjs": "~7.8.0",
12+
"@angular/core": "^19.2.0"
13+
},
14+
"dependencies": {
2115
"tslib": "^2.3.0",
22-
"zone.js": "~0.15.0",
2316
"chatkitty": "workspace:*"
2417
},
25-
"devDependencies": {
26-
"@angular-devkit/build-angular": "^19.2.4",
27-
"@angular/cli": "^19.2.4",
28-
"@angular/compiler-cli": "^19.2.0",
29-
"@types/jasmine": "~5.1.0",
30-
"jasmine-core": "~5.6.0",
31-
"karma": "~6.4.0",
32-
"karma-chrome-launcher": "~3.2.0",
33-
"karma-coverage": "~2.2.0",
34-
"karma-jasmine": "~5.1.0",
35-
"karma-jasmine-html-reporter": "~2.1.0",
36-
"ng-packagr": "^19.2.0",
37-
"typescript": "~5.7.2"
18+
"sideEffects": false,
19+
"module": "./dist/fesm2022/chatkitty-angular.mjs",
20+
"typings": "./dist/index.d.ts",
21+
"exports": {
22+
"./package.json": {
23+
"default": "./dist/package.json"
24+
},
25+
".": {
26+
"types": "./dist/index.d.ts",
27+
"default": "./dist/fesm2022/chatkitty-angular.mjs"
28+
}
3829
}
3930
}

libraries/angular/tsconfig.json

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
{
2-
"compileOnSave": false,
2+
"extends": "../../tsconfig.options.json",
3+
"include": [
4+
"**/*"
5+
],
6+
"references": [
7+
{
8+
"path": "../core"
9+
}
10+
],
311
"compilerOptions": {
4-
"paths": {
5-
"chat-ui": [
6-
"./dist/chat-ui"
7-
]
8-
},
9-
"outDir": "../../.moon/cache/types/libraries/angular",
10-
"strict": true,
11-
"noImplicitOverride": true,
12-
"noPropertyAccessFromIndexSignature": true,
13-
"noImplicitReturns": true,
14-
"noFallthroughCasesInSwitch": true,
15-
"skipLibCheck": true,
16-
"isolatedModules": true,
17-
"esModuleInterop": true,
18-
"experimentalDecorators": true,
19-
"moduleResolution": "bundler",
20-
"importHelpers": true,
21-
"target": "ES2022",
22-
"module": "ES2022"
23-
},
24-
"angularCompilerOptions": {
25-
"enableI18nLegacyMessageIdFormat": false,
26-
"strictInjectionParameters": true,
27-
"strictInputAccessModifiers": true,
28-
"strictTemplates": true
12+
"outDir": "../../.moon/cache/types/libraries/angular"
2913
}
3014
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)