create-quasar 1.0.6 → 1.0.9

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.6",
3
+ "version": "1.0.9",
4
4
  "description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
5
5
  "author": {
6
6
  "name": "Razvan Stoenescu",
@@ -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.. } ]
@@ -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.. } ]
@@ -97,7 +97,7 @@ module.exports = {
97
97
  'no-nested-ternary': 'off',
98
98
  'max-classes-per-file': 'off',
99
99
 
100
- 'import/first': 'off'
100
+ 'import/first': 'off',
101
101
  'import/namespace': 'error',
102
102
  'import/default': 'error',
103
103
  'import/export': 'error',