Skip to content

Commit

Permalink
fix(create-quasar): ui kit error when creating project folder #17701
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Dec 13, 2024
1 parent 3d7ab21 commit 8b3ca09
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion create-quasar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-quasar",
"version": "1.11.5",
"version": "1.11.6",
"description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
"type": "module",
"author": {
Expand Down
1 change: 0 additions & 1 deletion create-quasar/templates/ui-kit/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {

'packageDescription',
'aeDescription',
'aeCodeFormat',

'umdExportName',
'componentName',
Expand Down
11 changes: 0 additions & 11 deletions create-quasar/templates/ui-kit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,6 @@ export async function script ({ scope, utils }) {
value: 'uninstall'
}
]
},

{
type: (_, { quasarVersion, features }) => (quasarVersion === 'v2' && features.ae ? 'select' : null),
name: 'aeCodeFormat',
message: 'Pick the App Extension format:',
initial: 0,
choices: [
{ title: 'ESM (q/app-vite >= 1.5, q/app-webpack >= 3.10)', value: 'esm', description: 'recommended' },
{ title: 'CommonJS', value: 'commonjs' }
]
}
])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Docs: https://quasar.dev/app-extensions/development-guide/install-api
*/

<%= aeCodeFormat === 'esm' ? 'export default' : 'module.exports =' %> function (api) {
export default function (api) {
// Quasar compatibility check; you may need
// hard dependencies, as in a minimum version of the "quasar"
// package or a minimum version of "@quasar/app-*" CLI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
*/

<%= aeCodeFormat === 'esm' ? 'export default' : 'module.exports =' %> function (api) {
export default function (api) {
return []
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
* Docs: https://quasar.dev/app-extensions/development-guide/uninstall-api
*/

<%= aeCodeFormat === 'esm' ? 'export default' : 'module.exports =' %> function (api) {
export default function (api) {
//
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "<%= aeDescription %>",
"author": "<%= author %>",
"license": "<%= license %>",
"type": "<%= aeCodeFormat === 'esm' ? 'module' : 'commonjs' %>",
"type": "module",
"dependencies": {
"quasar-ui-<%= name %>": "latest"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function extendConf (conf, api) {
conf.css.push('~quasar-ui-<%= name %>/src/index.sass')
}

<%= aeCodeFormat === 'esm' ? 'export default' : 'module.exports =' %> function (api) {
export default function (api) {
// Quasar compatibility check; you may need
// hard dependencies, as in a minimum version of the "quasar"
// package or a minimum version of "@quasar/app-*" CLI
Expand Down

0 comments on commit 8b3ca09

Please sign in to comment.