@md-plugins/quasar-app-extension-vite-md-plugin 0.1.0-alpha.8 → 0.1.0-beta.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.
Files changed (3) hide show
  1. package/README.md +13 -4
  2. package/package.json +13 -15
  3. package/src/index.js +2 -3
package/README.md CHANGED
@@ -17,12 +17,14 @@ The `viteMdPluginAppExt` extension provides a convenient way to use Markdown fil
17
17
 
18
18
  This App-Extension (app-ext) is for convenience only. For more granular control, you can use the `viteMdPlugin` directly in your Vite configuration. For more information, refer to the [viteMdPlugin documentation](https://github.com/md-plugins/md-plugins/tree/dev/packages/viteMdPlugin).
19
19
 
20
+ > This app extension currently targets Quasar Vite projects using `@quasar/app-vite` `^3.0.0-beta.12`.
21
+
20
22
  ## Installation
21
23
 
22
24
  To install the `viteMdPluginAppExt` extension, use the following command:
23
25
 
24
26
  ```bash
25
- pnpm add @md-plugins/vite-md-plugin-app-ext
27
+ quasar ext add @md-plugins/vite-md-plugin
26
28
  ```
27
29
 
28
30
  ## What It Does
@@ -48,9 +50,9 @@ framework: {
48
50
 
49
51
  After installing the extension, you need to configure it in your Quasar project. Here are the steps to get started:
50
52
 
51
- 1. **Import `@md-plugins/vite-md-plugin`:**
53
+ 1. **Import `viteMdPlugin`:**
52
54
 
53
- Update your `quasar.config.js` or `quasar.config.ts` to include the `@md-plugins/vite-md-plugin` extension:
55
+ Update your `quasar.config.js` or `quasar.config.ts` to include the `@md-plugins/vite-md-plugin` package:
54
56
 
55
57
  ```js
56
58
  import { viteMdPlugin, type MenuItem } from '@md-plugins/vite-md-plugin'
@@ -67,7 +69,10 @@ const { sidebar } = siteConfig
67
69
 
68
70
  ```js
69
71
  vitePlugins: [
70
- viteMdPlugin(ctx.appPaths.srcDir + '/markdown', sidebar as MenuItem[]),
72
+ viteMdPlugin({
73
+ path: ctx.appPaths.srcDir + '/markdown',
74
+ menu: sidebar as MenuItem[],
75
+ }),
71
76
  // ...
72
77
  ```
73
78
 
@@ -79,6 +84,10 @@ The `viteMdPluginAppExt` extension can be customized through various options. He
79
84
  - **`viteVuePluginOptions.include`**: Include Markdown files for Vite to transpile.
80
85
  - **`framework.autoImportVueExtensions`**: Enable auto-import for Markdown extensions.
81
86
 
87
+ ## Documentation
88
+
89
+ In case this README falls out of date, please refer to the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/vite-md-plugin-app-ext/overview) for the latest information.
90
+
82
91
  ## License
83
92
 
84
93
  This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
package/package.json CHANGED
@@ -1,29 +1,27 @@
1
1
  {
2
2
  "name": "@md-plugins/quasar-app-extension-vite-md-plugin",
3
- "version": "0.1.0-alpha.8",
3
+ "version": "0.1.0-beta.0",
4
4
  "description": "A Quasar app-ext for @md-plugins/viteMdPlugin",
5
- "author": "Jeff <galbraith64@gmail.com>",
6
- "license": "MIT",
7
- "type": "module",
8
- "engines": {
9
- "node": ">= 20",
10
- "npm": ">= 5.6.0",
11
- "yarn": ">= 1.6.0"
12
- },
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
5
  "keywords": [
17
- "quasar",
18
6
  "app",
19
7
  "app extension",
20
8
  "extension",
21
9
  "markdown",
22
10
  "md-plugins",
11
+ "quasar",
23
12
  "viteMdPlugin"
24
13
  ],
25
- "dependencies": {
26
- "@md-plugins/vite-md-plugin": "0.1.0-alpha.8"
14
+ "license": "MIT",
15
+ "author": "Jeff <galbraith64@gmail.com>",
16
+ "type": "module",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "devDependencies": {
21
+ "@md-plugins/vite-md-plugin": "0.1.0-beta.0"
22
+ },
23
+ "engines": {
24
+ "node": ">=20"
27
25
  },
28
26
  "scripts": {
29
27
  "test": "echo \"No test specified\" && exit 0"
package/src/index.js CHANGED
@@ -1,4 +1,3 @@
1
- /*global console*/
2
1
  /**
3
2
  * Quasar App Extension index/runner script
4
3
  * (runs on each dev/build)
@@ -9,7 +8,7 @@
9
8
  function extendConfig(config) {
10
9
  // make sure 'vueRouterMode' has 'history' mode
11
10
  if (config.build.vueRouterMode !== 'history') {
12
- console.log('Changing vueRouterMode to "history" - required for hash links to work correctly')
11
+ console.warn('Changing vueRouterMode to "history" - required for hash links to work correctly')
13
12
  config.build.vueRouterMode = 'history'
14
13
  }
15
14
 
@@ -31,7 +30,7 @@ export default function (api) {
31
30
  }
32
31
 
33
32
  api.compatibleWith('quasar', '^2.0.0')
34
- api.compatibleWith('@quasar/app-vite', '^2.0.0')
33
+ api.compatibleWith('@quasar/app-vite', '^3.0.0-beta.12')
35
34
 
36
35
  // here we extend /quasar.config, so we can add some Vite/Vue stuff
37
36
  api.extendQuasarConf(extendConfig)