Skip to content

Commit 31e5871

Browse files
committed
Added @kephas/ngx-core (former @kephas/angular) to build with Angular 12
1 parent c0f186b commit 31e5871

29 files changed

+1866
-44
lines changed

src/angular.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,37 @@
157157
}
158158
}
159159
}
160+
},
161+
"@kephas/ngx-core": {
162+
"projectType": "library",
163+
"root": "projects/kephas/ngx-core",
164+
"sourceRoot": "projects/kephas/ngx-core/src",
165+
"prefix": "lib",
166+
"architect": {
167+
"build": {
168+
"builder": "@angular-devkit/build-angular:ng-packagr",
169+
"options": {
170+
"project": "projects/kephas/ngx-core/ng-package.json"
171+
},
172+
"configurations": {
173+
"production": {
174+
"tsConfig": "projects/kephas/ngx-core/tsconfig.lib.prod.json"
175+
},
176+
"development": {
177+
"tsConfig": "projects/kephas/ngx-core/tsconfig.lib.json"
178+
}
179+
},
180+
"defaultConfiguration": "production"
181+
},
182+
"test": {
183+
"builder": "@angular-devkit/build-angular:karma",
184+
"options": {
185+
"main": "projects/kephas/ngx-core/src/test.ts",
186+
"tsConfig": "projects/kephas/ngx-core/tsconfig.spec.json",
187+
"karmaConfig": "projects/kephas/ngx-core/karma.conf.js"
188+
}
189+
}
190+
}
160191
}
161192
},
162193
"defaultProject": "@kephas/core"

src/package-lock.json

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

src/package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@
1212
"pack-messaging": "ng build --project=@kephas/messaging",
1313
"pack-commands": "ng build --project=@kephas/commands",
1414
"pack-ui": "ng build --project=@kephas/ui",
15-
"pack-all": "ng build --project=@kephas/core && ng build --project=@kephas/reflection && ng build --project=@kephas/messaging && ng build --project=@kephas/commands && ng build --project=@kephas/ui"
15+
"pack-ngx-core": "ng build --project=@kephas/ngx-core",
16+
"pack-all-fwk": "ng build --project=@kephas/core && ng build --project=@kephas/reflection && ng build --project=@kephas/messaging && ng build --project=@kephas/commands && ng build --project=@kephas/ui",
17+
"pack-all-ngx": "ng build --project=@kephas/ngx-core"
1618
},
1719
"private": true,
1820
"dependencies": {
19-
"tslib": "^2.0.0"
21+
"tslib": "^2.3.0"
2022
},
2123
"devDependencies": {
22-
"@angular/animations": "~11.0.3",
23-
"@angular/common": "~11.0.3",
24-
"@angular/compiler": "~11.0.3",
25-
"@angular/core": "~11.0.3",
26-
"@angular/forms": "~11.0.3",
27-
"@angular/platform-browser": "~11.0.3",
28-
"@angular/platform-browser-dynamic": "~11.0.3",
29-
"@angular/router": "~11.0.3",
24+
"@angular/animations": "~12.2.3",
25+
"@angular/common": "~12.2.3",
26+
"@angular/compiler": "~12.2.3",
27+
"@angular/core": "~12.2.3",
28+
"@angular/forms": "~12.2.3",
29+
"@angular/platform-browser": "~12.2.3",
30+
"@angular/platform-browser-dynamic": "~12.2.3",
31+
"@angular/router": "~12.2.3",
3032
"@angular-devkit/build-angular": "~12.2.3",
3133
"@angular/cli": "~12.2.3",
3234
"@angular/compiler-cli": "~12.2.3",

src/projects/kephas/commands/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"license": "MIT",
1717
"peerDependencies": {
1818
"@kephas/core": "^1.0.0-preview.1",
19-
"rxjs": "^6.5.3"
19+
"rxjs": "^6.5.3 || ^7.0.0"
2020
},
2121
"dependencies": {
2222
"tslib": "^2.3.0"

src/projects/kephas/messaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"license": "MIT",
1717
"peerDependencies": {
1818
"@kephas/core": "^1.0.0-preview.1",
19-
"rxjs": "^6.5.3"
19+
"rxjs": "^6.5.3 || ^7.0.0"
2020
},
2121
"dependencies": {
2222
"tslib": "^2.3.0"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @kephas/ngx-core
2+
3+
Provides core integration capabilities with Angular 12+.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage'),
13+
require('@angular-devkit/build-angular/plugins/karma')
14+
],
15+
client: {
16+
jasmine: {
17+
// you can add configuration options for Jasmine here
18+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19+
// for example, you can disable the random execution with `random: false`
20+
// or set a specific seed with `seed: 4321`
21+
},
22+
clearContext: false // leave Jasmine Spec Runner output visible in browser
23+
},
24+
jasmineHtmlReporter: {
25+
suppressAll: true // removes the duplicated traces
26+
},
27+
coverageReporter: {
28+
dir: require('path').join(__dirname, '../../../coverage/kephas/ngx-core'),
29+
subdir: '.',
30+
reporters: [
31+
{ type: 'html' },
32+
{ type: 'text-summary' }
33+
]
34+
},
35+
reporters: ['progress', 'kjhtml'],
36+
port: 9876,
37+
colors: true,
38+
logLevel: config.LOG_INFO,
39+
autoWatch: true,
40+
browsers: ['Chrome'],
41+
singleRun: false,
42+
restartOnFileChange: true
43+
});
44+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3+
"dest": "../../../dist/kephas/ngx-core",
4+
"lib": {
5+
"entryFile": "src/public-api.ts",
6+
"umdModuleIds": {
7+
"@kephas/core": "@kephas/core",
8+
"@kephas/commands": "@kephas/commands",
9+
"@kephas/messaging": "@kephas/messaging",
10+
"@kephas/ui": "@kephas/ui",
11+
"jwt-decode": "jwt-decode"
12+
}
13+
}
14+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "@kephas/ngx-core",
3+
"version": "1.0.0-preview.1",
4+
"description": "Provides integration capabilities with Angular 12+.",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/kephas-software/kephas-js/tree/master/angular/projects/angular"
8+
},
9+
"keywords": [
10+
"kephas",
11+
"angular",
12+
"ng"
13+
],
14+
"author": {
15+
"name": "Kephas Software SRL"
16+
},
17+
"license": "MIT",
18+
"peerDependencies": {
19+
"@angular/common": "^12.2.0",
20+
"@angular/core": "^12.2.0",
21+
"@kephas/commands": "^1.0.0-preview.1",
22+
"@kephas/core": "^1.0.0-preview.1",
23+
"@kephas/messaging": "^1.0.0-preview.1",
24+
"@kephas/reflection": "^1.0.0-preview.1",
25+
"@kephas/ui": "^1.0.0-preview.1",
26+
"rxjs": "^6.5.3 || ^7.0.0",
27+
"zone.js": "~0.11.4"
28+
},
29+
"dependencies": {
30+
"tslib": "^2.3.0"
31+
},
32+
"devDependencies": {
33+
"@angular/common": "^12.2.0",
34+
"@angular/core": "^12.2.0",
35+
"@kephas/commands": "^1.0.0-preview.1",
36+
"@kephas/core": "^1.0.0-preview.1",
37+
"@kephas/messaging": "^1.0.0-preview.1",
38+
"@kephas/reflection": "^1.0.0-preview.1",
39+
"@kephas/ui": "^1.0.0-preview.1",
40+
"rxjs": "^6.5.3 || ^7.0.0",
41+
"typescript": "4.2.4",
42+
"zone.js": "~0.11.4"
43+
}
44+
}

0 commit comments

Comments
 (0)