Skip to content

Commit

Permalink
fix(app-vite): app templates > comments with docs URL
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Dec 6, 2024
1 parent 080e7ac commit f67bd66
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app-vite/lib/cmd/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function showHelp (returnCode) {
# Create src/layouts/shop/Checkout.vue
$ quasar new layout shop/Checkout.vue
# Create src/layouts/shop/Checkout.vue with TypeScript options API
$ quasar new layout -f ts-options shop/Checkout.vue
# Create src/layouts/shop/Checkout.vue (forcing TypeScript)
$ quasar new layout -f ts shop/Checkout.vue
# Create a store with TypeScript (-f ts is optional if tsconfig.json is present)
$ quasar new store -f ts myStore
Expand Down Expand Up @@ -81,7 +81,7 @@ const { appPaths, cacheProxy } = getCtx()
const hasTypescript = await cacheProxy.getModule('hasTypescript')

if (!argv.format) {
argv.format = argv.f = hasTypescript ? 'ts' : 'default'
argv.format = argv.f = hasTypescript ? 'ts' : 'js'
}

/** @type {string[]} */
Expand Down
2 changes: 1 addition & 1 deletion app-vite/templates/app/js/boot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineBoot } from '#q-app/wrappers'

// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
// more info on params: https://v2.quasar.dev/quasar-cli-vite/boot-files
export default defineBoot(async (/* { app, router, ... } */) => {
// something to do
})
2 changes: 1 addition & 1 deletion app-vite/templates/app/js/ssrmiddleware.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineSsrMiddleware } from '#q-app/wrappers'

// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/developing-ssr/ssr-middlewares
// more info on params: https://v2.quasar.dev/quasar-cli-vite/developing-ssr/ssr-middleware
export default defineSsrMiddleware(async ({ app /*, resolveUrlPath, publicPath, render */ }) => {
// something to do with the server "app"
})
2 changes: 1 addition & 1 deletion app-vite/templates/app/ts/boot.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineBoot } from '#q-app/wrappers'

// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
// more info on params: https://v2.quasar.dev/quasar-cli-vite/boot-files
export default defineBoot(async (/* { app, router, ... } */) => {
// something to do
})
2 changes: 1 addition & 1 deletion app-vite/templates/app/ts/ssrmiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineSsrMiddleware } from '#q-app/wrappers'

// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/developing-ssr/ssr-middlewares
// more info on params: https://v2.quasar.dev/quasar-cli-vite/developing-ssr/ssr-middleware
export default defineSsrMiddleware(async ({ app /*, resolveUrlPath, publicPath, render */ }) => {
// something to do with the server "app"
})

0 comments on commit f67bd66

Please sign in to comment.