10000 feat: new `--bare` CLI option to generate a barebone project without example code by haoqunjiang · Pull Request #636 · vuejs/create-vue · GitHub
[go: up one dir, main page]

Skip to content

feat: new --bare CLI option to generate a barebone project without example code #636

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

Merged
merged 13 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: clarify that --bare & --force are *supplementary* options …
…to the feature flags
  • Loading branch information
haoqunjiang committed Dec 19, 2024
commit e7603a4a98188583d20e9a8fcc0365deb60ce522
5 changes: 3 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ async function init() {
// --playwright
// --eslint
// --eslint-with-prettier (only support prettier through eslint for simplicity)
// --force (for force overwriting)
// --bare (for a barebone template)
// in addition to the feature flags, you can also pass the following options:
// --bare (for a barebone template without example code)
// --force (for force overwriting without confirming)

const args = process.argv.slice(2)

Expand Down
1 change: 1 addition & 0 deletions scripts/snapshot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ flagCombinations = flagCombinations
denylist.every((flag) => combination.includes(flag)),
),
)
// `--bare` is a supplementary flag and should not be used alone
.filter((combination) => !(combination.length === 1 && combination[0] === 'bare'))

const bin = path.posix.relative('../playground/', '../outfile.cjs')
Expand Down
Loading
0