create-vuetify 0.0.6-beta.5 → 0.0.6-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import P, { stdin, stdout } from "node:process";
3
- import f from "node:readline";
3
+ import ot from "node:readline";
4
4
  import { WriteStream } from "node:tty";
5
5
 
6
6
  //#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
@@ -86,50 +86,50 @@ function requirePicocolors() {
86
86
  return result + string.substring(cursor);
87
87
  };
88
88
  let createColors = (enabled = isColorSupported) => {
89
- let f$1 = enabled ? formatter : () => String;
89
+ let f = enabled ? formatter : () => String;
90
90
  return {
91
91
  isColorSupported: enabled,
92
- reset: f$1("\x1B[0m", "\x1B[0m"),
93
- bold: f$1("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
94
- dim: f$1("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
95
- italic: f$1("\x1B[3m", "\x1B[23m"),
96
- underline: f$1("\x1B[4m", "\x1B[24m"),
97
- inverse: f$1("\x1B[7m", "\x1B[27m"),
98
- hidden: f$1("\x1B[8m", "\x1B[28m"),
99
- strikethrough: f$1("\x1B[9m", "\x1B[29m"),
100
- black: f$1("\x1B[30m", "\x1B[39m"),
101
- red: f$1("\x1B[31m", "\x1B[39m"),
102
- green: f$1("\x1B[32m", "\x1B[39m"),
103
- yellow: f$1("\x1B[33m", "\x1B[39m"),
104
- blue: f$1("\x1B[34m", "\x1B[39m"),
105
- magenta: f$1("\x1B[35m", "\x1B[39m"),
106
- cyan: f$1("\x1B[36m", "\x1B[39m"),
107
- white: f$1("\x1B[37m", "\x1B[39m"),
108
- gray: f$1("\x1B[90m", "\x1B[39m"),
109
- bgBlack: f$1("\x1B[40m", "\x1B[49m"),
110
- bgRed: f$1("\x1B[41m", "\x1B[49m"),
111
- bgGreen: f$1("\x1B[42m", "\x1B[49m"),
112
- bgYellow: f$1("\x1B[43m", "\x1B[49m"),
113
- bgBlue: f$1("\x1B[44m", "\x1B[49m"),
114
- bgMagenta: f$1("\x1B[45m", "\x1B[49m"),
115
- bgCyan: f$1("\x1B[46m", "\x1B[49m"),
116
- bgWhite: f$1("\x1B[47m", "\x1B[49m"),
117
- blackBright: f$1("\x1B[90m", "\x1B[39m"),
118
- redBright: f$1("\x1B[91m", "\x1B[39m"),
119
- greenBright: f$1("\x1B[92m", "\x1B[39m"),
120
- yellowBright: f$1("\x1B[93m", "\x1B[39m"),
121
- blueBright: f$1("\x1B[94m", "\x1B[39m"),
122
- magentaBright: f$1("\x1B[95m", "\x1B[39m"),
123
- cyanBright: f$1("\x1B[96m", "\x1B[39m"),
124
- whiteBright: f$1("\x1B[97m", "\x1B[39m"),
125
- bgBlackBright: f$1("\x1B[100m", "\x1B[49m"),
126
- bgRedBright: f$1("\x1B[101m", "\x1B[49m"),
127
- bgGreenBright: f$1("\x1B[102m", "\x1B[49m"),
128
- bgYellowBright: f$1("\x1B[103m", "\x1B[49m"),
129
- bgBlueBright: f$1("\x1B[104m", "\x1B[49m"),
130
- bgMagentaBright: f$1("\x1B[105m", "\x1B[49m"),
131
- bgCyanBright: f$1("\x1B[106m", "\x1B[49m"),
132
- bgWhiteBright: f$1("\x1B[107m", "\x1B[49m")
92
+ reset: f("\x1B[0m", "\x1B[0m"),
93
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
94
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
95
+ italic: f("\x1B[3m", "\x1B[23m"),
96
+ underline: f("\x1B[4m", "\x1B[24m"),
97
+ inverse: f("\x1B[7m", "\x1B[27m"),
98
+ hidden: f("\x1B[8m", "\x1B[28m"),
99
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
100
+ black: f("\x1B[30m", "\x1B[39m"),
101
+ red: f("\x1B[31m", "\x1B[39m"),
102
+ green: f("\x1B[32m", "\x1B[39m"),
103
+ yellow: f("\x1B[33m", "\x1B[39m"),
104
+ blue: f("\x1B[34m", "\x1B[39m"),
105
+ magenta: f("\x1B[35m", "\x1B[39m"),
106
+ cyan: f("\x1B[36m", "\x1B[39m"),
107
+ white: f("\x1B[37m", "\x1B[39m"),
108
+ gray: f("\x1B[90m", "\x1B[39m"),
109
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
110
+ bgRed: f("\x1B[41m", "\x1B[49m"),
111
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
112
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
113
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
114
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
115
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
116
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
117
+ blackBright: f("\x1B[90m", "\x1B[39m"),
118
+ redBright: f("\x1B[91m", "\x1B[39m"),
119
+ greenBright: f("\x1B[92m", "\x1B[39m"),
120
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
121
+ blueBright: f("\x1B[94m", "\x1B[39m"),
122
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
123
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
124
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
125
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
126
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
127
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
128
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
129
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
130
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
131
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
132
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
133
133
  };
134
134
  };
135
135
  picocolors.exports = createColors();
@@ -482,13 +482,13 @@ var x = class {
482
482
  const e$1 = new WriteStream(0);
483
483
  e$1._write = (s, i, D) => {
484
484
  this._track && (this.value = this.rl?.line.replace(/\t/g, ""), this._cursor = this.rl?.cursor ?? 0, this.emit("value", this.value)), D();
485
- }, this.input.pipe(e$1), this.rl = f.createInterface({
485
+ }, this.input.pipe(e$1), this.rl = ot.createInterface({
486
486
  input: this.input,
487
487
  output: e$1,
488
488
  tabSize: 2,
489
489
  prompt: "",
490
490
  escapeCodeTimeout: 50
491
- }), f.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
491
+ }), ot.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), d$1(this.input, true), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
492
492
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u$1(this.value);
493
493
  }), this.once("cancel", () => {
494
494
  this.output.write(srcExports.cursor.show), this.output.off("resize", this.render), d$1(this.input, false), u$1(S);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuetify",
3
- "version": "0.0.6-beta.5",
3
+ "version": "0.0.6-beta.6",
4
4
  "description": "Create a new Vuetify project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,7 +19,7 @@
19
19
  "pathe": "^2.0.3",
20
20
  "tsdown": "^0.16.6",
21
21
  "vitest": "^4.0.16",
22
- "@vuetify/cli-shared": "0.0.6-beta.5"
22
+ "@vuetify/cli-shared": "0.0.6-beta.6"
23
23
  },
24
24
  "main": "./dist/index.mjs",
25
25
  "module": "./dist/index.mjs",
@@ -2,9 +2,9 @@ import type { PackageJson } from 'pkg-types'
2
2
  import type { Feature } from './types'
3
3
  import { eslint } from './eslint'
4
4
  import { i18n } from './i18n'
5
+ import { mcp } from './mcp'
5
6
  import { pinia } from './pinia'
6
7
  import { fileRouter, router } from './router'
7
- import { ruler } from './ruler'
8
8
  import { vuetifyNuxtModule } from './vuetify-nuxt-module'
9
9
 
10
10
  export const features: Record<string, Feature> = {
@@ -13,7 +13,7 @@ export const features: Record<string, Feature> = {
13
13
  pinia,
14
14
  i18n,
15
15
  eslint,
16
- ruler,
16
+ mcp,
17
17
  'vuetify-nuxt-module': vuetifyNuxtModule,
18
18
  }
19
19
 
@@ -3,15 +3,15 @@ import { mkdir, writeFile } from 'node:fs/promises'
3
3
  import { join } from 'node:path'
4
4
  import rootPkg from './dependencies/package.json' with { type: 'json' }
5
5
 
6
- export const ruler: Feature = {
7
- name: 'ruler',
6
+ export const mcp: Feature = {
7
+ name: 'mcp',
8
8
  apply: async ({ cwd, pkg }) => {
9
9
  pkg.devDependencies = pkg.devDependencies || {}
10
10
  pkg.devDependencies['@intellectronica/ruler'] = rootPkg.dependencies['@intellectronica/ruler']
11
11
 
12
12
  pkg.scripts = pkg.scripts || {}
13
- pkg.scripts['ruler'] = 'ruler apply'
14
- pkg.scripts['ruler:revert'] = 'ruler revert'
13
+ pkg.scripts['mcp'] = 'ruler apply'
14
+ pkg.scripts['mcp:revert'] = 'ruler revert'
15
15
 
16
16
  const rulerDir = join(cwd, '.ruler')
17
17
  await mkdir(rulerDir, { recursive: true })
package/src/prompts.ts CHANGED
@@ -117,11 +117,11 @@ export async function prompt (args: Partial<ProjectOptions>, cwd = process.cwd()
117
117
  message: i18n.t('prompts.features.select', { hint: dim('↑/↓ to navigate, space to select, a to toggle all, enter to confirm') }),
118
118
  options: [
119
119
  { label: i18n.t('prompts.features.eslint.label'), value: 'eslint', hint: i18n.t('prompts.features.eslint.hint') },
120
- { label: i18n.t('prompts.features.ruler.label'), value: 'ruler', hint: i18n.t('prompts.features.ruler.hint') },
120
+ { label: i18n.t('prompts.features.mcp.label'), value: 'mcp', hint: i18n.t('prompts.features.mcp.hint') },
121
121
  { label: i18n.t('prompts.features.pinia.label'), value: 'pinia', hint: i18n.t('prompts.features.pinia.hint') },
122
122
  { label: i18n.t('prompts.features.i18n.label'), value: 'i18n', hint: i18n.t('prompts.features.i18n.hint') },
123
123
  ],
124
- initialValues: ['eslint', 'ruler'],
124
+ initialValues: ['eslint', 'mcp'],
125
125
  required: false,
126
126
  })
127
127
  : multiselect({
@@ -129,11 +129,11 @@ export async function prompt (args: Partial<ProjectOptions>, cwd = process.cwd()
129
129
  options: [
130
130
  { label: i18n.t('prompts.features.eslint.label'), value: 'eslint', hint: i18n.t('prompts.features.eslint.hint') },
131
131
  { label: i18n.t('prompts.features.vuetify_nuxt_module.label'), value: 'vuetify-nuxt-module', hint: i18n.t('prompts.features.vuetify_nuxt_module.hint') },
132
- { label: i18n.t('prompts.features.ruler.label'), value: 'ruler', hint: i18n.t('prompts.features.ruler.hint') },
132
+ { label: i18n.t('prompts.features.mcp.label'), value: 'mcp', hint: i18n.t('prompts.features.mcp.hint') },
133
133
  { label: i18n.t('prompts.features.pinia.label'), value: 'pinia', hint: i18n.t('prompts.features.pinia.hint') },
134
134
  { label: i18n.t('prompts.features.i18n.label'), value: 'i18n', hint: i18n.t('prompts.features.i18n.hint') },
135
135
  ],
136
- initialValues: ['eslint', 'vuetify-nuxt-module', 'ruler'],
136
+ initialValues: ['eslint', 'vuetify-nuxt-module', 'mcp'],
137
137
  required: false,
138
138
  })
139
139
  },