@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.
@@ -78,6 +78,9 @@ module.exports.run = () => {
78
78
 
79
79
  // Starting the release process
80
80
  return Promise.resolve()
81
+ .then(() => {
82
+ utils.tools.logVersion();
83
+ })
81
84
 
82
85
  // *****************************************************************
83
86
  // RELEASE PACKAGE START
@@ -36,6 +36,10 @@ module.exports.run = () => {
36
36
 
37
37
 
38
38
  return Promise.resolve()
39
+ .then(() => {
40
+ utils.tools.logVersion();
41
+ })
42
+
39
43
 
40
44
  // RELEASE PACKAGE START
41
45
  .then(() => {
@@ -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 === '9.x') {
69
- tsLintPath = path.join(pkg.paths.pkgRootDirectory, 'tslint-eui9.json');
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
 
@@ -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;