Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
constructor(args, options) {
super(args, options);

this.option('yarn', {
type: Boolean,
required: false,
default: false,
desc: 'Use yarn instead of npm for packages installation',

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (9)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (10)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (11)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (14)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (12)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (8)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (19)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (18)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (23)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (15)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (22)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (16)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (17)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (13)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (21)

Delete `,`

Check failure on line 21 in generators/app/index.js

View workflow job for this annotation

GitHub Actions / build (20)

Delete `,`
});

this.option('travis', {
type: Boolean,
required: false,
Expand Down Expand Up @@ -382,7 +389,11 @@
}

installing() {
this.npmInstall();
if (this.yarn) {
this.yarnInstall();
} else {
this.npmInstall();
}
}

end() {
Expand Down
Loading