nuxt-strapi-blocks-renderer 1.0.3 → 1.0.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 +67 -8
- package/dist/module.json +5 -1
- package/dist/runtime/components/StrapiBlocksText.vue +1 -0
- package/package.json +23 -17
package/README.md
CHANGED
|
@@ -271,26 +271,85 @@ You can also use different image components here, i.e. `NuxtImg` or others.
|
|
|
271
271
|
|
|
272
272
|
## Development
|
|
273
273
|
|
|
274
|
+
### Dependencies
|
|
275
|
+
|
|
276
|
+
To install the dependencies, run the `install` command:
|
|
277
|
+
|
|
274
278
|
```bash
|
|
275
|
-
# Install dependencies
|
|
276
279
|
npm install
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
The project requires Node.js and NPM to run.
|
|
283
|
+
You can either install these manually on your system or if you have the nix package manager installed, use the
|
|
284
|
+
provided nix-shell with the following command:
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
nix-shell
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
This will automatically install the needed software and start up a shell.
|
|
291
|
+
|
|
292
|
+
### Type stubs
|
|
277
293
|
|
|
278
|
-
|
|
294
|
+
To generate the type stubs for the nuxt module, run the `dev:prepare` command:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
279
297
|
npm run dev:prepare
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Development server
|
|
301
|
+
|
|
302
|
+
To start the development server with the provided text components, run the `dev` command:
|
|
280
303
|
|
|
281
|
-
|
|
304
|
+
```bash
|
|
282
305
|
npm run dev
|
|
306
|
+
```
|
|
283
307
|
|
|
284
|
-
|
|
308
|
+
This will boot up the playground with the default text components.
|
|
309
|
+
To start the development server using custom text components, overriding the provided components,
|
|
310
|
+
use the `dev:custom` command:
|
|
311
|
+
|
|
312
|
+
```bash
|
|
285
313
|
npm run dev:custom
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Quality
|
|
317
|
+
|
|
318
|
+
#### Linter
|
|
319
|
+
|
|
320
|
+
To run ESLint, use the following command:
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
npm run lint:es
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
#### Type checks
|
|
327
|
+
|
|
328
|
+
To run the TypeScript type checks, use the following command:
|
|
286
329
|
|
|
287
|
-
|
|
288
|
-
npm run lint
|
|
330
|
+
```bash
|
|
331
|
+
npm run lint:types
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
#### Unit Tests
|
|
289
335
|
|
|
290
|
-
|
|
336
|
+
To run the Vitest unit tests, run the following command:
|
|
337
|
+
|
|
338
|
+
```bash
|
|
291
339
|
npm run test
|
|
340
|
+
````
|
|
292
341
|
|
|
293
|
-
|
|
342
|
+
### Release
|
|
343
|
+
|
|
344
|
+
To release a new version of the strapi blocks renderer nuxt module, take the following steps:
|
|
345
|
+
|
|
346
|
+
1. Increment version number in the `package.json` file
|
|
347
|
+
2. Add changelog entry for the new version number
|
|
348
|
+
3. Run linters and unit tests
|
|
349
|
+
4. Log in to NPM using your access token
|
|
350
|
+
5. Run the `release` command
|
|
351
|
+
|
|
352
|
+
```bash
|
|
294
353
|
npm run release
|
|
295
354
|
```
|
|
296
355
|
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-strapi-blocks-renderer",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Renderer for the strapi blocks text element.",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Renderer for the strapi CMS blocks text content element.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/freb97/nuxt-strapi-blocks-renderer.git"
|
|
8
|
+
"url": "git+https://github.com/freb97/nuxt-strapi-blocks-renderer.git"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
@@ -29,26 +29,32 @@
|
|
|
29
29
|
"release": "npm run lint && npm run test && npm run prepack && npm publish",
|
|
30
30
|
"release:ci": "npm run prepack && npm publish",
|
|
31
31
|
"lint:es": "eslint './**/*.{js,ts,vue}' --max-warnings=0",
|
|
32
|
-
"lint:types": "tsc",
|
|
32
|
+
"lint:types": "vue-tsc --noEmit",
|
|
33
33
|
"test": "vitest run",
|
|
34
34
|
"test:watch": "vitest watch"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nuxt/kit": "^3.
|
|
37
|
+
"@nuxt/kit": "^3.11.2",
|
|
38
38
|
"defu": "^6.1.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^20.11
|
|
42
|
-
"@nuxt/devtools": "^1.
|
|
43
|
-
"@nuxt/eslint-config": "^0.
|
|
44
|
-
"@nuxt/module-builder": "^0.
|
|
45
|
-
"@nuxt/schema": "^3.
|
|
46
|
-
"@nuxt/test-utils": "^3.
|
|
47
|
-
"@stylistic/eslint-plugin": "^1.
|
|
48
|
-
"eslint": "^8.
|
|
49
|
-
"nuxt": "^3.
|
|
50
|
-
"vitest": "^1.
|
|
51
|
-
"vue": "^3.4.
|
|
52
|
-
"vue-
|
|
41
|
+
"@types/node": "^20.12.11",
|
|
42
|
+
"@nuxt/devtools": "^1.3.1",
|
|
43
|
+
"@nuxt/eslint-config": "^0.3.12",
|
|
44
|
+
"@nuxt/module-builder": "^0.6.0",
|
|
45
|
+
"@nuxt/schema": "^3.11.2",
|
|
46
|
+
"@nuxt/test-utils": "^3.12.1",
|
|
47
|
+
"@stylistic/eslint-plugin": "^1.8.1",
|
|
48
|
+
"eslint": "^8.57.0",
|
|
49
|
+
"nuxt": "^3.11.2",
|
|
50
|
+
"vitest": "^1.6.0",
|
|
51
|
+
"vue": "^3.4.27",
|
|
52
|
+
"vue-tsc": "^2.0.17",
|
|
53
|
+
"vue-eslint-parser": "^9.4.2",
|
|
54
|
+
"typescript": "^5.4.5"
|
|
55
|
+
},
|
|
56
|
+
"packageManager": "npm@10.2.4",
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": "^18.x || ^20.x"
|
|
53
59
|
}
|
|
54
60
|
}
|