@eui/tools 5.3.11 → 5.3.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 +31 -0
- package/package.json +1 -1
- package/scripts/csdr/init/resources/14.x/yarn.lock +13999 -0
- package/scripts/utils/build/package/nodeJs.js +13 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui13/tsconfig.app.json +5 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui14/tsconfig.app.json +5 -0
- package/scripts/utils/pre-build/projects.js +15 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// GLOBAL
|
|
4
|
+
const path = require('path');
|
|
4
5
|
|
|
5
6
|
// LOCAL
|
|
6
7
|
const tools = require('../../tools');
|
|
@@ -27,6 +28,18 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
27
28
|
return testUtils.runMocha(pkg);
|
|
28
29
|
}
|
|
29
30
|
})
|
|
31
|
+
.then(() => {
|
|
32
|
+
return tools.copydir(
|
|
33
|
+
path.join(pkg.paths.pkgRootDirectory, 'assets'),
|
|
34
|
+
path.join(pkg.paths.pkgBuild, 'assets')
|
|
35
|
+
);
|
|
36
|
+
})
|
|
37
|
+
.then(() => {
|
|
38
|
+
console.log('assets copy succeeded');
|
|
39
|
+
tools.copy(path.join(pkg.paths.pkgRootDirectory, 'package.json'), path.join(pkg.paths.pkgBuild, 'package.json'));
|
|
40
|
+
tools.copy(path.join(pkg.paths.pkgRootDirectory, 'README.md'), path.join(pkg.paths.pkgBuild, 'README.md'));
|
|
41
|
+
tools.copy(path.join(pkg.paths.pkgRootDirectory, 'LICENSE'), path.join(pkg.paths.pkgBuild, 'LICENSE'));
|
|
42
|
+
})
|
|
30
43
|
|
|
31
44
|
.then(() => {
|
|
32
45
|
return notificationUtils.package.sendPackageMessage({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const fs = require('fs');
|
|
3
4
|
const path = require('path');
|
|
4
5
|
|
|
5
6
|
const tools = require('../tools');
|
|
@@ -106,11 +107,20 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
|
106
107
|
);
|
|
107
108
|
tools.logSuccess();
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
let { configuration } = tools.getArgs();
|
|
111
|
+
if (configuration !== 'proxy-mock') {
|
|
112
|
+
tools.logInfo(`Copying ${nodeModulesPath}/@eui/base/assets/openid/openid-login.js to ${rootTargetFolder}/assets/openid-login.js`);
|
|
113
|
+
tools.copy(
|
|
114
|
+
path.join(nodeModulesPath, '/@eui/base/assets/openid/openid-login.js'),
|
|
115
|
+
path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login.js`)
|
|
116
|
+
);
|
|
117
|
+
} else {
|
|
118
|
+
tools.logInfo(`Clearing ${rootTargetFolder}/assets/openid-login.js`);
|
|
119
|
+
fs.writeFileSync(
|
|
120
|
+
path.join(project.paths.angularPath, `${rootTargetFolder}/assets/openid-login.js`),
|
|
121
|
+
''
|
|
122
|
+
);
|
|
123
|
+
}
|
|
114
124
|
tools.logSuccess();
|
|
115
125
|
}
|
|
116
126
|
|