@eui/tools 4.15.10 → 4.15.14
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 +41 -0
- package/bin/eui-scripts.js +6 -2
- package/bin/scripts/build-package-sub.js +20 -0
- package/bin/scripts/version.js +12 -0
- package/global.test.js +3 -3
- package/package.json +12 -16
- package/sandbox.js +3 -2
- package/scripts/csdr/cli/app.js +30 -3
- package/scripts/csdr/cli/package.js +41 -5
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +33 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +5 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +50 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +6 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +3 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +21 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +26 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +19 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +7 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +15 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +7 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +8 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +17 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +15 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +8 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +41 -0
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +22 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/en.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/i18n/fr.json +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/gitignore_TO_REPLACE +46 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/ng-package.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/package.json +4 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/index.ts +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/lib/module.ts +11 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/test.ts.TO_REPLACE +21 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +32 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.spec.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/angular.json +3 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote/dependencies-composite.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.scss +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/dummy.spec.ts +6 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.component.ts +62 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/module.ts +33 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/app/routing.module.ts +22 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/en.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/assets/i18n-compiled/fr.json +1 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/config/global.ts +8 -5
- package/scripts/csdr/cli/skeletons/package/frontend-remote/src/index.html +1 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote/tsconfig.app.json +3 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +90 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +2 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +64 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +8 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +3 -0
- package/scripts/csdr/cli/skeletons/package/{frontend-remote/src/app/dummy.spec.ts.TO_REPLACE → frontend-remote-eui10/src/app/dummy.spec.ts} +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +71 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +165 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +28 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +42 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +51 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +31 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +3 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +15 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +10 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +12 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +86 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/test.ts.TO_REPLACE +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +20 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +18 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +7 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +17 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +15 -0
- package/scripts/csdr/config/angular.js +213 -3
- package/scripts/csdr/config/global.js +16 -0
- package/scripts/csdr/init/resources/yarn-eui13.lock +15857 -0
- package/scripts/csdr/install/common.js +26 -8
- package/scripts/csdr/jira/jira-utils.js +168 -168
- package/scripts/csdr/jira/update.js +150 -150
- package/scripts/csdr/metadata/app-envs.js +34 -33
- package/scripts/csdr/metadata/app-history.js +62 -61
- package/scripts/csdr/metadata/common.js +44 -41
- package/scripts/csdr/metadata/package-history.js +0 -1
- package/scripts/csdr/release/app/release-app.js +3 -0
- package/scripts/csdr/release/package/release-package.js +4 -0
- package/scripts/csdr/sync/sync-utils.js +6 -2
- package/scripts/utils/build/package/angular.js +4 -4
- package/scripts/utils/build/package/build-package-utils.js +50 -1
- package/scripts/utils/build/package/element.js +3 -14
- package/scripts/utils/build/package/styles.js +100 -7
- package/scripts/utils/confluence-utils.js +126 -126
- package/scripts/utils/index.js +2 -2
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/app.module.ts +52 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/app/core/reducers/index.ts +40 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/global.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/index.ts +8 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/config/modules.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.dev.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.prod.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/environments/environment.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/karma.conf.js +7 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/main.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/polyfills.ts +86 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/src/_generated/tst.ts +33 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.app.json +19 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.spec.json +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tslint.json +17 -0
- package/scripts/utils/pre-build/injection/skeletons.js +6 -2
- package/scripts/utils/pre-build/projects.js +5 -1
- package/scripts/utils/tools.js +30 -1
- package/scripts/csdr/cli/skeletons/package/frontend-remote/webpack.extra.js +0 -7
|
@@ -8,6 +8,8 @@ const configUtils = require('../config/config-utils');
|
|
|
8
8
|
|
|
9
9
|
const tools = require('../../utils/tools');
|
|
10
10
|
|
|
11
|
+
const { skipPull } = tools.getArgs();
|
|
12
|
+
|
|
11
13
|
module.exports.sync = () => {
|
|
12
14
|
return Promise.resolve()
|
|
13
15
|
.then(() => {
|
|
@@ -22,8 +24,10 @@ module.exports.sync = () => {
|
|
|
22
24
|
tools.logSuccess();
|
|
23
25
|
})
|
|
24
26
|
.then(() => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
if (!skipPull) {
|
|
28
|
+
tools.logInfo(`Pulling root folder ...`);
|
|
29
|
+
return execa.shellSync(`git pull`, { cwd: path.join(process.cwd()), stdio: 'inherit' });
|
|
30
|
+
}
|
|
27
31
|
})
|
|
28
32
|
.then(() => {
|
|
29
33
|
tools.logSuccess();
|
|
@@ -65,11 +65,11 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
65
65
|
tools.logInfo('Linting...');
|
|
66
66
|
|
|
67
67
|
let tsLintPath;
|
|
68
|
-
if (pkg.build && pkg.build.euiVersion && pkg.build.euiVersion === '
|
|
69
|
-
|
|
70
|
-
} else {
|
|
68
|
+
// if (pkg.build && pkg.build.euiVersion && pkg.build.euiVersion === '>7.x') {
|
|
69
|
+
// tsLintPath = path.join(pkg.paths.pkgRootDirectory, 'tslint-eui-next.json');
|
|
70
|
+
// } else {
|
|
71
71
|
tsLintPath = path.join(pkg.paths.pkgRootDirectory, 'tslint.json');
|
|
72
|
-
}
|
|
72
|
+
// }
|
|
73
73
|
const tsConfigPath = path.join(pkg.paths.pkgRootDirectory, 'tsconfig.lib.json');
|
|
74
74
|
tools.logInfo(`running tslint -c ${tsLintPath} -p ${tsConfigPath}`);
|
|
75
75
|
return tools.runScript(`tslint -c ${tsLintPath} -p ${tsConfigPath} -t verbose`);
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
// GLOBAL
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const glob = require('glob');
|
|
6
|
+
const execa = require('execa');
|
|
6
7
|
|
|
7
8
|
// LOCAL
|
|
8
9
|
const tools = require('../../tools');
|
|
9
10
|
const configUtils = require('../../../csdr/config/config-utils');
|
|
10
|
-
const notificationUtils = require('../../notification/notification-utils');
|
|
11
11
|
|
|
12
12
|
// INNER MODULES
|
|
13
13
|
const innerNodeJs = require('./nodeJs');
|
|
@@ -188,3 +188,52 @@ module.exports.postBuild = (pkg) => {
|
|
|
188
188
|
})
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
|
|
192
|
+
module.exports.buildSubEntry = (pkg, subEntry) => {
|
|
193
|
+
return Promise.resolve()
|
|
194
|
+
.then(() => {
|
|
195
|
+
tools.logInfo(`Building sub-entry : ${subEntry} of package : ${pkg.name}`);
|
|
196
|
+
// console.log(pkg);
|
|
197
|
+
return tools.getFilesGlob(pkg.paths.pkgRootDirectory, `**/package.json`);
|
|
198
|
+
})
|
|
199
|
+
|
|
200
|
+
.then((files) => {
|
|
201
|
+
// console.log(files);
|
|
202
|
+
|
|
203
|
+
if (files.length === 0) {
|
|
204
|
+
tools.logWarning(`no sub-entries found within package ${pkg.name}`);
|
|
205
|
+
return;
|
|
206
|
+
|
|
207
|
+
} else {
|
|
208
|
+
let subEntryPath = files.filter((f) => {
|
|
209
|
+
return f.indexOf(subEntry) > -1;
|
|
210
|
+
})[0];
|
|
211
|
+
|
|
212
|
+
if (!subEntryPath) {
|
|
213
|
+
tools.logWarning(`${subEntry} can't be found in sub-folders of package (must contains package.json file for sub-entry definition)`);
|
|
214
|
+
return;
|
|
215
|
+
|
|
216
|
+
} else {
|
|
217
|
+
subEntryPath = subEntryPath.replace('/package.json', '');
|
|
218
|
+
tools.logInfo(`${subEntryPath} found... injecting angular.json for sub entry`);
|
|
219
|
+
|
|
220
|
+
return configUtils.angular.registerAngularPackageSubEntry(subEntry, subEntryPath);
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
})
|
|
224
|
+
|
|
225
|
+
.then(() => {
|
|
226
|
+
const ng = path.resolve(process.cwd(), 'node_modules', '@angular', 'cli', 'bin', 'ng');
|
|
227
|
+
|
|
228
|
+
let args = ['--max_old_space_size=8096', ng, 'build', subEntry];
|
|
229
|
+
|
|
230
|
+
return execa('node', args, { cwd: pkg.paths.pkgRootDirectory, stdio: 'inherit' });
|
|
231
|
+
})
|
|
232
|
+
|
|
233
|
+
.then(() => {
|
|
234
|
+
tools.logSuccess();
|
|
235
|
+
})
|
|
236
|
+
.catch((e) => {
|
|
237
|
+
throw e;
|
|
238
|
+
})
|
|
239
|
+
}
|
|
@@ -24,20 +24,9 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
24
24
|
.then(() => {
|
|
25
25
|
tools.logTitle(`Building element : ${pkg.name}...`);
|
|
26
26
|
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
skipLint = true;
|
|
31
|
-
}
|
|
32
|
-
if (pkg.build.skipTest) {
|
|
33
|
-
skipTest = true;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// if (isMaster) {
|
|
38
|
-
// skipLint = true;
|
|
39
|
-
// skipTest = true;
|
|
40
|
-
// }
|
|
27
|
+
// force skipLint and skipTest on element
|
|
28
|
+
skipLint = true;
|
|
29
|
+
skipTest = true;
|
|
41
30
|
})
|
|
42
31
|
|
|
43
32
|
.then(() => {
|
|
@@ -10,10 +10,11 @@ const tools = require('../../tools');
|
|
|
10
10
|
const notificationUtils = require('../../notification/notification-utils');
|
|
11
11
|
|
|
12
12
|
// FETCH ARGS
|
|
13
|
-
let {
|
|
13
|
+
let { skipCompile } = tools.getArgs();
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
const
|
|
16
|
+
const compileSassFileNodeSass = (folder, filename, isNodeSassTildeImporterActive) => {
|
|
17
|
+
|
|
17
18
|
const filePath = path.join(folder, 'styles', filename);
|
|
18
19
|
|
|
19
20
|
tools.logInfo(`Compiling ${filePath}.scss...`);
|
|
@@ -92,6 +93,96 @@ const compileSassFile = (folder, filename, isNodeSassTildeImporterActive) => {
|
|
|
92
93
|
|
|
93
94
|
|
|
94
95
|
|
|
96
|
+
const compileSassFileDartSass = (folder, filename) => {
|
|
97
|
+
const filePath = path.join(folder, 'styles', filename);
|
|
98
|
+
|
|
99
|
+
tools.logInfo(`Compiling ${filePath}.scss...`);
|
|
100
|
+
|
|
101
|
+
return Promise.resolve()
|
|
102
|
+
.then(() => {
|
|
103
|
+
tools.logInfo('Compiling SCSS...');
|
|
104
|
+
|
|
105
|
+
const sass = require('sass');
|
|
106
|
+
|
|
107
|
+
return sass.renderSync({
|
|
108
|
+
file: filePath + '.scss',
|
|
109
|
+
outFile: filePath + '.temp.css',
|
|
110
|
+
sourceMap: true,
|
|
111
|
+
sourceMapContents: true,
|
|
112
|
+
sourceMapEmbed: true,
|
|
113
|
+
includePaths: [
|
|
114
|
+
path.resolve(process.cwd(), 'node_modules'),
|
|
115
|
+
],
|
|
116
|
+
});
|
|
117
|
+
})
|
|
118
|
+
|
|
119
|
+
.then((sassResult) => {
|
|
120
|
+
const finalDest = filePath + '.css';
|
|
121
|
+
|
|
122
|
+
const cssnano = require('cssnano');
|
|
123
|
+
const autoprefixer = require('autoprefixer');
|
|
124
|
+
const postcss = require('postcss');
|
|
125
|
+
|
|
126
|
+
const plugins = [];
|
|
127
|
+
|
|
128
|
+
plugins.push(autoprefixer({
|
|
129
|
+
grid: 'no-autoplace',
|
|
130
|
+
}));
|
|
131
|
+
plugins.push(cssnano({ safe: true }));
|
|
132
|
+
|
|
133
|
+
return postcss(plugins)
|
|
134
|
+
.process(sassResult.css, {
|
|
135
|
+
map: { inline: false, prev: sassResult.map.toString() },
|
|
136
|
+
from: filePath + '.scss',
|
|
137
|
+
to: finalDest,
|
|
138
|
+
})
|
|
139
|
+
.then((postcssResult) => {
|
|
140
|
+
// fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
141
|
+
fs.writeFileSync(finalDest, postcssResult.css);
|
|
142
|
+
|
|
143
|
+
if (postcssResult.map) {
|
|
144
|
+
fs.writeFileSync(`${finalDest}.map`, postcssResult.map);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
.then((output) => {
|
|
150
|
+
// console.log(output);
|
|
151
|
+
console.log('Size ::: ' + fs.statSync(filePath + '.css').size);
|
|
152
|
+
|
|
153
|
+
tools.logSuccess(`OK ==> generated ${filePath}.css`);
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
.then(() => {
|
|
157
|
+
tools.remove(filePath + '.temp.css');
|
|
158
|
+
tools.remove(filePath + '.temp.css.map');
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
.catch((e) => {
|
|
162
|
+
console.log(e);
|
|
163
|
+
throw e;
|
|
164
|
+
})
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
const compileSassFile = (pkg, folder, filename, isNodeSassTildeImporterActive) => {
|
|
170
|
+
return Promise.resolve()
|
|
171
|
+
.then(() => {
|
|
172
|
+
if (pkg.build && pkg.build.euiVersion === '13.x') {
|
|
173
|
+
return compileSassFileDartSass(folder, filename);
|
|
174
|
+
} else {
|
|
175
|
+
return compileSassFileNodeSass(folder, filename, isNodeSassTildeImporterActive);
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
|
|
179
|
+
.catch((e) => {
|
|
180
|
+
console.log(e);
|
|
181
|
+
throw e;
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
95
186
|
|
|
96
187
|
module.exports.build = (pkg) => {
|
|
97
188
|
tools.logInfo('Building STYLES package...');
|
|
@@ -123,9 +214,12 @@ module.exports.build = (pkg) => {
|
|
|
123
214
|
console.log('Sources copy succeeded.')
|
|
124
215
|
})
|
|
125
216
|
.then(() => Promise.resolve().then(() => {
|
|
217
|
+
tools.logInfo('Processing stylesheets entries : ');
|
|
218
|
+
console.log(pkg.stylesheets);
|
|
219
|
+
|
|
126
220
|
return pkg.stylesheets.reduce((promise, file) => {
|
|
127
221
|
return promise.then(() => (
|
|
128
|
-
compileSassFile(tmpFolder, file, pkg.build && pkg.build.isNodeSassTildeImporterActive)
|
|
222
|
+
compileSassFile(pkg, tmpFolder, file, pkg.build && pkg.build.isNodeSassTildeImporterActive)
|
|
129
223
|
)).catch((e) => {
|
|
130
224
|
console.log(e);
|
|
131
225
|
throw e;
|
|
@@ -150,6 +244,9 @@ module.exports.build = (pkg) => {
|
|
|
150
244
|
tools.copy(path.join(pkg.paths.pkgRootDirectory, 'README.md'), path.join(pkg.paths.pkgBuild, 'README.md'));
|
|
151
245
|
tools.copy(path.join(pkg.paths.pkgRootDirectory, 'LICENSE'), path.join(pkg.paths.pkgBuild, 'LICENSE'));
|
|
152
246
|
})
|
|
247
|
+
.then(() => {
|
|
248
|
+
return tools.rimraf(tmpFolder);
|
|
249
|
+
})
|
|
153
250
|
.then(() => {
|
|
154
251
|
return notificationUtils.package.sendPackageMessage({
|
|
155
252
|
package: pkg
|
|
@@ -162,7 +259,3 @@ module.exports.build = (pkg) => {
|
|
|
162
259
|
}
|
|
163
260
|
}
|
|
164
261
|
|
|
165
|
-
// EXPORTS
|
|
166
|
-
module.exports.compileSassFile = compileSassFile;
|
|
167
|
-
|
|
168
|
-
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Confluence = require("confluence-api");
|
|
4
|
-
|
|
5
|
-
const tools = require('./tools');
|
|
6
|
-
const configUtils = require('../csdr/config/config-utils');
|
|
7
|
-
|
|
8
|
-
const { jiraUser, jiraPassword, dryRun } = tools.getArgs();
|
|
9
|
-
|
|
10
|
-
const updatePageContent = (pageId, pageContent) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const getContentByPageTitle = (pageTitle) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const updatePackagesHistoryPageContent = (tableContent) => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
// EXPORTS
|
|
121
|
-
|
|
122
|
-
module.exports = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
1
|
+
// 'use strict';
|
|
2
|
+
|
|
3
|
+
// var Confluence = require("confluence-api");
|
|
4
|
+
|
|
5
|
+
// const tools = require('./tools');
|
|
6
|
+
// const configUtils = require('../csdr/config/config-utils');
|
|
7
|
+
|
|
8
|
+
// const { jiraUser, jiraPassword, dryRun } = tools.getArgs();
|
|
9
|
+
|
|
10
|
+
// const updatePageContent = (pageId, pageContent) => {
|
|
11
|
+
|
|
12
|
+
// const config = configUtils.global.getConfig();
|
|
13
|
+
|
|
14
|
+
// const confluenceHost = config.confluence && config.confluence.host;
|
|
15
|
+
// const confluenceProjectName = config.confluence && config.confluence.projectName;
|
|
16
|
+
|
|
17
|
+
// const confluenceConfig = {
|
|
18
|
+
// username: jiraUser,
|
|
19
|
+
// password: jiraPassword,
|
|
20
|
+
// baseUrl: confluenceHost,
|
|
21
|
+
// version: 6 // Confluence major version, optional
|
|
22
|
+
// };
|
|
23
|
+
|
|
24
|
+
// tools.logTitle('Update confluence DEVOPS page...');
|
|
25
|
+
|
|
26
|
+
// if (dryRun) {
|
|
27
|
+
// return Promise.resolve();
|
|
28
|
+
// }
|
|
29
|
+
|
|
30
|
+
// var confluence = new Confluence(confluenceConfig);
|
|
31
|
+
|
|
32
|
+
// return Promise.resolve()
|
|
33
|
+
// .then(() => {
|
|
34
|
+
// return new Promise((resolve, reject) => {
|
|
35
|
+
// confluence.getContentById(
|
|
36
|
+
// pageId
|
|
37
|
+
// , function (err, response) {
|
|
38
|
+
// if (err) {
|
|
39
|
+
// return reject(err);
|
|
40
|
+
// } else {
|
|
41
|
+
// return resolve(response);
|
|
42
|
+
// }
|
|
43
|
+
// })
|
|
44
|
+
// })
|
|
45
|
+
// })
|
|
46
|
+
// .then((content) => {
|
|
47
|
+
// const newVersion = content.version.number + 1;
|
|
48
|
+
|
|
49
|
+
// return new Promise((resolve, reject) => {
|
|
50
|
+
// confluence.putContent(
|
|
51
|
+
// confluenceProjectName,
|
|
52
|
+
// pageId,
|
|
53
|
+
// newVersion,
|
|
54
|
+
// content.title,
|
|
55
|
+
// pageContent
|
|
56
|
+
// , function (err, response) {
|
|
57
|
+
// if (err) {
|
|
58
|
+
// return reject(err);
|
|
59
|
+
// } else {
|
|
60
|
+
// return resolve(response);
|
|
61
|
+
// }
|
|
62
|
+
// })
|
|
63
|
+
// })
|
|
64
|
+
// })
|
|
65
|
+
// .then(() => {
|
|
66
|
+
// tools.logSuccess();
|
|
67
|
+
// })
|
|
68
|
+
// .catch((e) => {
|
|
69
|
+
// // error is not thrown as this failure to update is just a side-effect of the pipeline
|
|
70
|
+
// tools.logError('ERROR!!! error encountered while trying to publish on Confluence');
|
|
71
|
+
// console.log(e);
|
|
72
|
+
// })
|
|
73
|
+
// }
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// const getContentByPageTitle = (pageTitle) => {
|
|
77
|
+
|
|
78
|
+
// const config = configUtils.global.getConfig();
|
|
79
|
+
|
|
80
|
+
// const confluenceHost = config.confluence && config.confluence.host;
|
|
81
|
+
// const confluenceProjectName = config.confluence && config.confluence.projectName;
|
|
82
|
+
|
|
83
|
+
// const confluenceConfig = {
|
|
84
|
+
// username: jiraUser,
|
|
85
|
+
// password: jiraPassword,
|
|
86
|
+
// baseUrl: confluenceHost,
|
|
87
|
+
// version: 6 // Confluence major version, optional
|
|
88
|
+
// };
|
|
89
|
+
|
|
90
|
+
// var confluence = new Confluence(confluenceConfig);
|
|
91
|
+
|
|
92
|
+
// return Promise.resolve()
|
|
93
|
+
// .then(() => {
|
|
94
|
+
// return new Promise((resolve, reject) => {
|
|
95
|
+
// confluence.getContentByPageTitle(
|
|
96
|
+
// confluenceProjectName,
|
|
97
|
+
// pageTitle
|
|
98
|
+
// , function (err, response) {
|
|
99
|
+
// if (err) {
|
|
100
|
+
// return reject(err);
|
|
101
|
+
// } else {
|
|
102
|
+
// return resolve(response);
|
|
103
|
+
// }
|
|
104
|
+
// })
|
|
105
|
+
// })
|
|
106
|
+
// })
|
|
107
|
+
// }
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
// const updatePackagesHistoryPageContent = (tableContent) => {
|
|
112
|
+
// const config = configUtils.global.getConfig();
|
|
113
|
+
// const confluencePackagesHistoryPageId = config.confluence && config.confluence.packagesHistoryPageId;
|
|
114
|
+
|
|
115
|
+
// return updatePageContent(confluencePackagesHistoryPageId, tableContent);
|
|
116
|
+
// }
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
// // EXPORTS
|
|
121
|
+
|
|
122
|
+
// module.exports = {
|
|
123
|
+
// getContentByPageTitle,
|
|
124
|
+
// updatePageContent,
|
|
125
|
+
// updatePackagesHistoryPageContent,
|
|
126
|
+
// }
|
package/scripts/utils/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const changelogUtils = require('./changelog-utils');
|
|
4
|
-
const confluenceUtils = require('./confluence-utils');
|
|
4
|
+
// const confluenceUtils = require('./confluence-utils');
|
|
5
5
|
const gitUtils = require('./git-utils');
|
|
6
6
|
const mavenUtils = require('./maven-utils');
|
|
7
7
|
const pipelineUtils = require('./pipeline-utils');
|
|
@@ -19,7 +19,7 @@ const sonarUtils = require('./sonar/sonar-utils');
|
|
|
19
19
|
|
|
20
20
|
module.exports = {
|
|
21
21
|
changelog: changelogUtils,
|
|
22
|
-
confluence: confluenceUtils,
|
|
22
|
+
// confluence: confluenceUtils,
|
|
23
23
|
git: gitUtils,
|
|
24
24
|
maven: mavenUtils,
|
|
25
25
|
pipeline: pipelineUtils,
|
package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// ANGULAR & 3rd PARTIES
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
4
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
6
|
+
import { StoreModule } from '@ngrx/store';
|
|
7
|
+
import { EffectsModule } from '@ngrx/effects';
|
|
8
|
+
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
9
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
10
|
+
|
|
11
|
+
// eUI IMPORTS
|
|
12
|
+
import {
|
|
13
|
+
CoreModule, CoreModuleEffects, translateConfig, EUI_CONFIG_TOKEN,
|
|
14
|
+
} from '@eui/core';
|
|
15
|
+
import { EuiAllModule } from '@eui/components';
|
|
16
|
+
|
|
17
|
+
import { appConfig } from '../config/index';
|
|
18
|
+
import { environment } from '../environments/environment';
|
|
19
|
+
|
|
20
|
+
// APP ROUTES & ROOT COMPONENTS
|
|
21
|
+
import { AppRoutingModule } from '../../app/app-routing.module';
|
|
22
|
+
import { AppComponent } from '../../app/app.component';
|
|
23
|
+
|
|
24
|
+
import { TOKEN, reducerProvider, metaReducers } from './core/reducers/index';
|
|
25
|
+
|
|
26
|
+
// APP ROOT MODULE
|
|
27
|
+
@NgModule({
|
|
28
|
+
imports: [
|
|
29
|
+
BrowserModule,
|
|
30
|
+
BrowserAnimationsModule,
|
|
31
|
+
HttpClientModule,
|
|
32
|
+
StoreModule.forRoot(TOKEN, { metaReducers }),
|
|
33
|
+
StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
|
|
34
|
+
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
35
|
+
TranslateModule.forRoot(translateConfig),
|
|
36
|
+
CoreModule.forRoot(),
|
|
37
|
+
AppRoutingModule,
|
|
38
|
+
EuiAllModule,
|
|
39
|
+
],
|
|
40
|
+
declarations: [
|
|
41
|
+
AppComponent,
|
|
42
|
+
],
|
|
43
|
+
providers: [
|
|
44
|
+
{ provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
|
|
45
|
+
reducerProvider,
|
|
46
|
+
],
|
|
47
|
+
bootstrap: [
|
|
48
|
+
AppComponent,
|
|
49
|
+
],
|
|
50
|
+
})
|
|
51
|
+
export class AppModule {
|
|
52
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ActionReducer, ActionReducerMap, combineReducers, MetaReducer } from '@ngrx/store';
|
|
3
|
+
import * as fromRouter from '@ngrx/router-store';
|
|
4
|
+
import { storeFreeze } from 'ngrx-store-freeze';
|
|
5
|
+
import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
|
|
6
|
+
|
|
7
|
+
export interface AppState extends CoreState {
|
|
8
|
+
router: fromRouter.RouterReducerState<any>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// -----------------
|
|
12
|
+
// ------------ AOT
|
|
13
|
+
export const TOKEN = new InjectionToken<any>('AppReducers');
|
|
14
|
+
|
|
15
|
+
export function getReducers(): ActionReducerMap<AppState, any> {
|
|
16
|
+
return {
|
|
17
|
+
router: fromRouter.routerReducer,
|
|
18
|
+
...coreReducers,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const reducerProvider = [
|
|
23
|
+
{ provide: TOKEN, useFactory: getReducers },
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
// console.log all actions
|
|
27
|
+
export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
|
|
28
|
+
return (state, action) => {
|
|
29
|
+
const result = reducer(state, action);
|
|
30
|
+
console.groupCollapsed(action.type);
|
|
31
|
+
console.log('prev state', state);
|
|
32
|
+
console.log('action', action);
|
|
33
|
+
console.log('next state', result);
|
|
34
|
+
console.groupEnd();
|
|
35
|
+
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
|