@eui/tools 4.15.12 → 4.15.13
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 +9 -0
- package/bin/eui-scripts.js +4 -2
- package/bin/scripts/version.js +12 -0
- package/package.json +1 -1
- package/scripts/csdr/init/resources/yarn-eui13.lock +15857 -0
- package/scripts/csdr/release/app/release-app.js +3 -0
- package/scripts/csdr/release/package/release-package.js +4 -0
- package/scripts/utils/build/package/angular.js +4 -4
- package/scripts/utils/build/package/build-package-utils.js +5 -1
- package/scripts/utils/build/package/styles.js +0 -6
- package/scripts/utils/tools.js +17 -1
|
@@ -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');
|
|
@@ -223,7 +223,11 @@ module.exports.buildSubEntry = (pkg, subEntry) => {
|
|
|
223
223
|
})
|
|
224
224
|
|
|
225
225
|
.then(() => {
|
|
226
|
+
const ng = path.resolve(process.cwd(), 'node_modules', '@angular', 'cli', 'bin', 'ng');
|
|
226
227
|
|
|
228
|
+
let args = ['--max_old_space_size=8096', ng, 'build', subEntry];
|
|
229
|
+
|
|
230
|
+
return execa('node', args, { cwd: pkg.paths.pkgRootDirectory, stdio: 'inherit' });
|
|
227
231
|
})
|
|
228
232
|
|
|
229
233
|
.then(() => {
|
|
@@ -127,12 +127,6 @@ const compileSassFileDartSass = (folder, filename) => {
|
|
|
127
127
|
|
|
128
128
|
plugins.push(autoprefixer({
|
|
129
129
|
grid: 'no-autoplace',
|
|
130
|
-
// browsers: [
|
|
131
|
-
// "> 0.5% in alt-eu",
|
|
132
|
-
// "last 2 version",
|
|
133
|
-
// "not dead",
|
|
134
|
-
// "not op_mini all"
|
|
135
|
-
// ]
|
|
136
130
|
}));
|
|
137
131
|
plugins.push(cssnano({ safe: true }));
|
|
138
132
|
|
package/scripts/utils/tools.js
CHANGED
|
@@ -439,6 +439,10 @@ const logWarning = (msg) => {
|
|
|
439
439
|
log(msg, 4);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
+
const logAccent = (msg) => {
|
|
443
|
+
log(msg, 5);
|
|
444
|
+
}
|
|
445
|
+
|
|
442
446
|
const log = (msg, type) => {
|
|
443
447
|
var prefix;
|
|
444
448
|
if (type === 0 || !type) {
|
|
@@ -461,6 +465,10 @@ const log = (msg, type) => {
|
|
|
461
465
|
prefix = figures.pointer + figures.pointer + figures.pointer + figures.pointer + figures.pointer + figures.pointer;
|
|
462
466
|
console.info(chalk.keyword('orange')(prefix + ' ' + msg + '\n'));
|
|
463
467
|
}
|
|
468
|
+
if (type === 5) {
|
|
469
|
+
prefix = figures.star + figures.star + figures.star;
|
|
470
|
+
console.info(chalk.keyword('yellow')(prefix + ' ' + msg + '\n'));
|
|
471
|
+
}
|
|
464
472
|
}
|
|
465
473
|
|
|
466
474
|
|
|
@@ -636,7 +644,14 @@ function splitNpmPkg(npmPkg) {
|
|
|
636
644
|
return { scope: scope, name: name };
|
|
637
645
|
}
|
|
638
646
|
|
|
639
|
-
|
|
647
|
+
function logVersion() {
|
|
648
|
+
try {
|
|
649
|
+
const nmToolsPackageJsonPath = path.join(process.cwd(), 'node_modules', '@eui', 'tools', 'package.json');
|
|
650
|
+
const jsonContent = getJsonFileContent(nmToolsPackageJsonPath);
|
|
651
|
+
const version = jsonContent.version;
|
|
652
|
+
logAccent(`eUI TOOLS version : ${version}`)
|
|
653
|
+
} catch(e) {}
|
|
654
|
+
}
|
|
640
655
|
|
|
641
656
|
module.exports.relativeCopy = relativeCopy;
|
|
642
657
|
module.exports.relativeCopyEol = relativeCopyEol;
|
|
@@ -688,3 +703,4 @@ module.exports.getFilesGlob = getFilesGlob;
|
|
|
688
703
|
module.exports.logBigTitle = logBigTitle;
|
|
689
704
|
module.exports.removeFilesExtension = removeFilesExtension;
|
|
690
705
|
module.exports.splitNpmPkg = splitNpmPkg;
|
|
706
|
+
module.exports.logVersion = logVersion;
|