File tree 3 files changed +1
-43
lines changed
maintenance/projects/js-toolkit/packages/generator-liferay-js/src 3 files changed +1
-43
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import {
23
23
getSDKVersion ,
24
24
promptWithConfig ,
25
25
validateLiferayDir ,
26
- warnAboutLiferayCli ,
27
26
} from '../utils' ;
28
27
import ProjectAnalyzer from '../utils/ProjectAnalyzer' ;
29
28
import LanguagePropertiesModifier from '../utils/modifier/features/localization/Language.properties' ;
@@ -125,8 +124,6 @@ export default class extends Generator {
125
124
initializing ( ) {
126
125
this . sourceRoot ( path . join ( __dirname , 'templates' ) ) ;
127
126
128
- warnAboutLiferayCli ( ) ;
129
-
130
127
print ( msg . welcome ) ;
131
128
132
129
switch ( project . probe . type ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import path from 'path';
8
8
import { argv } from 'yargs' ;
9
9
import Generator from 'yeoman-generator' ;
10
10
11
- import { promptWithConfig , warnAboutLiferayCli } from '../utils' ;
11
+ import { promptWithConfig } from '../utils' ;
12
12
13
13
// If --which parameter is given show path to generator and exit
14
14
@@ -26,8 +26,6 @@ export default class extends Generator {
26
26
* Standard Yeoman initialization function
27
27
*/
28
28
async initializing ( ) {
29
- warnAboutLiferayCli ( ) ;
30
-
31
29
const targets = this . _findTargets ( ) ;
32
30
33
31
const answers = await promptWithConfig ( this , 'app' , [
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import fs from 'fs' ;
7
- import { print , warn } from 'liferay-npm-build-tools-common/lib/format' ;
8
7
import path from 'path' ;
9
8
10
9
import pkgJson from '../../package.json' ;
@@ -257,39 +256,3 @@ export function validateLiferayDir(input) {
257
256
258
257
return true ;
259
258
}
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
- }
You can’t perform that action at this time.
0 commit comments