@uipkge/nuxt 0.1.2 → 0.1.5
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/README.md +3 -5
- package/dist/module.json +1 -1
- package/dist/module.mjs +0 -1
- package/package.json +15 -16
package/README.md
CHANGED
|
@@ -14,20 +14,18 @@ Nuxt module for [i18now](https://i18now.com) — loads translations from the i18
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install @uipkge/nuxt
|
|
17
|
+
npm install @uipkge/nuxt @nuxtjs/i18n
|
|
18
18
|
# or
|
|
19
|
-
pnpm add @uipkge/nuxt
|
|
19
|
+
pnpm add @uipkge/nuxt @nuxtjs/i18n
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
`@nuxtjs/i18n` is a dependency and will be installed automatically.
|
|
23
|
-
|
|
24
22
|
## Setup
|
|
25
23
|
|
|
26
24
|
Add the module to `nuxt.config.ts`:
|
|
27
25
|
|
|
28
26
|
```ts
|
|
29
27
|
export default defineNuxtConfig({
|
|
30
|
-
modules: ['@uipkge/nuxt'],
|
|
28
|
+
modules: ['@nuxtjs/i18n', '@uipkge/nuxt'],
|
|
31
29
|
|
|
32
30
|
i18now: {
|
|
33
31
|
projectId: process.env.I18NOW_PROJECT_ID ?? '',
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipkge/nuxt",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -12,19 +12,8 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "nuxt-module-build build",
|
|
17
|
-
"dev": "nuxt-module-build prepare",
|
|
18
|
-
"dev:playground": "nuxi dev playground",
|
|
19
|
-
"prepack": "nuxt-module-build build",
|
|
20
|
-
"test": "vitest run",
|
|
21
|
-
"test:watch": "vitest",
|
|
22
|
-
"test:coverage": "vitest run --coverage",
|
|
23
|
-
"release": "vitest run && nuxt-module-build build && npm publish --access public"
|
|
24
|
-
},
|
|
25
15
|
"dependencies": {
|
|
26
|
-
"@nuxt/kit": "^3.0.0"
|
|
27
|
-
"@uipkge/core": "workspace:*"
|
|
16
|
+
"@nuxt/kit": "^3.0.0"
|
|
28
17
|
},
|
|
29
18
|
"peerDependencies": {
|
|
30
19
|
"vue-i18n": "^9.0.0 || ^10.0.0 || ^11.0.0",
|
|
@@ -40,8 +29,18 @@
|
|
|
40
29
|
},
|
|
41
30
|
"devDependencies": {
|
|
42
31
|
"@nuxt/module-builder": "^1.0.0",
|
|
43
|
-
"happy-dom": "^17.0.0",
|
|
32
|
+
"happy-dom": "^17.0.0",
|
|
44
33
|
"nuxt": "^3.0.0",
|
|
45
|
-
"vitest": "^4.0.0"
|
|
34
|
+
"vitest": "^4.0.0",
|
|
35
|
+
"@uipkge/core": "0.1.1"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "nuxt-module-build build",
|
|
39
|
+
"dev": "nuxt-module-build prepare",
|
|
40
|
+
"dev:playground": "nuxi dev playground",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"test:watch": "vitest",
|
|
43
|
+
"test:coverage": "vitest run --coverage",
|
|
44
|
+
"release": "vitest run && nuxt-module-build build && pnpm publish --access public --no-git-checks"
|
|
46
45
|
}
|
|
47
|
-
}
|
|
46
|
+
}
|