@eui/cli 21.0.0-alpha.24 → 21.0.0-alpha.26
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/bin/eui-cli.js +9 -5
- package/bin/scripts/build-app.js +12 -0
- package/bin/scripts/lint-app.js +22 -0
- package/bin/scripts/serve-app.js +2 -2
- package/lib/app-utils/build.js +176 -0
- package/lib/app-utils/projects.js +41 -0
- package/lib/app-utils/serve.js +78 -0
- package/lib/build.js +0 -28
- package/lib/cli.js +0 -1
- package/lib/skeletons/_angular/base/angular.json +0 -6
- package/lib/skeletons/_angular/base/package.json +2 -2
- package/lib/skeletons/_angular/base-mobile/package.json +1 -1
- package/lib/utils.js +0 -14
- package/package.json +1 -2
- package/lib/skeletons/_angular/base/.euirc.json +0 -8
- package/lib/skeletons/web-symfony/myapp-web/angular.json +0 -169
- package/lib/skeletons/web-symfony/myapp-web/package.json +0 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +0 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +0 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +0 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.scss +0 -0
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +0 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +0 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +0 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +0 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +0 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +0 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +0 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +0 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +0 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +0 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +0 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +0 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/config.yml +0 -0
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +0 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +0 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +0 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +0 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +0 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +0 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +0 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +0 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +0 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +0 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +0 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +0 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +0 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +0 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +0 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/lucky/number.html.twig +0 -1
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +0 -20
package/bin/eui-cli.js
CHANGED
|
@@ -5,14 +5,13 @@ const args = process.argv.slice(2);
|
|
|
5
5
|
|
|
6
6
|
const scriptIndex = args.findIndex(
|
|
7
7
|
(x) =>
|
|
8
|
+
x === '' ||
|
|
9
|
+
x === undefined ||
|
|
8
10
|
x === 'new' ||
|
|
9
11
|
x === 'build-app' ||
|
|
10
12
|
x === 'serve-app' ||
|
|
11
13
|
x === 'lint-app' ||
|
|
12
|
-
x === 'start-symfony' ||
|
|
13
|
-
x === 'generate-translations' ||
|
|
14
14
|
x === 'generate-sprite' ||
|
|
15
|
-
x === 'generate-translations' ||
|
|
16
15
|
x === 'generate-app-metadata' ||
|
|
17
16
|
x === 'help' ||
|
|
18
17
|
x === 'inject-config-app'
|
|
@@ -21,20 +20,25 @@ const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
|
21
20
|
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
22
21
|
|
|
23
22
|
switch (script) {
|
|
23
|
+
case '':
|
|
24
|
+
case undefined:
|
|
24
25
|
case 'new':
|
|
25
26
|
case 'build-app':
|
|
26
27
|
case 'serve-app':
|
|
27
28
|
case 'lint-app':
|
|
28
|
-
case 'start-symfony':
|
|
29
29
|
case 'generate-translations':
|
|
30
30
|
case 'generate-sprite':
|
|
31
31
|
case 'generate-app-metadata':
|
|
32
32
|
case 'help':
|
|
33
33
|
case 'inject-config-app': {
|
|
34
|
+
let genScript = script;
|
|
35
|
+
if (script === '' || script === undefined) {
|
|
36
|
+
genScript = 'new';
|
|
37
|
+
}
|
|
34
38
|
const result = spawn.sync(
|
|
35
39
|
'node',
|
|
36
40
|
nodeArgs
|
|
37
|
-
.concat(require.resolve('./scripts/' +
|
|
41
|
+
.concat(require.resolve('./scripts/' + genScript))
|
|
38
42
|
.concat(args.slice(scriptIndex + 1)),
|
|
39
43
|
{ stdio: 'inherit' }
|
|
40
44
|
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const execSync = childProcess.execSync;
|
|
6
|
+
|
|
7
|
+
const utils = require('../../lib/utils');
|
|
8
|
+
|
|
9
|
+
Promise.resolve()
|
|
10
|
+
.then(() => {
|
|
11
|
+
const prjName = 'app';
|
|
12
|
+
|
|
13
|
+
utils.logTitle(`Linting application : ${prjName}...`);
|
|
14
|
+
|
|
15
|
+
const ng = path.resolve(process.cwd(), '@angular', 'cli', 'bin', 'ng');
|
|
16
|
+
|
|
17
|
+
execSync(`ng lint ${prjName}`);
|
|
18
|
+
})
|
|
19
|
+
.catch((e) => {
|
|
20
|
+
console.error(e);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
});
|
package/bin/scripts/serve-app.js
CHANGED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
// TODO v21 - app prebuild for config injection from eUI tools
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const execSync = childProcess.execSync;
|
|
6
|
+
|
|
7
|
+
const utils = require('../utils');
|
|
8
|
+
|
|
9
|
+
// const execa = require('execa');
|
|
10
|
+
|
|
11
|
+
// const tools = require('../../tools');
|
|
12
|
+
// const mavenUtils = require('../../maven-utils');
|
|
13
|
+
// const configUtils = require('../../../csdr/config/config-utils');
|
|
14
|
+
// const versionUtils = require('../../../csdr/version/version-utils');
|
|
15
|
+
|
|
16
|
+
// const preBuildUtils = require('../../pre-build/pre-build-utils');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
module.exports.run = () => {
|
|
20
|
+
let {
|
|
21
|
+
skipLint,
|
|
22
|
+
skipTest,
|
|
23
|
+
skipCompile,
|
|
24
|
+
configuration,
|
|
25
|
+
baseHref,
|
|
26
|
+
servePath,
|
|
27
|
+
watch,
|
|
28
|
+
dryRun,
|
|
29
|
+
maxSpaceSize,
|
|
30
|
+
statsJson,
|
|
31
|
+
extraWebpackConfig,
|
|
32
|
+
ci,
|
|
33
|
+
deployUrl,
|
|
34
|
+
sourceMap,
|
|
35
|
+
configEnvTarget,
|
|
36
|
+
} = utils.getArgs();
|
|
37
|
+
|
|
38
|
+
const prjName = 'app';
|
|
39
|
+
|
|
40
|
+
utils.logTitle(`Building application : ${prjName}...`);
|
|
41
|
+
|
|
42
|
+
const ng = path.resolve(process.cwd(), '@angular', 'cli', 'bin', 'ng');
|
|
43
|
+
|
|
44
|
+
return Promise.resolve()
|
|
45
|
+
// .then(() => {
|
|
46
|
+
// return preBuildUtils.projects.preBuild(currentProject, envTarget, true, configEnvTarget);
|
|
47
|
+
// })
|
|
48
|
+
|
|
49
|
+
.then(() => {
|
|
50
|
+
if (!skipLint) {
|
|
51
|
+
utils.logInfo(`running ng lint ${prjName}`);
|
|
52
|
+
execSync(`ng lint ${prjName}`);
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
.then(() => {
|
|
57
|
+
if (!skipLint) {
|
|
58
|
+
utils.logSuccess();
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
.then(() => {
|
|
63
|
+
if (!skipLint) {
|
|
64
|
+
utils.logSuccess();
|
|
65
|
+
}
|
|
66
|
+
if (!skipTest) {
|
|
67
|
+
utils.logInfo(`Launching application unit testing...`);
|
|
68
|
+
|
|
69
|
+
let args;
|
|
70
|
+
|
|
71
|
+
if (maxSpaceSize) {
|
|
72
|
+
args = ['--max_old_space_size=8096', ng, 'test', prjName];
|
|
73
|
+
} else {
|
|
74
|
+
args = [ng, 'test', prjName];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (watch) {
|
|
78
|
+
args.push(`--watch=true`);
|
|
79
|
+
} else {
|
|
80
|
+
args.push(`--watch=false`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
args.push('--code-coverage');
|
|
84
|
+
|
|
85
|
+
utils.logInfo(`ng test : watching = ${watch || false}`);
|
|
86
|
+
|
|
87
|
+
utils.logInfo(`running Angular TEST with args: ${args} on :`);
|
|
88
|
+
|
|
89
|
+
if (!dryRun) {
|
|
90
|
+
execSync(`node ${args.join(' ')}`, { cwd: currentProject.paths.angularPath, stdio: 'inherit' });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
.then(() => {
|
|
96
|
+
if (!skipTest) {
|
|
97
|
+
utils.logSuccess();
|
|
98
|
+
}
|
|
99
|
+
utils.logInfo(`Launching application build...`);
|
|
100
|
+
|
|
101
|
+
let args;
|
|
102
|
+
|
|
103
|
+
if (maxSpaceSize) {
|
|
104
|
+
args = ['--max_old_space_size=8096', ng, 'build', prjName, '--aot'];
|
|
105
|
+
} else {
|
|
106
|
+
args = [ng, 'build', prjName, '--aot'];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (statsJson) {
|
|
110
|
+
args.push('--stats-json');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (configuration) {
|
|
114
|
+
args.push(`--configuration=${configuration}`);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (baseHref) {
|
|
118
|
+
args.push(`--base-href=${baseHref}`);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (servePath) {
|
|
122
|
+
args.push(`--serve-path=${servePath}`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (deployUrl) {
|
|
126
|
+
args.push(`--deploy-url=${deployUrl}`);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (ci) {
|
|
130
|
+
args.push('--progress=false');
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (sourceMap) {
|
|
134
|
+
args.push('--source-map');
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
utils.logInfo(`ng build for configuration : ${configuration || 'production'}`);
|
|
138
|
+
|
|
139
|
+
utils.logInfo(`running Angular BUILD with args: ${args}`);
|
|
140
|
+
|
|
141
|
+
if (!dryRun && !skipCompile) {
|
|
142
|
+
execSync(`node ${args.join(' ')}`, { cwd: currentProject.paths.angularPath, stdio: 'inherit' });
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
// .then(() => {
|
|
147
|
+
// const projectVersion = parseInt(configUtils.projects.getProjectEuiVersion(currentProject));
|
|
148
|
+
|
|
149
|
+
// if (currentProject.build && currentProject.build.skipBrowserOutputPath) {
|
|
150
|
+
// if (currentProject.build.esbuild || projectVersion >= 18) {
|
|
151
|
+
// utils.copydir(path.join(currentProject.paths.rootPath, 'dist', 'browser'), path.join(currentProject.paths.rootPath, 'dist'));
|
|
152
|
+
// utils.remove(path.join(currentProject.paths.rootPath, 'dist', 'browser'));
|
|
153
|
+
// }
|
|
154
|
+
// }
|
|
155
|
+
// })
|
|
156
|
+
|
|
157
|
+
// .then(() => {
|
|
158
|
+
// const desti18ncompiledPath = path.join(currentProject.paths.rootPath, 'dist', 'assets', 'i18n-compiled');
|
|
159
|
+
// if (utils.isDirExists(desti18ncompiledPath)) {
|
|
160
|
+
// utils.logTitle('Post-build assets i18n-compiled folder content:');
|
|
161
|
+
// const i18nfiles = utils.getFiles(desti18ncompiledPath);
|
|
162
|
+
// console.log(i18nfiles);
|
|
163
|
+
// }
|
|
164
|
+
|
|
165
|
+
// const mediaAssetsPath = path.join(currentProject.paths.rootPath, 'dist', 'assets', 'media');
|
|
166
|
+
// if (utils.isDirExists(mediaAssetsPath)) {
|
|
167
|
+
// utils.copydirFiles(mediaAssetsPath, path.join(currentProject.paths.rootPath, 'dist', 'media'));
|
|
168
|
+
// }
|
|
169
|
+
// })
|
|
170
|
+
|
|
171
|
+
.catch((e) => {
|
|
172
|
+
throw e;
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// TODO v21 - for openid config injection extracted from eUI tools
|
|
2
|
+
|
|
3
|
+
// 'use strict';
|
|
4
|
+
|
|
5
|
+
// const path = require('path');
|
|
6
|
+
|
|
7
|
+
// const tools = require('../tools');
|
|
8
|
+
|
|
9
|
+
// const injectionUtils = require('./injection/injection-utils');
|
|
10
|
+
// const translationUtils = require('./translations/translation-utils');
|
|
11
|
+
|
|
12
|
+
// module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
13
|
+
// return Promise.resolve()
|
|
14
|
+
// .then(() => {
|
|
15
|
+
// tools.logTitle('PRE-BUILD : preparing the project...');
|
|
16
|
+
// })
|
|
17
|
+
|
|
18
|
+
// // openId files replacement and app config injection
|
|
19
|
+
// .then(() => {
|
|
20
|
+
// return injectionUtils.openid.injectConfig(project, configEnvTarget);
|
|
21
|
+
// })
|
|
22
|
+
|
|
23
|
+
// .catch((e) => {
|
|
24
|
+
// throw e;
|
|
25
|
+
// })
|
|
26
|
+
// };
|
|
27
|
+
|
|
28
|
+
// module.exports.processSvgAssets = (project) => {
|
|
29
|
+
// return Promise.resolve()
|
|
30
|
+
// .then(() => {
|
|
31
|
+
// const svgsInPath = path.join(project.paths.rootPath, 'src', 'assets', 'svg');
|
|
32
|
+
// const svgsSpritePath = path.join(svgsInPath, sprites);
|
|
33
|
+
// const svgsSpriteFile = 'sprite.svg';
|
|
34
|
+
|
|
35
|
+
// return svgUtils.generateSvgsSprite(svgsInPath, svgsSpritePath, svgsSpriteFile);
|
|
36
|
+
// })
|
|
37
|
+
|
|
38
|
+
// .catch((e) => {
|
|
39
|
+
// throw e;
|
|
40
|
+
// });
|
|
41
|
+
// };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// TODO v21 - app prebuild for config injection from eUI tools
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const childProcess = require('child_process');
|
|
5
|
+
const execSync = childProcess.execSync;
|
|
6
|
+
|
|
7
|
+
const utils = require('../utils');
|
|
8
|
+
|
|
9
|
+
module.exports.run = () => {
|
|
10
|
+
|
|
11
|
+
let { configuration, baseHref, servePath, host, proxyConfig, maxSpaceSize, port, disableHostCheck, open, debug, configEnvTarget, noLiveReload } = utils.getArgs();
|
|
12
|
+
|
|
13
|
+
const ng = path.resolve(process.cwd(), 'node_modules', '@angular', 'cli', 'bin', 'ng');
|
|
14
|
+
|
|
15
|
+
const prjName = 'app';
|
|
16
|
+
|
|
17
|
+
return Promise.resolve()
|
|
18
|
+
// .then(() => {
|
|
19
|
+
// return preBuildUtils.projects.preBuild(prj, configuration, false, configEnvTarget);
|
|
20
|
+
// })
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// trigger ng serve with parameters provided
|
|
24
|
+
.then(() => {
|
|
25
|
+
utils.logTitle(`Serving application : ${prjName}...`);
|
|
26
|
+
|
|
27
|
+
let args;
|
|
28
|
+
|
|
29
|
+
if (maxSpaceSize) {
|
|
30
|
+
args = ['--max_old_space_size=8192', ng, 'serve', prjName];
|
|
31
|
+
} else {
|
|
32
|
+
args = [ng, 'serve', prjName];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (configuration) {
|
|
36
|
+
args.push(`--configuration=${configuration}`);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (proxyConfig) {
|
|
40
|
+
args.push(`--proxy-config=${proxyConfig}`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (baseHref) {
|
|
44
|
+
args.push(`--base-href=${baseHref}`);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (servePath) {
|
|
48
|
+
args.push(`--serve-path=${servePath}`);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (host) {
|
|
52
|
+
args.push(`--host=${host}`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (port) {
|
|
56
|
+
args.push(`--port=${port}`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (disableHostCheck) {
|
|
60
|
+
args.push(`--disable-host-check`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (!(open === 'false')) {
|
|
64
|
+
args.push('--open=true');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (noLiveReload) {
|
|
68
|
+
args.push('--live-reload=false');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
utils.logInfo(`ng serve with args ${args}`);
|
|
72
|
+
|
|
73
|
+
return execSync(`node ${args.join(' ')}`, { cwd: process.cwd(), stdio: 'inherit' });
|
|
74
|
+
})
|
|
75
|
+
.catch((e) => {
|
|
76
|
+
throw e;
|
|
77
|
+
});
|
|
78
|
+
}
|
package/lib/build.js
CHANGED
|
@@ -28,8 +28,6 @@ const build = (cliConfig, targetPath) => {
|
|
|
28
28
|
if (!utils.isDirEmpty(target)) {
|
|
29
29
|
utils.logError(`Target directory : ${target} is not empty, execute eUI CLI in a blank directory... quitting`);
|
|
30
30
|
throw new Error('DIR_NOT_EMPTY');
|
|
31
|
-
} else {
|
|
32
|
-
return utils.rimraf(`${target}/**/*`);
|
|
33
31
|
}
|
|
34
32
|
})
|
|
35
33
|
|
|
@@ -83,32 +81,6 @@ const build = (cliConfig, targetPath) => {
|
|
|
83
81
|
throw e;
|
|
84
82
|
})
|
|
85
83
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// BUILD symfony
|
|
89
|
-
if (appType === 'web-symfony') {
|
|
90
|
-
|
|
91
|
-
return Promise.resolve()
|
|
92
|
-
.then(() => {
|
|
93
|
-
console.log('--cloning eui php starter repository')
|
|
94
|
-
execSync(`git clone https://${config.webPhpStarterRepo} ${targetPath}`);
|
|
95
|
-
})
|
|
96
|
-
.then(() => {
|
|
97
|
-
console.log('--building web-symfony');
|
|
98
|
-
const angularPath = utils.getAngularPath(targetPath, appName, appType, artifactId);
|
|
99
|
-
return copyAngular(angularPath, cliConfig, false);
|
|
100
|
-
})
|
|
101
|
-
.then(() => {
|
|
102
|
-
execSync(`npm run init`, { cwd: path.join(targetPath, 'server'), stdio: "inherit" });
|
|
103
|
-
})
|
|
104
|
-
.catch((e) => {
|
|
105
|
-
throw e;
|
|
106
|
-
})
|
|
107
|
-
.finally(() => {
|
|
108
|
-
return utils.rimraf(`${targetPath}/.git`);
|
|
109
|
-
})
|
|
110
|
-
}
|
|
111
|
-
|
|
112
84
|
})
|
|
113
85
|
.catch((e) => {
|
|
114
86
|
console.log(e);
|
package/lib/cli.js
CHANGED
|
@@ -35,7 +35,6 @@ module.exports.start = (options) => {
|
|
|
35
35
|
{ name: 'eUI Angular - Mobile Ionic', value: 'mobile' },
|
|
36
36
|
{ name: 'eUI Angular + Spring Boot web module - JDK + Maven required !!!', value: 'web-spring-boot' },
|
|
37
37
|
{ name: 'eUI Angular + Maven web module (JEE Spring maven web module) - JDK + Maven required !!!', value: 'web-maven' },
|
|
38
|
-
{ name: 'eUI Angular + PHP/Symfony starter - PHP7 and composer required !!!', value: 'web-symfony' },
|
|
39
38
|
],
|
|
40
39
|
default: 0,
|
|
41
40
|
validate: function (value) {
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"styles": [
|
|
47
47
|
"node_modules/@eui/styles/dist/eui.css",
|
|
48
48
|
"node_modules/@eui/styles/dist/eui-utilities.css",
|
|
49
|
-
"node_modules/@eui/styles/dist/eui-theme-eui-legacy.css",
|
|
50
49
|
"src/styles.scss"
|
|
51
50
|
]
|
|
52
51
|
},
|
|
@@ -143,11 +142,6 @@
|
|
|
143
142
|
"glob": "**/*",
|
|
144
143
|
"input": "node_modules/@eui/core/assets/",
|
|
145
144
|
"output": "./assets"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"glob": "**/*",
|
|
149
|
-
"input": "node_modules/@eui/styles/dist/assets/",
|
|
150
|
-
"output": "./assets"
|
|
151
145
|
}
|
|
152
146
|
]
|
|
153
147
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eui-angular-app",
|
|
3
|
-
"version": "21.0.0-alpha.
|
|
3
|
+
"version": "21.0.0-alpha.26",
|
|
4
4
|
"license": "EUPL-1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"ng": "ng",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"private": true,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@eui/deps-base": "21.0.0-alpha.
|
|
24
|
+
"@eui/deps-base": "21.0.0-alpha.26"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"npm-run-all": "4.1.5",
|
package/lib/utils.js
CHANGED
|
@@ -169,20 +169,6 @@ module.exports.move = (from, to) => {
|
|
|
169
169
|
fse.moveSync(from, to, );
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
module.exports.rimraf = (inputPath) => {
|
|
173
|
-
this.logInfo(`Removing ${inputPath}...`);
|
|
174
|
-
let exec = path.resolve(process.cwd(), 'node_modules', 'rimraf', 'bin.js');
|
|
175
|
-
if (!isFileExists(exec)) {
|
|
176
|
-
// special location when used within eUI CLI
|
|
177
|
-
exec = path.resolve(__dirname, '../../../..', 'rimraf', 'bin.js');
|
|
178
|
-
}
|
|
179
|
-
try {
|
|
180
|
-
execSync(`node ${exec} ${inputPath}`, { cwd: process.cwd(), stdio: 'inherit' });
|
|
181
|
-
} catch(e) {
|
|
182
|
-
console.log(e);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
172
|
module.exports.remove = (path) => {
|
|
187
173
|
fse.removeSync(path);
|
|
188
174
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eui/cli",
|
|
3
|
-
"version": "21.0.0-alpha.
|
|
3
|
+
"version": "21.0.0-alpha.26",
|
|
4
4
|
"tag": "next",
|
|
5
5
|
"license": "EUPL-1.1",
|
|
6
6
|
"description": "eUI CLI app generator & tools",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"inquirer": "6.5.0",
|
|
18
18
|
"yargs": "17.7.2",
|
|
19
19
|
"fs-extra": "9.0.0",
|
|
20
|
-
"rimraf": "3.0.2",
|
|
21
20
|
"glob": "7.2.3",
|
|
22
21
|
"cross-spawn": "7.0.6"
|
|
23
22
|
},
|