@eui/cli 18.0.0-rc.23 → 18.0.0-rc.24

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.
@@ -1 +1 @@
1
- 18.0.0-rc.23
1
+ 18.0.0-rc.24
package/lib/cli.js CHANGED
@@ -11,6 +11,7 @@ const defaultConfig = {
11
11
  artifactId: 'myapp',
12
12
  useYarn: true,
13
13
  npmInstall: true,
14
+ appStart: true,
14
15
  };
15
16
 
16
17
  module.exports.start = (options) => {
package/lib/generators.js CHANGED
@@ -1,8 +1,12 @@
1
1
  const chalk = require('chalk');
2
+ const childProcess = require('child_process');
3
+ const execSync = childProcess.execSync;
2
4
  const cli = require('./cli');
3
5
  const build = require('./build');
4
6
  const postBuild = require('./post-build');
5
7
  const install = require('./install');
8
+ const path = require('path');
9
+ const utils = require('./utils');
6
10
 
7
11
  const appGenerate = (options) => {
8
12
  if (options.inputConfig) {
@@ -54,6 +58,21 @@ const appGenerate = (options) => {
54
58
  });
55
59
  })
56
60
 
61
+ // starting app
62
+ .then(() => {
63
+ if (!cliConfig.appStart) {
64
+ return;
65
+ }
66
+ console.log('');
67
+ console.log('');
68
+ console.log('*****************************************************************');
69
+ console.log(chalk.cyan(' Starting eUI app... browser will open soon on localhost:4200'));
70
+ console.log('*****************************************************************');
71
+
72
+ const wd = path.resolve(utils.getAngularPath(options.targetPath, cliConfig.appName, cliConfig.appType, cliConfig.artifactId));
73
+ return execSync("npm start", { cwd: wd, stdio: "inherit" });
74
+ })
75
+
57
76
  .catch((e) => {
58
77
  console.error(e);
59
78
  process.exitCode = 1;
package/lib/install.js CHANGED
@@ -37,15 +37,7 @@ const install = (cliConfig, targetPath) => {
37
37
  .then(() => {
38
38
  return execSync("yarn", { cwd: wd, stdio: "inherit" });
39
39
  })
40
- .then(() => {
41
- console.log('');
42
- console.log('');
43
- console.log('*****************************************************************');
44
- console.log(chalk.cyan(' Starting eUI app... browser will open soon on localhost:4200'));
45
- console.log('*****************************************************************');
46
40
 
47
- return execSync("npm start", { cwd: wd, stdio: "inherit" });
48
- })
49
41
  .catch((e) => {
50
42
  throw e;
51
43
  })
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "18.0.0-rc.23",
3
+ "version": "18.0.0-rc.24",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "private": true,
22
22
  "dependencies": {
23
- "@eui/deps-base": "18.0.0-rc.23"
23
+ "@eui/deps-base": "18.0.0-rc.24"
24
24
  },
25
25
  "resolutions": {
26
26
  "js-yaml": ">=3.13.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "18.0.0-rc.23",
3
+ "version": "18.0.0-rc.24",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "18.0.0-rc.23",
3
+ "version": "18.0.0-rc.24",
4
4
  "license": "EUPL-1.1",
5
5
  "description": "eUI JEE Symfony app scripts",
6
6
  "scripts": {
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "private": true,
20
20
  "dependencies": {
21
- "@eui/deps-base": "18.0.0-rc.23"
21
+ "@eui/deps-base": "18.0.0-rc.24"
22
22
  }
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/cli",
3
- "version": "18.0.0-rc.23",
3
+ "version": "18.0.0-rc.24",
4
4
  "tag": "next",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI CLI app generator",