@md-plugins/quasar-app-extension-q-press 0.1.0-alpha.7

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,7 @@
1
+ # Q-Press
2
+
3
+ The Ultimate Markdown Solution for Quasar Framework
4
+
5
+ ## License
6
+
7
+ This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@md-plugins/quasar-app-extension-q-press",
3
+ "version": "0.1.0-alpha.7",
4
+ "description": "QPress - The Ultimate Markdown Solution for Quasar Framework",
5
+ "author": "hawkeye64 <galbraith64@gmail.com>",
6
+ "keywords": [
7
+ "markdown-it",
8
+ "quasarframework",
9
+ "quasar",
10
+ "markdown",
11
+ "q-press",
12
+ "vite"
13
+ ],
14
+ "homepage": "https://github.com/md-plugins",
15
+ "bugs": {
16
+ "url": "https://github.com/md-plugins/md-plugins/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/md-plugins/md-plugins.git"
21
+ },
22
+ "license": "MIT",
23
+ "type": "module",
24
+ "engines": {
25
+ "node": ">= 12.2.0",
26
+ "npm": ">= 5.6.0",
27
+ "yarn": ">= 1.6.0"
28
+ },
29
+ "dependencies": {
30
+ "@md-plugins/md-plugin-blockquote": "0.1.0-alpha.7",
31
+ "@md-plugins/md-plugin-frontmatter": "0.1.0-alpha.7",
32
+ "@md-plugins/md-plugin-codeblocks": "0.1.0-alpha.7",
33
+ "@md-plugins/md-plugin-headers": "0.1.0-alpha.7",
34
+ "@md-plugins/md-plugin-image": "0.1.0-alpha.7",
35
+ "@md-plugins/md-plugin-imports": "0.1.0-alpha.7",
36
+ "@md-plugins/md-plugin-containers": "0.1.0-alpha.7",
37
+ "@md-plugins/md-plugin-inlinecode": "0.1.0-alpha.7",
38
+ "@md-plugins/md-plugin-table": "0.1.0-alpha.7",
39
+ "@md-plugins/md-plugin-link": "0.1.0-alpha.7",
40
+ "@md-plugins/shared": "0.1.0-alpha.7",
41
+ "@md-plugins/md-plugin-title": "0.1.0-alpha.7"
42
+ },
43
+ "devDependencies": {
44
+ "@types/markdown-it": "^14.1.2",
45
+ "markdown-it": "^14.1.0",
46
+ "vite": "^6.0.7"
47
+ },
48
+ "peerDependencies": {
49
+ "markdown-it": "^14.1.0"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "scripts": {
55
+ "test": "echo \"No test specified\" && exit 0"
56
+ }
57
+ }
package/src/index.js ADDED
@@ -0,0 +1,40 @@
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
+ console.log('config', config)
11
+ console.log('api', api)
12
+ // make sure 'vueRouterMode' has 'history' mode
13
+ if (config.build.vueRouterMode !== 'history') {
14
+ console.log('Changing vueRouterMode to "history" - required for hash links to work correctly')
15
+ config.build.vueRouterMode = 'history'
16
+ }
17
+
18
+ // let Vite know to transpile md files
19
+ config.build.viteVuePluginOptions.include = config.build.viteVuePluginOptions.include || []
20
+ config.build.viteVuePluginOptions.include.push(/\.(vue|md)$/)
21
+
22
+ // let Vue know to auto import md files
23
+ const extensions = new Set(config.framework.autoImportVueExtensions || [])
24
+ extensions.add('md')
25
+ extensions.add('vue')
26
+ config.framework.autoImportVueExtensions = Array.from(extensions)
27
+ }
28
+
29
+ export default function (api) {
30
+ // verify this is a Vite project
31
+ if (!api.hasVite) {
32
+ throw new Error('This extension requires Vite')
33
+ }
34
+
35
+ api.compatibleWith('quasar', '^2.0.0')
36
+ api.compatibleWith('@quasar/app-vite', '^2.0.0')
37
+
38
+ // here we extend /quasar.config, so we can add some Vite/Vue stuff
39
+ api.extendQuasarConf(extendConfig)
40
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Quasar App Extension install script
3
+ *
4
+ * Docs: https://quasar.dev/app-extensions/development-guide/install-api
5
+ */
6
+
7
+ export default function (api) {
8
+ //
9
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Quasar App Extension prompts script
3
+ *
4
+ * Docs: https://quasar.dev/app-extensions/development-guide/prompts-api
5
+ *
6
+ * Inquirer prompts
7
+ * (answers are available as "api.prompts" in the other scripts)
8
+ * https://www.npmjs.com/package/inquirer#question
9
+ *
10
+ * Example:
11
+
12
+ return [
13
+ {
14
+ name: 'name',
15
+ type: 'input',
16
+ required: true,
17
+ message: 'Quasar CLI Extension name (without prefix)',
18
+ },
19
+ {
20
+ name: 'preset',
21
+ type: 'checkbox',
22
+ message: 'Check the features needed for your project:',
23
+ choices: [
24
+ {
25
+ name: 'Install script',
26
+ value: 'install'
27
+ },
28
+ {
29
+ name: 'Prompts script',
30
+ value: 'prompts'
31
+ },
32
+ {
33
+ name: 'Uninstall script',
34
+ value: 'uninstall'
35
+ }
36
+ ]
37
+ }
38
+ ]
39
+
40
+ */
41
+
42
+ export default function (api) {
43
+ return []
44
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Quasar App Extension uninstall script
3
+ *
4
+ * Docs: https://quasar.dev/app-extensions/development-guide/uninstall-api
5
+ */
6
+
7
+ export default function (api) {
8
+ //
9
+ }
File without changes