@eui/tools 6.19.2 → 6.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/CHANGELOG.md +22 -0
- package/bin/eui-scripts.js +2 -0
- package/bin/scripts/release-package-standalone.js +5 -0
- package/package.json +1 -1
- package/scripts/csdr/audit/yarn.js +15 -2
- package/scripts/csdr/cli/constants.js +3 -0
- package/scripts/csdr/cli/package-build-frontend.js +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/assets/i18n/en.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/assets/i18n/fr.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/src/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/src/lib/components/main.component.html +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/src/lib/components/main.component.ts +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/src/lib/module.ts +26 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/.eslintrc.json +43 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/dependencies-composite.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/index.ts +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/lib/components/participant/participant.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/lib/components/participant/participant.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/lib/module.ts +24 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/.eslintrc.json +79 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/assets/i18n/en.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/assets/i18n/fr.json +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/dependencies-composite.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/dummy.spec.ts.TO_REPLACE +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/index.ts +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/blocks/sample/components/sample.component.ts +14 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/blocks/sample/containers/container.component.ts +36 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/blocks/sample/models/block.model.ts +5 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/blocks/sample/models/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/blocks/sample/module.ts +37 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/components/sample.component.html +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/components/sample.component.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/containers/block-store.service.ts +26 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/containers/container.component.ts +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/models/block.model.ts +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/models/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/module.ts +56 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/store/block.actions.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/main/store/block.feature.ts +48 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/lib/module.ts +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/tsconfig.lib.json +33 -0
- package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-ngrx/tsconfig.spec.json +17 -0
- package/scripts/csdr/config/angular.js +14 -1
- package/scripts/csdr/config/config-skeletons.js +45 -1
- package/scripts/csdr/config/config-utils.js +1 -0
- package/scripts/csdr/config/packages.js +42 -3
- package/scripts/csdr/config/remotes.js +2 -0
- package/scripts/csdr/config/standalone.js +108 -0
- package/scripts/csdr/install/common.js +10 -2
- package/scripts/csdr/release/package/common.js +73 -45
- package/scripts/csdr/release/package/release-package-standalone.js +211 -0
- package/scripts/csdr/release/package/release-ui-standalone.js +165 -0
- package/scripts/index.js +3 -0
- package/scripts/utils/changelog-utils.js +20 -15
- package/scripts/utils/git-utils.js +5 -1
- package/scripts/utils/notification/config.js +7 -1
- package/scripts/utils/publish/npm.js +16 -2
- package/scripts/utils/sonar/sonar-utils.js +13 -4
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.20.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 6.20.0 (2024-08-06)
|
|
2
|
+
|
|
3
|
+
##### New Features
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted for standalone UI package build - outside of CSDR context - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([a5722b57](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a5722b571a3badc537be342565fe1c866962dee5))
|
|
7
|
+
##### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **other:**
|
|
10
|
+
* typo ([8d450274](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8d45027465fb228e83127678ae33d81ce4a926b9))
|
|
11
|
+
|
|
12
|
+
* * *
|
|
13
|
+
* * *
|
|
14
|
+
## 6.19.3 (2024-07-27)
|
|
15
|
+
|
|
16
|
+
##### Chores
|
|
17
|
+
|
|
18
|
+
* **other:**
|
|
19
|
+
* added cli skeleton for v18 package - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([11f39f15](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/11f39f15c6a9544150b30520ff1f927303c5ba7f))
|
|
20
|
+
|
|
21
|
+
* * *
|
|
22
|
+
* * *
|
|
1
23
|
## 6.19.2 (2024-07-26)
|
|
2
24
|
|
|
3
25
|
##### Chores
|
package/bin/eui-scripts.js
CHANGED
|
@@ -38,6 +38,7 @@ const scriptIndex = args.findIndex(
|
|
|
38
38
|
x === 'csdr-upgrade-deps' ||
|
|
39
39
|
x === 'csdr-serve-app' ||
|
|
40
40
|
x === 'release-package' ||
|
|
41
|
+
x === 'release-package-standalone' ||
|
|
41
42
|
x === 'release-backend' ||
|
|
42
43
|
x === 'release-app' ||
|
|
43
44
|
x === 'release-app-group' ||
|
|
@@ -87,6 +88,7 @@ switch (script) {
|
|
|
87
88
|
case 'csdr-upgrade-deps':
|
|
88
89
|
case 'csdr-serve-app':
|
|
89
90
|
case 'release-package':
|
|
91
|
+
case 'release-package-standalone':
|
|
90
92
|
case 'release-backend':
|
|
91
93
|
case 'release-app':
|
|
92
94
|
case 'release-app-group':
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ const configUtils = require('../config/config-utils');
|
|
|
11
11
|
const initUtils = require('../init/init-utils');
|
|
12
12
|
|
|
13
13
|
// GET ARGS
|
|
14
|
-
const { dryRun } = tools.getArgs();
|
|
14
|
+
const { dryRun, skipAudit } = tools.getArgs();
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -71,6 +71,11 @@ module.exports.audit = (pkg) => {
|
|
|
71
71
|
|
|
72
72
|
let outReport;
|
|
73
73
|
|
|
74
|
+
if (skipAudit) {
|
|
75
|
+
tools.logInfo('Skipping audit...');
|
|
76
|
+
return Promise.resolve();
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
return Promise.resolve()
|
|
75
80
|
// extract the audit summary lines
|
|
76
81
|
.then(() => {
|
|
@@ -128,7 +133,15 @@ module.exports.audit = (pkg) => {
|
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
// getting config options for gates defined
|
|
131
|
-
|
|
136
|
+
let configOptions;
|
|
137
|
+
|
|
138
|
+
if (pkg.standalone) {
|
|
139
|
+
// TODO proceed to gates checks if needed
|
|
140
|
+
// configOptions = configUtils.standalone.getConfigOptions();
|
|
141
|
+
return;
|
|
142
|
+
} else {
|
|
143
|
+
configOptions = configUtils.global.getConfigOptions();
|
|
144
|
+
}
|
|
132
145
|
|
|
133
146
|
// getting local csdr euiVersion
|
|
134
147
|
const euiVersion = configUtils.global.getLocalEuiVersion();
|
|
@@ -14,6 +14,9 @@ module.exports.FRONTEND_SKELETON_EUI16_PARTICIPANT_NGRX_PATH = path.join(this.SK
|
|
|
14
14
|
module.exports.FRONTEND_SKELETON_EUI17_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'default');
|
|
15
15
|
module.exports.FRONTEND_SKELETON_EUI17_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'participant-default');
|
|
16
16
|
module.exports.FRONTEND_SKELETON_EUI17_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '17.x', 'participant-ngrx');
|
|
17
|
+
module.exports.FRONTEND_SKELETON_EUI18_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'default');
|
|
18
|
+
module.exports.FRONTEND_SKELETON_EUI18_PARTICIPANT_DEFAULT_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'participant-default');
|
|
19
|
+
module.exports.FRONTEND_SKELETON_EUI18_PARTICIPANT_NGRX_PATH = path.join(this.SKELETONS_ROOT_PATH, 'frontend', '18.x', 'participant-ngrx');
|
|
17
20
|
module.exports.BACKEND_SKELETON_PATH = path.join(this.SKELETONS_ROOT_PATH, 'backend');
|
|
18
21
|
module.exports.VIRTUAL_REMOTE_SKELETON_ROOT_PATH = path.join(__dirname, 'skeletons', 'virtual-remote');
|
|
19
22
|
|
|
@@ -176,6 +176,16 @@ const generateDefault = (args = constants.DEFAULT_CONFIG) => {
|
|
|
176
176
|
} else {
|
|
177
177
|
tools.copydir(constants.FRONTEND_SKELETON_EUI17_PATH, targetPath, true);
|
|
178
178
|
}
|
|
179
|
+
} else if (args.pkgFrontendVersion === constants.CONFIG_OPTIONS.pkgFrontendVersion.EUI18) {
|
|
180
|
+
if (args.pkgFrontendParticipant) {
|
|
181
|
+
if (args.pkgFrontendParticipantNgRx) {
|
|
182
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI18_PARTICIPANT_NGRX_PATH, targetPath, true);
|
|
183
|
+
} else {
|
|
184
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI18_PARTICIPANT_DEFAULT_PATH, targetPath, true);
|
|
185
|
+
}
|
|
186
|
+
} else {
|
|
187
|
+
tools.copydir(constants.FRONTEND_SKELETON_EUI18_PATH, targetPath, true);
|
|
188
|
+
}
|
|
179
189
|
}
|
|
180
190
|
|
|
181
191
|
// REPLACING PLACEHOLDERS
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*",
|
|
5
|
+
"**/*.d.ts",
|
|
6
|
+
"dist",
|
|
7
|
+
"test",
|
|
8
|
+
"coverage",
|
|
9
|
+
"externals",
|
|
10
|
+
"legacy"
|
|
11
|
+
],
|
|
12
|
+
"overrides": [
|
|
13
|
+
{
|
|
14
|
+
"files": [
|
|
15
|
+
"*.ts"
|
|
16
|
+
],
|
|
17
|
+
"parserOptions": {
|
|
18
|
+
"project": [
|
|
19
|
+
"packages/@module.full.name@/tsconfig.lib.json",
|
|
20
|
+
"packages/@module.full.name@/tsconfig.spec.json"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"rules": {
|
|
24
|
+
"@angular-eslint/component-selector": [
|
|
25
|
+
"error",
|
|
26
|
+
{
|
|
27
|
+
"type": "element",
|
|
28
|
+
"prefix": ["@module.scope.string@"],
|
|
29
|
+
"style": "kebab-case"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"@angular-eslint/directive-selector": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"type": "attribute",
|
|
36
|
+
"prefix": ["@module.scope.string@"],
|
|
37
|
+
"style": "camelCase"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# compiled output
|
|
4
|
+
**/node_modules
|
|
5
|
+
**/target
|
|
6
|
+
**/build
|
|
7
|
+
**/dist
|
|
8
|
+
**/out-tsc
|
|
9
|
+
**/tmp
|
|
10
|
+
**/test/reports
|
|
11
|
+
|
|
12
|
+
# IDEs and editors
|
|
13
|
+
/.idea
|
|
14
|
+
.project
|
|
15
|
+
.classpath
|
|
16
|
+
.c9/
|
|
17
|
+
*.launch
|
|
18
|
+
.settings/
|
|
19
|
+
*.sublime-workspace
|
|
20
|
+
|
|
21
|
+
# IDE - VSCode
|
|
22
|
+
.vscode/*
|
|
23
|
+
!.vscode/settings.json
|
|
24
|
+
!.vscode/tasks.json
|
|
25
|
+
!.vscode/launch.json
|
|
26
|
+
!.vscode/extensions.json
|
|
27
|
+
|
|
28
|
+
# misc
|
|
29
|
+
/.sass-cache
|
|
30
|
+
/connect.lock
|
|
31
|
+
/coverage
|
|
32
|
+
/libpeerconnection.log
|
|
33
|
+
npm-debug.log
|
|
34
|
+
testem.log
|
|
35
|
+
/typings
|
|
36
|
+
yarn-error.log
|
|
37
|
+
|
|
38
|
+
# e2e
|
|
39
|
+
/e2e/*.js
|
|
40
|
+
/e2e/*.map
|
|
41
|
+
**/src/**/*.js
|
|
42
|
+
**/src/**/*.map
|
|
43
|
+
|
|
44
|
+
# System Files
|
|
45
|
+
.DS_Store
|
|
46
|
+
Thumbs.db
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { @module.class.name@Module, routes } from './lib/module';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
+
import { EuiButtonModule } from '@eui/components/eui-button';
|
|
4
|
+
import { EuiPageModule } from '@eui/components/eui-page';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '@module.scope-name@-cp',
|
|
8
|
+
templateUrl: './main.component.html',
|
|
9
|
+
standalone: true,
|
|
10
|
+
imports: [
|
|
11
|
+
TranslateModule,
|
|
12
|
+
EuiButtonModule,
|
|
13
|
+
EuiPageModule,
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
export class @module.class.name@Component {
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
// -- main component --
|
|
6
|
+
import { @module.class.name@Component } from './components/main.component';
|
|
7
|
+
|
|
8
|
+
// -- Routes --
|
|
9
|
+
export const routes: Routes = [
|
|
10
|
+
{
|
|
11
|
+
path: '',
|
|
12
|
+
pathMatch: 'full',
|
|
13
|
+
component: @module.class.name@Component,
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule,
|
|
20
|
+
RouterModule.forChild(routes),
|
|
21
|
+
@module.class.name@Component,
|
|
22
|
+
],
|
|
23
|
+
exports: [],
|
|
24
|
+
})
|
|
25
|
+
export class @module.class.name@Module {
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js/dist/zone';
|
|
4
|
+
import 'zone.js/dist/zone-testing';
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import {
|
|
7
|
+
BrowserDynamicTestingModule,
|
|
8
|
+
platformBrowserDynamicTesting,
|
|
9
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
+
|
|
11
|
+
declare const require: any;
|
|
12
|
+
|
|
13
|
+
// First, initialize the Angular testing environment.
|
|
14
|
+
getTestBed().initTestEnvironment(
|
|
15
|
+
BrowserDynamicTestingModule,
|
|
16
|
+
platformBrowserDynamicTesting(),
|
|
17
|
+
);
|
|
18
|
+
// Then we find all the tests.
|
|
19
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
20
|
+
// And load the modules.
|
|
21
|
+
context.keys().map(context);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.build.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/lib",
|
|
5
|
+
"target": "ES2022",
|
|
6
|
+
"module": "ES2022",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"inlineSources": true,
|
|
11
|
+
"emitDecoratorMetadata": true,
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"useDefineForClassFields": false,
|
|
14
|
+
"importHelpers": true,
|
|
15
|
+
"types": [],
|
|
16
|
+
"lib": [
|
|
17
|
+
"ES2022",
|
|
18
|
+
"dom"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"angularCompilerOptions": {
|
|
22
|
+
"annotateForClosureCompiler": true,
|
|
23
|
+
"skipTemplateCodegen": true,
|
|
24
|
+
"strictMetadataEmit": true,
|
|
25
|
+
"fullTemplateTypeCheck": true,
|
|
26
|
+
"strictInjectionParameters": true,
|
|
27
|
+
"enableResourceInlining": true
|
|
28
|
+
},
|
|
29
|
+
"exclude": [
|
|
30
|
+
"src/test.ts",
|
|
31
|
+
"**/*.spec.ts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../.eslintrc-mwp-eui16.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*",
|
|
5
|
+
"**/*.d.ts",
|
|
6
|
+
"dist",
|
|
7
|
+
"test",
|
|
8
|
+
"coverage",
|
|
9
|
+
"externals",
|
|
10
|
+
"legacy"
|
|
11
|
+
],
|
|
12
|
+
"overrides": [
|
|
13
|
+
{
|
|
14
|
+
"files": [
|
|
15
|
+
"*.ts"
|
|
16
|
+
],
|
|
17
|
+
"parserOptions": {
|
|
18
|
+
"project": [
|
|
19
|
+
"packages/@module.full.name@/tsconfig.lib.json",
|
|
20
|
+
"packages/@module.full.name@/tsconfig.spec.json"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"rules": {
|
|
24
|
+
"@angular-eslint/component-selector": [
|
|
25
|
+
"error",
|
|
26
|
+
{
|
|
27
|
+
"type": "element",
|
|
28
|
+
"prefix": ["@module.scope.string@"],
|
|
29
|
+
"style": "kebab-case"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"@angular-eslint/directive-selector": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"type": "attribute",
|
|
36
|
+
"prefix": ["@module.scope.string@"],
|
|
37
|
+
"style": "camelCase"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/assets/i18n/fr.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@module.scope-name@.TITLE": "**fr** @module.scope-name@ **fr**",
|
|
3
|
+
"@module.scope-name@.FILTER": "**fr** Search filter **fr**",
|
|
4
|
+
"@module.scope-name@.QUICK_SECTION": "**fr** Quick filter **fr**",
|
|
5
|
+
"@module.scope-name@.SEARCH_RESULT": "**fr** Filter results **fr**"
|
|
6
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/gitignore_TO_REPLACE
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# compiled output
|
|
4
|
+
**/node_modules
|
|
5
|
+
**/target
|
|
6
|
+
**/build
|
|
7
|
+
**/dist
|
|
8
|
+
**/out-tsc
|
|
9
|
+
**/tmp
|
|
10
|
+
**/test/reports
|
|
11
|
+
|
|
12
|
+
# IDEs and editors
|
|
13
|
+
/.idea
|
|
14
|
+
.project
|
|
15
|
+
.classpath
|
|
16
|
+
.c9/
|
|
17
|
+
*.launch
|
|
18
|
+
.settings/
|
|
19
|
+
*.sublime-workspace
|
|
20
|
+
|
|
21
|
+
# IDE - VSCode
|
|
22
|
+
.vscode/*
|
|
23
|
+
!.vscode/settings.json
|
|
24
|
+
!.vscode/tasks.json
|
|
25
|
+
!.vscode/launch.json
|
|
26
|
+
!.vscode/extensions.json
|
|
27
|
+
|
|
28
|
+
# misc
|
|
29
|
+
/.sass-cache
|
|
30
|
+
/connect.lock
|
|
31
|
+
/coverage
|
|
32
|
+
/libpeerconnection.log
|
|
33
|
+
npm-debug.log
|
|
34
|
+
testem.log
|
|
35
|
+
/typings
|
|
36
|
+
yarn-error.log
|
|
37
|
+
|
|
38
|
+
# e2e
|
|
39
|
+
/e2e/*.js
|
|
40
|
+
/e2e/*.map
|
|
41
|
+
**/src/**/*.js
|
|
42
|
+
**/src/**/*.map
|
|
43
|
+
|
|
44
|
+
# System Files
|
|
45
|
+
.DS_Store
|
|
46
|
+
Thumbs.db
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hello from <strong>participant</strong>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { BlockComponent, ParticipantBlock } from '@cc/shared/block';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: '@module.scope.string@-participant-cp',
|
|
7
|
+
templateUrl: './participant.component.html',
|
|
8
|
+
})
|
|
9
|
+
export class @module.class.name@Component implements BlockComponent, OnInit {
|
|
10
|
+
@Input() readonly block: ParticipantBlock; // it should be an extension of ParticipantBlock
|
|
11
|
+
|
|
12
|
+
constructor() {
|
|
13
|
+
// constructor
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
ngOnInit(): void {
|
|
17
|
+
console.log('init');
|
|
18
|
+
}
|
|
19
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/lib/module.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
|
|
6
|
+
import { CcBlockModule } from '@cc/shared/block';
|
|
7
|
+
|
|
8
|
+
import { @module.class.name@Component } from './components/participant/participant.component';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
TranslateModule,
|
|
14
|
+
CcBlockModule,
|
|
15
|
+
],
|
|
16
|
+
declarations: [
|
|
17
|
+
@module.class.name@Component,
|
|
18
|
+
],
|
|
19
|
+
exports: [
|
|
20
|
+
@module.class.name@Component,
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
export class @module.class.name@Module {
|
|
24
|
+
}
|
package/scripts/csdr/cli/skeletons/package/frontend/18.x/participant-default/src/test.ts.TO_REPLACE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js/dist/zone';
|
|
4
|
+
import 'zone.js/dist/zone-testing';
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import {
|
|
7
|
+
BrowserDynamicTestingModule,
|
|
8
|
+
platformBrowserDynamicTesting,
|
|
9
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
+
|
|
11
|
+
declare const require: any;
|
|
12
|
+
|
|
13
|
+
// First, initialize the Angular testing environment.
|
|
14
|
+
getTestBed().initTestEnvironment(
|
|
15
|
+
BrowserDynamicTestingModule,
|
|
16
|
+
platformBrowserDynamicTesting(),
|
|
17
|
+
);
|
|
18
|
+
// Then we find all the tests.
|
|
19
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
20
|
+
// And load the modules.
|
|
21
|
+
context.keys().map(context);
|