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

Add option for bare install #112

Closed
danvega opened this issue Jun 14, 2022 · 9 comments · Fixed by #636
Closed

Add option for bare install #112

danvega opened this issue Jun 14, 2022 · 9 comments · Fixed by #636
Labels
enhancement New feature or request

Comments

@danvega
Copy link

danvega commented Jun 14, 2022

The Vue CLI provided an option -b to exclude the scaffolded components. It would be nice if there was a way to do this with create-vue either through a flag or as one of the options.

@jd-solanki
Copy link
Contributor

jd-solanki commented Sep 5, 2022

💯

I regularly create projects using create-vue for reproductions or bug checking and everytime I have to:

  • Remove all files from assets dir
  • Remove all files from components dir
  • Remove CSS import from main.js file
  • Update App.vue to just simple p tag usage.

Yes, It will be a time saver if we have something like that so we don't have to remove all these.

@ribomation
Copy link

Yes! Count me in. 👍🏻
I was scanning the sources to find out if there was a way to generate a clean project, just to find out it's currently not.

@sheptikhinv
Copy link

Agree with you, my friends

@haoqunjiang haoqunjiang added the enhancement New feature or request label Nov 12, 2024
@Severino
Copy link

I was also happy to read that --bare is supported ... but in vue-cli and was not migrated to this project.

@cexbrayat
Copy link
Member

This could definitely be an improvement.

If someone wants to open a PR, we would gladly review and merge it 👍

@runyasak
Copy link

runyasak commented Dec 9, 2024

Hi @cexbrayat.
This is a very interesting feature, and I've been looking forward to it for a long time.
I would like to contribute to this issue. Could you please assign it to me?
I will work on implementing this feature as soon as possible.

Here is the progress branch from my forked repository:
https://github.com/runyasak/create-vue/tree/feat/bare-config

haoqunjiang added a commit to haoqunjiang/create-vue that referenced this issue Dec 12, 2024
Closes vuejs#112
Closes vuejs#300

The minimal template is a cut-down version of the default template;
therefore, the `--minimal` flag is mutually exclusive with all other flags.
I chose not to include it in the prompts because it's a very specific
use case, and it's not a good idea to clutter the CLI with too many
options that are not commonly used.

I didn't design it as an add-on because the logic would be too complex,
and the use case would be even more niche.
@runyasak
Copy link

@cexbrayat I've created a PR to add the bare configuration for this issue.
Please check at my PR: #637

@haoqunjiang If my PR overlaps with your work, please let me know, and I will make the necessary changes or updates.

@haoqunjiang
Copy link
Member

@runyasak thanks for your effort!
But first, I think we need some consensus on the design of this feature. For instance, shall we show it in the prompts or should it be CLI-only? How "bare" is bare enough for each feature combination?
Let's discuss at #636

@runyasak
Copy link

@haoqunjiang It’s an honor to discuss this issue with all of you.
I will share some of my ideas.

haoqunjiang added a commit that referenced this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
8 participants