brandonkramer / wordpress-webpack-workflow

Common tools to facilitate front-end development and testing for WordPress (plugins & themes). Includes WebPack 5, BrowserSync, PostCSS/Autoprefixer, PurgeCSS, BabelJS, Eslint, Stylelint, SCSS processor, WP-Pot, an organized file structure and more.
102 stars 22 forks source link

Install without prompt #5

Open tcmulder opened 2 years ago

tcmulder commented 2 years ago

I'm creating a bash script that automatically sets up WordPress, plugins, theme, etc. just the way I want them to start new projects. I'd like to run the npx wp-strap webpack "projectName:Your plugin name"... command through this script and have it execute without waiting for me to respond "Y" to the "Looks good?" question, so that the entire script goes from start to finish without waiting on me for input half way through, and I have wp-strap's build tools installed at the end of that process.

Is there a way to automatically answer yes or skip the prompt altogether so I can programmatically run the install without user input?

Thanks!