nuxt-starter-varia icon indicating copy to clipboard operation
nuxt-starter-varia copied to clipboard

Separating boilerplate from starter

Open moltar opened this issue 6 years ago • 2 comments
trafficstars

I think having examples of how the TypeScript can be used (components and store) is great. But the problem comes when instantiating a new project - need to remove all the defaults.

I think it would be better to have a completely empty starter and then a separate repo with the example implementation.

What do you think?

moltar avatar Dec 31 '18 02:12 moltar

I'm hesitant to do this. I personally like to see something working as I start a new project; almost solidifying best practices of the template. Do you find that it's a lot to remove when starting a new project?

daveberning avatar Jan 08 '19 21:01 daveberning

I'm hesitant to do this. I personally like to see something working as I start a new project;

Yup same.

Do you find that it's a lot to remove when starting a new project?

Yes, I do. There are many files scattered around in not obvious places. E.g. style sheets in assets, components, pages. Need to remember them all.

Maybe a solution could be to have a manifest of these files, and then have a removal npm script that uses rimraf (cross platform) to remove the files?

E.g. something like:

npm run remove-boilerplate

moltar avatar Jan 09 '19 02:01 moltar