Skip to content

Commit 7fb0863

Browse files
committed
chore: regenerate all templates with new feature flags
1 parent 0ba90b1 commit 7fb0863

File tree

282 files changed

+2353
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+2353
-79
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import minimist from 'minimist'
88
import prompts from 'prompts'
99
import { red, green, bold } from 'kolorist'
1010

11-
import templateList from './utils/templateList.js'
1211
import renderTemplate from './utils/renderTemplate.js'
1312
import {
1413
postOrderDirectoryTraverse,
@@ -45,6 +44,7 @@ function emptyDir(dir) {
4544
async function init() {
4645
const cwd = process.cwd()
4746
// possible options:
47+
// --default
4848
// --typescript / --ts
4949
// --jsx
5050
// --router / --vue-router
@@ -62,7 +62,7 @@ async function init() {
6262

6363
// if any of the feature flags is set, we would skip the feature prompts
6464
// use `??` instead of `||` once we drop Node.js 12 support
65-
const isFeatureFlagsUsed = typeof (argv.ts || argv.jsx || argv.router || argv.vuex || argv.tests) === 'boolean'
65+
const isFeatureFlagsUsed = typeof (argv.default || argv.ts || argv.jsx || argv.router || argv.vuex || argv.tests) === 'boolean'
6666

6767
let targetDir = argv._[0]
6868
const defaultProjectName = !targetDir ? 'vue-project' : targetDir

playground/default-ts-with-tests/README.md

Whitespace-only changes.

playground/default-ts-with-tests/src/vite-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/default-ts/README.md

Whitespace-only changes.

playground/default-ts/src/vite-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/default-with-tests/README.md

Whitespace-only changes.

playground/default-with-tests/src/vite-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/default/README.md

Lines changed: 21 additions & 0 deletions

playground/default/jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
1717
"skipLibCheck": true
1818
},
19-
"include": ["vite.config.*", "src/**/*", "src/**/*.vue"],
19+
"include": ["vite.config.*", "vite-env.d.ts", "src/**/*", "src/**/*.vue"],
2020
"exclude": ["src/**/__tests__/**"]
2121
}

playground/default/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
},
1313
"devDependencies": {
1414
"@vitejs/plugin-vue": "^1.2.5",
15-
"@vitejs/plugin-vue-jsx": "^1.1.6",
1615
"@vue/compiler-sfc": "^3.1.5",
1716
"vite": "^2.4.3"
1817
}

0 commit comments

Comments
 (0)