create-quasar 1.5.6 → 1.6.0
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/.eslintrc.cjs +10 -2
- package/index.js +88 -92
- package/package.json +10 -9
- package/templates/app/index.js +2 -3
- package/templates/app/quasar-v1/index.js +2 -3
- package/templates/app/quasar-v1/js/BASE/src/router/routes.js +0 -1
- package/templates/app/quasar-v1/js/index.js +8 -9
- package/templates/app/quasar-v1/js/lint/_.eslintrc.js +6 -4
- package/templates/app/quasar-v1/ts/index.js +8 -9
- package/templates/app/quasar-v1/ts/lint/_.eslintrc.js +1 -0
- package/templates/app/quasar-v2/index.js +2 -3
- package/templates/app/quasar-v2/js-vite/BASE/src/router/routes.js +0 -1
- package/templates/app/quasar-v2/js-vite/index.js +9 -10
- package/templates/app/quasar-v2/js-vite/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/js-vite-beta/BASE/src/router/routes.js +0 -1
- package/templates/app/quasar-v2/js-vite-beta/index.js +9 -10
- package/templates/app/quasar-v2/js-vite-beta/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/js-webpack/BASE/src/router/routes.js +0 -1
- package/templates/app/quasar-v2/js-webpack/index.js +9 -10
- package/templates/app/quasar-v2/js-webpack/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/js-webpack-beta/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/js-webpack-beta/BASE/src/router/routes.js +0 -1
- package/templates/app/quasar-v2/js-webpack-beta/index.js +9 -10
- package/templates/app/quasar-v2/js-webpack-beta/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/ts-vite/index.js +10 -11
- package/templates/app/quasar-v2/ts-vite/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/ts-vite-beta/index.js +10 -11
- package/templates/app/quasar-v2/ts-vite-beta/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/ts-webpack/index.js +10 -11
- package/templates/app/quasar-v2/ts-webpack/lint/_.eslintrc.cjs +1 -0
- package/templates/app/quasar-v2/ts-webpack-beta/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-webpack-beta/index.js +10 -11
- package/templates/app/quasar-v2/ts-webpack-beta/lint/_.eslintrc.cjs +1 -0
- package/templates/app-extension/ae-v1/index.js +7 -8
- package/templates/app-extension/index.js +2 -2
- package/templates/ui-kit/index.js +8 -9
- package/templates/ui-kit/quasar-v1/BASE/ui/build/script.app-ext.js +1 -1
- package/templates/ui-kit/quasar-v1/BASE/ui/build/script.clean.js +1 -1
- package/templates/ui-kit/quasar-v1/BASE/ui/dev/quasar.conf.js +1 -1
- package/templates/ui-kit/quasar-v1/index.js +9 -10
- package/templates/ui-kit/quasar-v2/index.js +9 -10
- package/utils/index.js +67 -46
- package/utils/logger.js +66 -43
- /package/templates/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v1/js/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v1/ts/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/js-vite/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/js-vite-beta/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/js-webpack/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/js-webpack-beta/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/ts-vite/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/ts-vite-beta/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/ts-webpack/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app/quasar-v2/ts-webpack-beta/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/app-extension/ae-v1/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/ui-kit/{.eslintrc.js → .eslintrc.cjs} +0 -0
- /package/templates/ui-kit/quasar-v2/{.eslintrc.js → .eslintrc.cjs} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
{
|
|
5
4
|
type: 'select',
|
|
@@ -38,7 +37,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
39
|
{
|
|
41
|
-
type: (_, { preset }) => preset.lint ? 'select' : null,
|
|
40
|
+
type: (_, { preset }) => (preset.lint ? 'select' : null),
|
|
42
41
|
name: 'lintConfig',
|
|
43
42
|
message: 'Pick an ESLint preset:',
|
|
44
43
|
choices: [
|
|
@@ -50,13 +49,13 @@ module.exports = async function ({ scope, utils }) {
|
|
|
50
49
|
])
|
|
51
50
|
|
|
52
51
|
utils.createTargetDir(scope)
|
|
53
|
-
utils.renderTemplate(utils.join(
|
|
54
|
-
utils.renderTemplate(utils.join(
|
|
52
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
53
|
+
utils.renderTemplate(utils.join(import.meta.url, scope.css), scope)
|
|
55
54
|
|
|
56
|
-
if (scope.preset.axios) utils.renderTemplate(utils.join(
|
|
57
|
-
if (scope.preset.i18n) utils.renderTemplate(utils.join(
|
|
58
|
-
if (scope.preset.lint) utils.renderTemplate(utils.join(
|
|
55
|
+
if (scope.preset.axios) utils.renderTemplate(utils.join(import.meta.url, 'axios'), scope)
|
|
56
|
+
if (scope.preset.i18n) utils.renderTemplate(utils.join(import.meta.url, 'i18n'), scope)
|
|
57
|
+
if (scope.preset.lint) utils.renderTemplate(utils.join(import.meta.url, 'lint'), scope)
|
|
59
58
|
|
|
60
|
-
if (scope.preset.pinia) utils.renderTemplate(utils.join(
|
|
61
|
-
else if (scope.preset.vuex) utils.renderTemplate(utils.join(
|
|
59
|
+
if (scope.preset.pinia) utils.renderTemplate(utils.join(import.meta.url, 'pinia'), scope)
|
|
60
|
+
else if (scope.preset.vuex) utils.renderTemplate(utils.join(import.meta.url, 'vuex'), scope)
|
|
62
61
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
{
|
|
5
4
|
type: 'select',
|
|
@@ -50,7 +49,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
|
-
type: (_, { preset }) => preset.lint ? 'select' : null,
|
|
52
|
+
type: (_, { preset }) => (preset.lint ? 'select' : null),
|
|
54
53
|
name: 'lintConfig',
|
|
55
54
|
message: 'Pick an ESLint preset:',
|
|
56
55
|
choices: [
|
|
@@ -62,18 +61,18 @@ module.exports = async function ({ scope, utils }) {
|
|
|
62
61
|
])
|
|
63
62
|
|
|
64
63
|
utils.createTargetDir(scope)
|
|
65
|
-
utils.renderTemplate(utils.join(
|
|
66
|
-
utils.renderTemplate(utils.join(
|
|
64
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
65
|
+
utils.renderTemplate(utils.join(import.meta.url, scope.css), scope)
|
|
67
66
|
|
|
68
|
-
if (scope.preset.axios) utils.renderTemplate(utils.join(
|
|
69
|
-
if (scope.preset.i18n) utils.renderTemplate(utils.join(
|
|
67
|
+
if (scope.preset.axios) utils.renderTemplate(utils.join(import.meta.url, 'axios'), scope)
|
|
68
|
+
if (scope.preset.i18n) utils.renderTemplate(utils.join(import.meta.url, 'i18n'), scope)
|
|
70
69
|
if (scope.preset.lint) {
|
|
71
|
-
utils.renderTemplate(utils.join(
|
|
70
|
+
utils.renderTemplate(utils.join(import.meta.url, 'lint'), scope)
|
|
72
71
|
if (scope.lintConfig === 'prettier') {
|
|
73
|
-
utils.renderTemplate(utils.join(
|
|
72
|
+
utils.renderTemplate(utils.join(import.meta.url, 'prettier'), scope)
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
if (scope.preset.pinia) utils.renderTemplate(utils.join(
|
|
78
|
-
else if (scope.preset.vuex) utils.renderTemplate(utils.join(
|
|
76
|
+
if (scope.preset.pinia) utils.renderTemplate(utils.join(import.meta.url, 'pinia'), scope)
|
|
77
|
+
else if (scope.preset.vuex) utils.renderTemplate(utils.join(import.meta.url, 'vuex'), scope)
|
|
79
78
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
{
|
|
5
4
|
type: 'select',
|
|
@@ -50,7 +49,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
|
-
type: (_, { preset }) => preset.lint ? 'select' : null,
|
|
52
|
+
type: (_, { preset }) => (preset.lint ? 'select' : null),
|
|
54
53
|
name: 'lintConfig',
|
|
55
54
|
message: 'Pick an ESLint preset:',
|
|
56
55
|
choices: [
|
|
@@ -62,18 +61,18 @@ module.exports = async function ({ scope, utils }) {
|
|
|
62
61
|
])
|
|
63
62
|
|
|
64
63
|
utils.createTargetDir(scope)
|
|
65
|
-
utils.renderTemplate(utils.join(
|
|
66
|
-
utils.renderTemplate(utils.join(
|
|
64
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
65
|
+
utils.renderTemplate(utils.join(import.meta.url, scope.css), scope)
|
|
67
66
|
|
|
68
|
-
if (scope.preset.axios) utils.renderTemplate(utils.join(
|
|
69
|
-
if (scope.preset.i18n) utils.renderTemplate(utils.join(
|
|
67
|
+
if (scope.preset.axios) utils.renderTemplate(utils.join(import.meta.url, 'axios'), scope)
|
|
68
|
+
if (scope.preset.i18n) utils.renderTemplate(utils.join(import.meta.url, 'i18n'), scope)
|
|
70
69
|
if (scope.preset.lint) {
|
|
71
|
-
utils.renderTemplate(utils.join(
|
|
70
|
+
utils.renderTemplate(utils.join(import.meta.url, 'lint'), scope)
|
|
72
71
|
if (scope.lintConfig === 'prettier') {
|
|
73
|
-
utils.renderTemplate(utils.join(
|
|
72
|
+
utils.renderTemplate(utils.join(import.meta.url, 'prettier'), scope)
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
if (scope.preset.pinia) utils.renderTemplate(utils.join(
|
|
78
|
-
else if (scope.preset.vuex) utils.renderTemplate(utils.join(
|
|
76
|
+
if (scope.preset.pinia) utils.renderTemplate(utils.join(import.meta.url, 'pinia'), scope)
|
|
77
|
+
else if (scope.preset.vuex) utils.renderTemplate(utils.join(import.meta.url, 'vuex'), scope)
|
|
79
78
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
{
|
|
5
4
|
type: 'select',
|
|
@@ -50,7 +49,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
|
-
type: (_, { preset }) => preset.lint ? 'select' : null,
|
|
52
|
+
type: (_, { preset }) => (preset.lint ? 'select' : null),
|
|
54
53
|
name: 'lintConfig',
|
|
55
54
|
message: 'Pick an ESLint preset:',
|
|
56
55
|
choices: [
|
|
@@ -62,18 +61,18 @@ module.exports = async function ({ scope, utils }) {
|
|
|
62
61
|
])
|
|
63
62
|
|
|
64
63
|
utils.createTargetDir(scope)
|
|
65
|
-
utils.renderTemplate(utils.join(
|
|
66
|
-
utils.renderTemplate(utils.join(
|
|
64
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
65
|
+
utils.renderTemplate(utils.join(import.meta.url, scope.css), scope)
|
|
67
66
|
|
|
68
|
-
if (scope.preset.axios) utils.renderTemplate(utils.join(
|
|
69
|
-
if (scope.preset.i18n) utils.renderTemplate(utils.join(
|
|
67
|
+
if (scope.preset.axios) utils.renderTemplate(utils.join(import.meta.url, 'axios'), scope)
|
|
68
|
+
if (scope.preset.i18n) utils.renderTemplate(utils.join(import.meta.url, 'i18n'), scope)
|
|
70
69
|
if (scope.preset.lint) {
|
|
71
|
-
utils.renderTemplate(utils.join(
|
|
70
|
+
utils.renderTemplate(utils.join(import.meta.url, 'lint'), scope)
|
|
72
71
|
if (scope.lintConfig === 'prettier') {
|
|
73
|
-
utils.renderTemplate(utils.join(
|
|
72
|
+
utils.renderTemplate(utils.join(import.meta.url, 'prettier'), scope)
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
if (scope.preset.pinia) utils.renderTemplate(utils.join(
|
|
78
|
-
else if (scope.preset.vuex) utils.renderTemplate(utils.join(
|
|
76
|
+
if (scope.preset.pinia) utils.renderTemplate(utils.join(import.meta.url, 'pinia'), scope)
|
|
77
|
+
else if (scope.preset.vuex) utils.renderTemplate(utils.join(import.meta.url, 'vuex'), scope)
|
|
79
78
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
{
|
|
5
4
|
type: 'select',
|
|
@@ -50,7 +49,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
|
-
type: (_, { preset }) => preset.lint ? 'select' : null,
|
|
52
|
+
type: (_, { preset }) => (preset.lint ? 'select' : null),
|
|
54
53
|
name: 'lintConfig',
|
|
55
54
|
message: 'Pick an ESLint preset:',
|
|
56
55
|
choices: [
|
|
@@ -62,18 +61,18 @@ module.exports = async function ({ scope, utils }) {
|
|
|
62
61
|
])
|
|
63
62
|
|
|
64
63
|
utils.createTargetDir(scope)
|
|
65
|
-
utils.renderTemplate(utils.join(
|
|
66
|
-
utils.renderTemplate(utils.join(
|
|
64
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
65
|
+
utils.renderTemplate(utils.join(import.meta.url, scope.css), scope)
|
|
67
66
|
|
|
68
|
-
if (scope.preset.axios) utils.renderTemplate(utils.join(
|
|
69
|
-
if (scope.preset.i18n) utils.renderTemplate(utils.join(
|
|
67
|
+
if (scope.preset.axios) utils.renderTemplate(utils.join(import.meta.url, 'axios'), scope)
|
|
68
|
+
if (scope.preset.i18n) utils.renderTemplate(utils.join(import.meta.url, 'i18n'), scope)
|
|
70
69
|
if (scope.preset.lint) {
|
|
71
|
-
utils.renderTemplate(utils.join(
|
|
70
|
+
utils.renderTemplate(utils.join(import.meta.url, 'lint'), scope)
|
|
72
71
|
if (scope.lintConfig === 'prettier') {
|
|
73
|
-
utils.renderTemplate(utils.join(
|
|
72
|
+
utils.renderTemplate(utils.join(import.meta.url, 'prettier'), scope)
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
if (scope.preset.pinia) utils.renderTemplate(utils.join(
|
|
78
|
-
else if (scope.preset.vuex) utils.renderTemplate(utils.join(
|
|
76
|
+
if (scope.preset.pinia) utils.renderTemplate(utils.join(import.meta.url, 'pinia'), scope)
|
|
77
|
+
else if (scope.preset.vuex) utils.renderTemplate(utils.join(import.meta.url, 'vuex'), scope)
|
|
79
78
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
{
|
|
5
4
|
type: 'confirm',
|
|
@@ -8,11 +7,11 @@ module.exports = async function ({ scope, utils }) {
|
|
|
8
7
|
message: 'Will you use an organization to publish it? Eg. "@my-org/..."'
|
|
9
8
|
},
|
|
10
9
|
{
|
|
11
|
-
type: (_, { needOrgName } = {}) => needOrgName ? 'text' : null,
|
|
10
|
+
type: (_, { needOrgName } = {}) => (needOrgName ? 'text' : null),
|
|
12
11
|
name: 'orgName',
|
|
13
12
|
message: 'Organization name, eg. "my-org":',
|
|
14
13
|
validate: val =>
|
|
15
|
-
val && val.length > 0 || 'Please type the organization name'
|
|
14
|
+
(val && val.length > 0) || 'Please type the organization name'
|
|
16
15
|
},
|
|
17
16
|
{
|
|
18
17
|
type: 'text',
|
|
@@ -85,11 +84,11 @@ module.exports = async function ({ scope, utils }) {
|
|
|
85
84
|
])
|
|
86
85
|
|
|
87
86
|
utils.createTargetDir(scope)
|
|
88
|
-
utils.renderTemplate(utils.join(
|
|
87
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
89
88
|
|
|
90
|
-
if (scope.preset.prompts) utils.renderTemplate(utils.join(
|
|
91
|
-
if (scope.preset.install) utils.renderTemplate(utils.join(
|
|
92
|
-
if (scope.preset.uninstall) utils.renderTemplate(utils.join(
|
|
89
|
+
if (scope.preset.prompts) utils.renderTemplate(utils.join(import.meta.url, 'prompts-script'), scope)
|
|
90
|
+
if (scope.preset.install) utils.renderTemplate(utils.join(import.meta.url, 'install-script'), scope)
|
|
91
|
+
if (scope.preset.uninstall) utils.renderTemplate(utils.join(import.meta.url, 'uninstall-script'), scope)
|
|
93
92
|
|
|
94
93
|
// nothing to install, so we'll skip it
|
|
95
94
|
scope.skipDepsInstall = true
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
await utils.prompts(scope, [
|
|
4
3
|
utils.commonPrompts.quasarVersion,
|
|
5
4
|
|
|
@@ -41,7 +40,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
41
40
|
type: 'text',
|
|
42
41
|
name: 'packageDescription',
|
|
43
42
|
message: 'Package description',
|
|
44
|
-
initial: 'My awesome component'
|
|
43
|
+
initial: 'My awesome component'
|
|
45
44
|
},
|
|
46
45
|
|
|
47
46
|
{
|
|
@@ -52,7 +51,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
52
51
|
},
|
|
53
52
|
|
|
54
53
|
{
|
|
55
|
-
type: (_, { features }) => features.component ? 'text' : null,
|
|
54
|
+
type: (_, { features }) => (features.component ? 'text' : null),
|
|
56
55
|
name: 'componentName',
|
|
57
56
|
message: 'Component name (PascalCase)',
|
|
58
57
|
initial: 'MyComponent',
|
|
@@ -60,7 +59,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
60
59
|
},
|
|
61
60
|
|
|
62
61
|
{
|
|
63
|
-
type: (_, { features }) => features.directive ? 'text' : null,
|
|
62
|
+
type: (_, { features }) => (features.directive ? 'text' : null),
|
|
64
63
|
name: 'directiveName',
|
|
65
64
|
message: 'Directive name (kebab-case, without "v-" prefix)',
|
|
66
65
|
initial: 'my-directive',
|
|
@@ -68,7 +67,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
68
67
|
},
|
|
69
68
|
|
|
70
69
|
{
|
|
71
|
-
type: (_, { features }) => features.ae ? 'text' : null,
|
|
70
|
+
type: (_, { features }) => (features.ae ? 'text' : null),
|
|
72
71
|
name: 'aeDescription',
|
|
73
72
|
message: 'App Extension description',
|
|
74
73
|
initial: 'A Quasar App Extension',
|
|
@@ -76,7 +75,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
76
75
|
},
|
|
77
76
|
|
|
78
77
|
{
|
|
79
|
-
type: (_, { features }) => features.ae ? 'multiselect' : null,
|
|
78
|
+
type: (_, { features }) => (features.ae ? 'multiselect' : null),
|
|
80
79
|
name: 'preset',
|
|
81
80
|
message: 'Pick the needed App Extension scripts:',
|
|
82
81
|
format: utils.convertArrayToObject,
|
|
@@ -97,7 +96,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
97
96
|
},
|
|
98
97
|
|
|
99
98
|
{
|
|
100
|
-
type: (_, { quasarVersion, features }) => quasarVersion === 'v2' && features.ae ? 'select' : null,
|
|
99
|
+
type: (_, { quasarVersion, features }) => (quasarVersion === 'v2' && features.ae ? 'select' : null),
|
|
101
100
|
name: 'aeCodeFormat',
|
|
102
101
|
message: 'Pick the App Extension format:',
|
|
103
102
|
initial: 0,
|
|
@@ -113,7 +112,7 @@ module.exports = async function ({ scope, utils }) {
|
|
|
113
112
|
utils.commonPrompts.bugs
|
|
114
113
|
])
|
|
115
114
|
|
|
116
|
-
const script =
|
|
115
|
+
const { script } = await import(`./quasar-${ scope.quasarVersion }/index.js`)
|
|
117
116
|
await script({ scope, utils })
|
|
118
117
|
|
|
119
118
|
// we don't want to install
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
utils.createTargetDir(scope)
|
|
4
|
-
utils.renderTemplate(utils.join(
|
|
3
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
5
4
|
|
|
6
5
|
if (scope.features.ae) {
|
|
7
|
-
utils.renderTemplate(utils.join(
|
|
8
|
-
if (scope.preset.install) utils.renderTemplate(utils.join(
|
|
9
|
-
if (scope.preset.prompts) utils.renderTemplate(utils.join(
|
|
10
|
-
if (scope.preset.uninstall) utils.renderTemplate(utils.join(
|
|
6
|
+
utils.renderTemplate(utils.join(import.meta.url, 'ae'), scope)
|
|
7
|
+
if (scope.preset.install) utils.renderTemplate(utils.join(import.meta.url, 'ae-install'), scope)
|
|
8
|
+
if (scope.preset.prompts) utils.renderTemplate(utils.join(import.meta.url, 'ae-prompts'), scope)
|
|
9
|
+
if (scope.preset.uninstall) utils.renderTemplate(utils.join(import.meta.url, 'ae-uninstall'), scope)
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
if (scope.features.component) utils.renderTemplate(utils.join(
|
|
14
|
-
if (scope.features.directive) utils.renderTemplate(utils.join(
|
|
12
|
+
if (scope.features.component) utils.renderTemplate(utils.join(import.meta.url, 'ui-component'), scope)
|
|
13
|
+
if (scope.features.directive) utils.renderTemplate(utils.join(import.meta.url, 'ui-directive'), scope)
|
|
15
14
|
|
|
16
15
|
if (scope.features.ae && (scope.features.component || scope.features.directive)) {
|
|
17
|
-
utils.renderTemplate(utils.join(
|
|
16
|
+
utils.renderTemplate(utils.join(import.meta.url, 'ui-ae'), scope)
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = async function ({ scope, utils }) {
|
|
1
|
+
export async function script ({ scope, utils }) {
|
|
3
2
|
utils.createTargetDir(scope)
|
|
4
|
-
utils.renderTemplate(utils.join(
|
|
3
|
+
utils.renderTemplate(utils.join(import.meta.url, 'BASE'), scope)
|
|
5
4
|
|
|
6
5
|
if (scope.features.ae) {
|
|
7
|
-
utils.renderTemplate(utils.join(
|
|
8
|
-
if (scope.preset.install) utils.renderTemplate(utils.join(
|
|
9
|
-
if (scope.preset.prompts) utils.renderTemplate(utils.join(
|
|
10
|
-
if (scope.preset.uninstall) utils.renderTemplate(utils.join(
|
|
6
|
+
utils.renderTemplate(utils.join(import.meta.url, 'ae'), scope)
|
|
7
|
+
if (scope.preset.install) utils.renderTemplate(utils.join(import.meta.url, 'ae-install'), scope)
|
|
8
|
+
if (scope.preset.prompts) utils.renderTemplate(utils.join(import.meta.url, 'ae-prompts'), scope)
|
|
9
|
+
if (scope.preset.uninstall) utils.renderTemplate(utils.join(import.meta.url, 'ae-uninstall'), scope)
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
if (scope.features.component) utils.renderTemplate(utils.join(
|
|
14
|
-
if (scope.features.directive) utils.renderTemplate(utils.join(
|
|
12
|
+
if (scope.features.component) utils.renderTemplate(utils.join(import.meta.url, 'ui-component'), scope)
|
|
13
|
+
if (scope.features.directive) utils.renderTemplate(utils.join(import.meta.url, 'ui-directive'), scope)
|
|
15
14
|
|
|
16
15
|
if (scope.features.ae && (scope.features.component || scope.features.directive)) {
|
|
17
|
-
utils.renderTemplate(utils.join(
|
|
16
|
+
utils.renderTemplate(utils.join(import.meta.url, 'ui-ae'), scope)
|
|
18
17
|
}
|
|
19
18
|
}
|