create-quasar 1.0.5 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-quasar",
3
- "version": "1.0.5",
3
+ "version": "1.0.8",
4
4
  "description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
5
5
  "author": {
6
6
  "name": "Razvan Stoenescu",
@@ -6,8 +6,9 @@
6
6
  "author": "<%= author %>",
7
7
  "private": true,
8
8
  "scripts": {
9
- <% if (preset.lint) { %>"lint": "eslint --ext .js,.vue ./",<% } %>
10
- <% if (preset.lint && lintConfig === 'prettier') { %>"format": "prettier --write \"**/*.{js,vue<% if (css !== 'sass') { %>,<%= css %><% } %>,html,md,json}\" --ignore-path .gitignore",<% } %>
9
+ <% if (preset.lint) { %>"lint": "eslint --ext .js,.vue ./",
10
+ <% if (lintConfig === 'prettier') { %>"format": "prettier --write \"**/*.{js,vue<% if (css !== 'sass') { %>,<%= css %><% } %>,html,md,json}\" --ignore-path .gitignore",<% } %>
11
+ <% } %>
11
12
  "test": "echo \"No test specified\" && exit 0"
12
13
  },
13
14
  "dependencies": {
@@ -11,6 +11,7 @@
11
11
  <% if (preset.lint && lintConfig === 'airbnb') { %>/* eslint func-names: 0 */
12
12
  /* eslint global-require: 0 */<% } %>
13
13
  const { configure } = require('quasar/wrappers');
14
+ <% if (preset.i18n) { %>const path = require('path');<% } %>
14
15
 
15
16
  module.exports = configure(function (/* ctx */) {
16
17
  return {
@@ -80,7 +81,13 @@ module.exports = configure(function (/* ctx */) {
80
81
  // viteVuePluginOptions: {},
81
82
 
82
83
  <% if (preset.i18n) { %>vitePlugins: [
83
- [ '@intlify/vite-plugin-vue-i18n', { /* options */ } ]
84
+ ['@intlify/vite-plugin-vue-i18n', {
85
+ // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
86
+ // compositionOnly: false,
87
+
88
+ // you need to set i18n resource including paths !
89
+ include: path.resolve(__dirname, './src/i18n/**')
90
+ }]
84
91
  ]<% } else { %>
85
92
  // vitePlugins: [
86
93
  // [ 'package-name', { ..options.. } ]
@@ -6,8 +6,9 @@
6
6
  "author": "<%= author %>",
7
7
  "private": true,
8
8
  "scripts": {
9
- <% if (preset.lint) { %>"lint": "eslint --ext .js,.vue ./",<% } %>
10
- <% if (preset.lint && lintConfig === 'prettier') { %>"format": "prettier --write \"**/*.{js,vue<% if (css !== 'sass') { %>,<%= css %><% } %>,html,md,json}\" --ignore-path .gitignore",<% } %>
9
+ <% if (preset.lint) { %>"lint": "eslint --ext .js,.vue ./",
10
+ <% if (lintConfig === 'prettier') { %>"format": "prettier --write \"**/*.{js,vue<% if (css !== 'sass') { %>,<%= css %><% } %>,html,md,json}\" --ignore-path .gitignore",<% } %>
11
+ <% } %>
11
12
  "test": "echo \"No test specified\" && exit 0"
12
13
  },
13
14
  "dependencies": {
@@ -6,8 +6,9 @@
6
6
  "author": "<%= author %>",
7
7
  "private": true,
8
8
  "scripts": {
9
- <% if (preset.lint) { %>"lint": "eslint --ext .js,.ts,.vue ./",<% } %>
9
+ <% if (preset.lint) { %>"lint": "eslint --ext .js,.ts,.vue ./",
10
10
  <% if (lintConfig === 'prettier') { %>"format": "prettier --write \"**/*.{js,ts,vue,<% if (css !== 'sass') { %><%= css %><% } %>,html,md,json}\" --ignore-path .gitignore",<% } %>
11
+ <% } %>
11
12
  "test": "echo \"No test specified\" && exit 0"
12
13
  },
13
14
  "dependencies": {
@@ -12,6 +12,7 @@
12
12
  /* eslint global-require: 0 */
13
13
  <% } %>
14
14
  const { configure } = require('quasar/wrappers');
15
+ <% if (preset.i18n) { %>const path = require('path');<% } %>
15
16
 
16
17
  module.exports = configure(function (/* ctx */) {
17
18
  return {
@@ -81,7 +82,13 @@ module.exports = configure(function (/* ctx */) {
81
82
  // viteVuePluginOptions: {},
82
83
 
83
84
  <% if (preset.i18n) { %>vitePlugins: [
84
- [ '@intlify/vite-plugin-vue-i18n', { /* options */ } ]
85
+ ['@intlify/vite-plugin-vue-i18n', {
86
+ // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
87
+ // compositionOnly: false,
88
+
89
+ // you need to set i18n resource including paths !
90
+ include: path.resolve(__dirname, './src/i18n/**')
91
+ }]
85
92
  ]<% } else { %>
86
93
  // vitePlugins: [
87
94
  // [ 'package-name', { ..options.. } ]
@@ -6,8 +6,9 @@
6
6
  "author": "<%= author %>",
7
7
  "private": true,
8
8
  "scripts": {
9
- <% if (preset.lint) { %>"lint": "eslint --ext .js,.ts,.vue ./",<% } %>
9
+ <% if (preset.lint) { %>"lint": "eslint --ext .js,.ts,.vue ./",
10
10
  <% if (lintConfig === 'prettier') { %>"format": "prettier --write \"**/*.{js,ts,vue,<% if (css !== 'sass') { %><%= css %><% } %>,html,md,json}\" --ignore-path .gitignore",<% } %>
11
+ <% } %>
11
12
  "test": "echo \"No test specified\" && exit 0"
12
13
  },
13
14
  "dependencies": {