@wwtdev/bsds-components-vue3 1.5.1 → 1.5.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/nuxt/plugins/index.mjs +18 -0
- package/package.json +5 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { applyPolyfills, defineCustomElements } from '@wwtdev/bsds-components/loader';
|
|
2
|
+
import { applyPolyfills as applyIconPolyfills, defineCustomElements as defineIconCustomElements } from '@wwtdev/bsds-icons/dist/lib/loader';
|
|
3
|
+
|
|
4
|
+
export const ComponentLibrary = {
|
|
5
|
+
async install() {
|
|
6
|
+
applyPolyfills().then(() => {
|
|
7
|
+
defineCustomElements();
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const IconLibrary = {
|
|
13
|
+
async install() {
|
|
14
|
+
applyIconPolyfills().then(() => {
|
|
15
|
+
defineIconCustomElements();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwtdev/bsds-components-vue3",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "BSDS Vue3 Components",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./lib/index.js",
|
|
19
19
|
"./nuxt": "./nuxt/bsds-components.mjs",
|
|
20
|
+
"./nuxt/plugins": "./nuxt/plugins/index.mjs",
|
|
20
21
|
"./style.css": "./nuxt/style.css",
|
|
21
22
|
"./plugin-ssr.js": "./lib/plugin-ssr.js"
|
|
22
23
|
},
|
|
@@ -28,9 +29,8 @@
|
|
|
28
29
|
"url": "https://github.wwt.com/custom-apps/wwt-blue-steel.git"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
|
-
"build": "npm run tsc && npm run build:
|
|
32
|
-
"build:nuxt": "vite build",
|
|
33
|
-
"build:ssr": "node utils/copyFiles.js src/plugin-ssr.js lib/plugin-ssr.js",
|
|
32
|
+
"build": "npm run tsc && npm run build:nuxt",
|
|
33
|
+
"build:nuxt": "vite build && node utils/copyPlugins.mjs",
|
|
34
34
|
"generate:nuxt": "node nuxt-generator/index.mjs src/nuxt-wrappers",
|
|
35
35
|
"publish-wwt": "publish-wwt-package --monorepo",
|
|
36
36
|
"publish-npm": "npm publish --@wwtdev:registry=https://registry.npmjs.org --access=public",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"wwt-package-publisher": "^4.1.2"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@wwtdev/bsds-components": "^1.5.
|
|
62
|
+
"@wwtdev/bsds-components": "^1.5.2"
|
|
63
63
|
}
|
|
64
64
|
}
|