create-vue 2.0.3 → 2.0.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.
package/outfile.cjs CHANGED
@@ -5260,7 +5260,7 @@ var import_path3 = __toModule(require("path"));
5260
5260
  var import_minimist = __toModule(require_minimist());
5261
5261
  var import_prompts = __toModule(require_prompts3());
5262
5262
 
5263
- // node_modules/.pnpm/kolorist@1.5.0/node_modules/kolorist/dist/esm/index.mjs
5263
+ // node_modules/.pnpm/kolorist@1.5.1/node_modules/kolorist/dist/esm/index.mjs
5264
5264
  var enabled = true;
5265
5265
  var globalVar = typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
5266
5266
  var supportLevel = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "2.0.3",
3
+ "version": "2.0.6",
4
4
  "description": "An easy way to start a Vue project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,15 +13,6 @@
13
13
  "engines": {
14
14
  "node": "^14.13.1 || >=16.0.0"
15
15
  },
16
- "scripts": {
17
- "prepare": "husky install",
18
- "format": "prettier --write .",
19
- "build": "esbuild --bundle index.js --format=cjs --platform=node --outfile=outfile.cjs",
20
- "snapshot": "node snapshot.js",
21
- "pretest": "run-s build snapshot",
22
- "test": "node test.js",
23
- "prepublishOnly": "run-s build snapshot"
24
- },
25
16
  "repository": {
26
17
  "type": "git",
27
18
  "url": "git+https://github.com/vuejs/create-vue.git"
@@ -36,16 +27,23 @@
36
27
  "devDependencies": {
37
28
  "esbuild": "^0.13.15",
38
29
  "husky": "^7.0.4",
39
- "kolorist": "^1.5.0",
40
- "lint-staged": "^12.1.2",
30
+ "kolorist": "^1.5.1",
31
+ "lint-staged": "^12.3.4",
41
32
  "minimist": "^1.2.5",
42
33
  "npm-run-all": "^4.1.5",
43
- "prettier": "^2.4.1",
34
+ "prettier": "^2.5.1",
44
35
  "prompts": "^2.4.2"
45
36
  },
46
37
  "lint-staged": {
47
38
  "*.{js,ts,vue,json}": [
48
39
  "prettier --write"
49
40
  ]
41
+ },
42
+ "scripts": {
43
+ "format": "prettier --write .",
44
+ "build": "esbuild --bundle index.js --format=cjs --platform=node --outfile=outfile.cjs",
45
+ "snapshot": "node snapshot.js",
46
+ "pretest": "run-s build snapshot",
47
+ "test": "node test.js"
50
48
  }
51
- }
49
+ }
@@ -5,15 +5,16 @@
5
5
  "preview": "vite preview --port 5050"
6
6
  },
7
7
  "dependencies": {
8
- "@vue/composition-api": "^1.4.0",
8
+ "@vue/composition-api": "^1.4.6",
9
9
  "vue": "^2.6.14"
10
10
  },
11
11
  "devDependencies": {
12
- "@vitejs/plugin-legacy": "^1.6.3",
13
- "@vue/runtime-dom": "^3.2.22",
14
- "unplugin-vue2-script-setup": "^0.7.1",
15
- "vite": "^2.6.14",
16
- "vite-plugin-vue2": "^1.9.0",
12
+ "@vitejs/plugin-legacy": "^1.7.1",
13
+ "@vue/runtime-dom": "^3.2.31",
14
+ "unplugin-vue2-script-setup": "^0.9.3",
15
+ "vite": "^2.8.4",
16
+ "vite-plugin-vue2": "^1.9.3",
17
+ "vue-template-babel-compiler": "^1.2.0",
17
18
  "vue-template-compiler": "^2.6.14"
18
19
  }
19
20
  }
@@ -3,13 +3,18 @@ import { fileURLToPath } from 'url'
3
3
  import { defineConfig } from 'vite'
4
4
  import legacy from '@vitejs/plugin-legacy'
5
5
  import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6
+ // @ts-ignore
7
+ import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
6
8
  import scriptSetup from 'unplugin-vue2-script-setup/vite'
7
9
 
8
10
  // https://vitejs.dev/config/
9
11
  export default defineConfig({
10
12
  plugins: [
11
13
  vue2({
12
- jsx: true
14
+ jsx: true,
15
+ vueTemplateOptions: {
16
+ compiler: vueTemplateBabelCompiler
17
+ }
13
18
  }),
14
19
  scriptSetup(),
15
20
  legacy({
@@ -6,9 +6,9 @@
6
6
  "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
7
7
  },
8
8
  "devDependencies": {
9
- "@cypress/vite-dev-server": "^2.2.1",
9
+ "@cypress/vite-dev-server": "^2.2.2",
10
10
  "@cypress/vue": "^2.2.4",
11
- "cypress": "^9.1.0",
11
+ "cypress": "^9.5.0",
12
12
  "start-server-and-test": "^1.14.0"
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "pinia": "^2.0.4"
3
+ "pinia": "^2.0.11"
4
4
  }
5
5
  }
@@ -1,16 +1,2 @@
1
1
  /// <reference types="vite/client" />
2
-
3
- declare module '*.vue' {
4
- import Vue from 'vue'
5
- export default Vue
6
- }
7
-
8
- declare global {
9
- namespace JSX {
10
- interface Element extends VNode {}
11
- interface ElementClass extends Vue {}
12
- interface IntrinsicElements {
13
- [elem: string]: any
14
- }
15
- }
16
- }
2
+ /// <reference types="unplugin-vue2-script-setup/shims" />
@@ -4,8 +4,8 @@
4
4
  "typecheck": "vue-tsc --noEmit"
5
5
  },
6
6
  "devDependencies": {
7
- "@types/node": "^16.11.10",
8
- "typescript": "~4.5.2",
9
- "vue-tsc": "^0.29.6"
7
+ "@types/node": "^16.11.25",
8
+ "typescript": "~4.7.3",
9
+ "vue-tsc": "^0.37.3"
10
10
  }
11
11
  }
@@ -18,7 +18,7 @@
18
18
  "skipLibCheck": true
19
19
  },
20
20
  "vueCompilerOptions": {
21
- "experimentalCompatMode": 2
21
+ "target": 2
22
22
  },
23
23
  "include": ["vite.config.*", "env.d.ts", "src/**/*", "src/**/*.vue"]
24
24
  }
@@ -1,12 +1,12 @@
1
1
  import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
3
3
 
4
4
  import App from './App.vue'
5
5
 
6
6
  Vue.use(VueCompositionAPI)
7
7
 
8
- const app = new Vue({
9
- render: (h) => h(App)
8
+ const app = createApp({
9
+ render: () => h(App)
10
10
  })
11
11
 
12
- app.$mount('#app')
12
+ app.mount('#app')
@@ -1,15 +1,15 @@
1
1
  import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
3
3
  import { createPinia, PiniaVuePlugin } from 'pinia'
4
4
 
5
5
  import App from './App.vue'
6
6
 
7
7
  Vue.use(VueCompositionAPI)
8
- Vue.use(PiniaVuePlugin)
9
8
 
10
- const app = new Vue({
9
+ const app = createApp({
11
10
  pinia: createPinia(),
12
- render: (h) => h(App)
11
+ render: () => h(App)
13
12
  })
13
+ app.use(PiniaVuePlugin)
14
14
 
15
- app.$mount('#app')
15
+ app.mount('#app')
@@ -1,14 +1,14 @@
1
1
  import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
3
3
 
4
4
  import App from './App.vue'
5
5
  import router from './router'
6
6
 
7
7
  Vue.use(VueCompositionAPI)
8
8
 
9
- const app = new Vue({
9
+ const app = createApp({
10
10
  router,
11
- render: (h) => h(App)
11
+ render: () => h(App)
12
12
  })
13
13
 
14
- app.$mount('#app')
14
+ app.mount('#app')
@@ -1,17 +1,17 @@
1
1
  import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
3
3
  import { createPinia, PiniaVuePlugin } from 'pinia'
4
4
 
5
5
  import App from './App.vue'
6
6
  import router from './router'
7
7
 
8
8
  Vue.use(VueCompositionAPI)
9
- Vue.use(PiniaVuePlugin)
10
9
 
11
- const app = new Vue({
10
+ const app = createApp({
12
11
  router,
13
12
  pinia: createPinia(),
14
- render: (h) => h(App)
13
+ render: () => h(App)
15
14
  })
15
+ app.use(PiniaVuePlugin)
16
16
 
17
- app.$mount('#app')
17
+ app.mount('#app')