Skip to content

Commit 0662139

Browse files
committed
feat(generator-liferay-js): remove @liferay/cli spam
I'm reverting this commit since generator-liferay-js is used from blade and showing this message to those users can be misleading. In the future we should aim at showing this message only to pure JS users but, until we decide how to do it, I'm reverting this to avoid confusion.
1 parent 98aef03 commit 0662139

File tree

3 files changed

+1
-43
lines changed

3 files changed

+1
-43
lines changed

maintenance/projects/js-toolkit/packages/generator-liferay-js/src/adapt/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
getSDKVersion,
2424
promptWithConfig,
2525
validateLiferayDir,
26-
warnAboutLiferayCli,
2726
} from '../utils';
2827
import ProjectAnalyzer from '../utils/ProjectAnalyzer';
2928
import LanguagePropertiesModifier from '../utils/modifier/features/localization/Language.properties';
@@ -125,8 +124,6 @@ export default class extends Generator {
125124
initializing() {
126125
this.sourceRoot(path.join(__dirname, 'templates'));
127126

128-
warnAboutLiferayCli();
129-
130127
print(msg.welcome);
131128

132129
switch (project.probe.type) {

maintenance/projects/js-toolkit/packages/generator-liferay-js/src/app/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import path from 'path';
88
import {argv} from 'yargs';
99
import Generator from 'yeoman-generator';
1010

11-
import {promptWithConfig, warnAboutLiferayCli} from '../utils';
11+
import {promptWithConfig} from '../utils';
1212

1313
// If --which parameter is given show path to generator and exit
1414

@@ -26,8 +26,6 @@ export default class extends Generator {
2626
* Standard Yeoman initialization function
2727
*/
2828
async initializing() {
29-
warnAboutLiferayCli();
30-
3129
const targets = this._findTargets();
3230

3331
const answers = await promptWithConfig(this, 'app', [

maintenance/projects/js-toolkit/packages/generator-liferay-js/src/utils/index.js

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
import fs from 'fs';
7-
import {print, warn} from 'liferay-npm-build-tools-common/lib/format';
87
import path from 'path';
98

109
import pkgJson from '../../package.json';
@@ -257,39 +256,3 @@ export function validateLiferayDir(input) {
257256

258257
return true;
259258
}
260-
261-
/**
262-
* Encourage users to switch to @liferay/cli
263-
*/
264-
export function warnAboutLiferayCli() {
265-
print(
266-
'',
267-
warn`
268-
WARNING !!!!
269-
270-
The Liferay JavaScript Toolkit Yeoman generator has been discontinued
271-
and replaced by {@liferay/cli}.
272-
273-
You can still use this generator, but we encourage you to switch to
274-
{@liferay/cli} as soon as possible so that you can continue using the
275-
Liferay JavaScript Toolkit normally.
276-
277-
Please check the documentation in the following URL for more information
278-
on how to use {@liferay/cli}:
279-
280-
· https://bit.ly/liferay-cli-manual
281-
282-
If you have any project already generated with this Yeoman generator,
283-
consider upgrading it to {@liferay/cli} as explained in the following
284-
documentation:
285-
286-
· https://bit.ly/liferay-cli-manual-upgrade
287-
288-
Finally, if you have any problem with this, don't hesitate to file an
289-
issue in our GitHub repository:
290-
291-
· https://github.com/liferay/liferay-frontend-projects/issues
292-
293-
`
294-
);
295-
}

0 commit comments

Comments
 (0)