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

Project does not create an actual scaffold #300

Open
christophfriedrich opened this issue Jun 21, 2023 · 1 comment
Open

Project does not create an actual scaffold #300

christophfriedrich opened this issue Jun 21, 2023 · 1 comment

Comments

@christophfriedrich
Copy link

How is this officially "The recommended way to start a Vite-powered Vue project"?! It does create such a project, but before I can start coding my own actual project, I have to delete a ton of garbage: Components I don't need, CSS I don't need, logos and icons I don't need...

In its current state, this project creates a good example for beginners that shows off a few of Vue's features and gives links for further reading. But it massively fails at just providing an empty template from which to start one's own project. I was expecting a scaffold, which means the minimal setup to get it to run and say something like "Hello World", nothing more.

Like @ZackPlauche said it in #186: "I want the same thing, but minus all of the starter components and css." I opened a new issue because

  1. over the past 8 months that issue didn't get any attention (except, notably, five thumbs-up reactions of people thinking the same) and
  2. he titled his issue a "question", whereas I see mine more as a bug report, in the sense of "this software does not do what it is supposed to do, please fix".
@remiconnesson
Copy link

remiconnesson commented Jun 22, 2023

"The recommended way to start a Vite-powered Vue project"?

What matter is to set up the tooling like typescript, vitest , e2e test, vite etc...

I have to delete a ton of garbage: Components I don't need, CSS I don't need, logos and icons I don't need...

Imho your making it sound harder than it actually is, you can quite easily rm -rf src...

Then, replace public/favicon.ico and modify index.html to set the title etc..

and then add those files and you get yourself a starter

src/App.vue

<template>
<h1>Hello World</h1>
</template>

src/main.ts

import { createApp } from 'vue'
import App from './App.vue'

createApp(App).mount('#app')

If you want to make this faster you can create a script that does this in one command,

(the most complicated part will be the regex to change the title I guess)?

you could also have a variation to add the boilerplate for the router / for pinia

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

No branches or pull requests

2 participants