@md-plugins/quasar-app-extension-vite-md-plugin 0.1.0-alpha.2

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024-present, MD-PLUGINS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ Quasar App Extension md-plugin
2
+ ===
3
+
4
+ _Be sure to change this readme as appropriate for your app extension._
5
+
6
+ _Think about the organization of this file and how the information will be beneficial to the user._
7
+
8
+ > Add a short description of your App Extension. What does it do? How is it beneficial? Why would someone want to use it?
9
+
10
+ A Quasar Project
11
+
12
+ # Install
13
+ ```bash
14
+ quasar ext add md-plugin
15
+ ```
16
+ Quasar CLI will retrieve it from the NPM registry and install the extension to your project.
17
+
18
+
19
+ # Uninstall
20
+ ```bash
21
+ quasar ext remove md-plugin
22
+ ```
23
+
24
+ # Info
25
+ > Add longer information here that will help the user of your app extension.
26
+
27
+ # Other Info
28
+ > Add other information that's not as important to know
29
+
30
+ # Donate
31
+ If you appreciate the work that went into this App Extension, please consider [donating to Quasar](https://donate.quasar.dev).
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@md-plugins/quasar-app-extension-vite-md-plugin",
3
+ "version": "0.1.0-alpha.2",
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
+ "keywords": [
17
+ "quasar",
18
+ "app",
19
+ "app extension",
20
+ "extension",
21
+ "markdown",
22
+ "md-plugins",
23
+ "viteMdPlugin"
24
+ ],
25
+ "dependencies": {
26
+ "@md-plugins/viteMdPlugin": "^0.1.0-alpha.2"
27
+ },
28
+ "scripts": {
29
+ "test": "echo \"No test specified\" && exit 0"
30
+ }
31
+ }
package/src/index.js ADDED
@@ -0,0 +1,36 @@
1
+ /*global console*/
2
+ /**
3
+ * Quasar App Extension index/runner script
4
+ * (runs on each dev/build)
5
+ *
6
+ * Docs: https://quasar.dev/app-extensions/development-guide/index-api
7
+ */
8
+
9
+ function extendConfig(config, api) {
10
+ // make sure 'vueRouterMode' has 'history' mode
11
+ if (api.ctx.build.vueRouterMode !== 'history') {
12
+ console.log('Changing vueRouterMode to "history"')
13
+ api.ctx.build.vueRouterMode = 'history'
14
+ }
15
+
16
+ api.ctx.build.viteVuePluginOptions.include = api.ctx.build.viteVuePluginOptions.include || []
17
+ api.ctx.build.viteVuePluginOptions.include.push(/\.(vue|md)$/)
18
+
19
+ const extensions = new Set(api.ctx.framework.autoImportVueExtensions || [])
20
+ extensions.add('md')
21
+ extensions.add('vue')
22
+ api.ctx.framework.autoImportVueExtensions = Array.from(extensions)
23
+ }
24
+
25
+ export default function (api) {
26
+ // verify this is a Vite project
27
+ if (!api.hasVite) {
28
+ console.error('This extension requires Vite')
29
+ }
30
+
31
+ api.compatibleWith('quasar', '^2.0.0')
32
+ api.compatibleWith('@quasar/app-vite', '^2.0.0')
33
+
34
+ // here we extend /quasar.config, so we can add some Vite stuff
35
+ api.extendQuasarConf(extendConfig)
36
+ }