Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command-line only usage? passing 'Options' on cmd line for no-interaction install ? #567

Open
ghost opened this issue Sep 5, 2016 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Sep 5, 2016

I've installed the yeoman gulp webapp generator

When I exec

yo gulp-webapp --skip-cache --skip-welcome-message --babel

it brings up the 'ui'

? What more would you like? (Press <space> to select)
❯◉ Sass
 ◉ Bootstrap
 ◉ Modernizr

I want to install none of those. I can of course un-select them in the 'ui'.

How can I pass that decision on the command line? So I can do a minimal gulp-webapp scaffold install?

@ghost ghost closed this as completed Sep 11, 2016
@silvenon
Copy link
Member

silvenon commented Oct 2, 2016

This is a good idea, I'd like the generator to have a flag like this.

@yuvashrikarunakaran
Copy link

To perform a minimal install of the gulp-webapp generator without the optional features like Sass, Bootstrap, or Modernizr using the command line (without the interactive UI), you can pass --no- flags for each of the options you don't want to include.

Here’s how you can run it without those additional features:

bash
Copy code
yo gulp-webapp --skip-cache --skip-welcome-message --babel --no-sass --no-bootstrap --no-modernizr
Explanation:
--skip-cache: Skips Yeoman's cache for the generator.
--skip-welcome-message: Skips the welcome message from Yeoman.
--babel: Ensures that Babel is included for JavaScript ES6+ transpiling.
--no-sass: Disables Sass, so only plain CSS is used.
--no-bootstrap: Skips Bootstrap inclusion.
--no-modernizr: Skips Modernizr inclusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants