nuxt-strapi-blocks-renderer 1.0.3 → 1.0.4

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 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
- # Generate type stubs
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
- # Develop with the basic text components playground
304
+ ```bash
282
305
  npm run dev
306
+ ```
283
307
 
284
- # Develop with the custom text components playground
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
- # Run ESLint
288
- npm run lint
330
+ ```bash
331
+ npm run lint:types
332
+ ```
333
+
334
+ #### Unit Tests
289
335
 
290
- # Run Vitest
291
- npm run test
336
+ To run the Vitest unit tests, run the following command:
337
+
338
+ ```bash
339
+ npm run lint:types
340
+ ````
292
341
 
293
- # Release new version
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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-strapi-blocks-renderer",
3
3
  "configKey": "strapiBlocksRenderer",
4
- "version": "1.0.3"
4
+ "version": "1.0.4"
5
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-strapi-blocks-renderer",
3
- "version": "1.0.3",
4
- "description": "Renderer for the strapi blocks text element.",
3
+ "version": "1.0.4",
4
+ "description": "Renderer for the strapi CMS blocks text content element.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -29,26 +29,30 @@
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": "tsc --noEmit",
33
33
  "test": "vitest run",
34
34
  "test:watch": "vitest watch"
35
35
  },
36
36
  "dependencies": {
37
- "@nuxt/kit": "^3.10.2",
37
+ "@nuxt/kit": "^3.11.2",
38
38
  "defu": "^6.1.4"
39
39
  },
40
40
  "devDependencies": {
41
- "@types/node": "^20.11.19",
42
- "@nuxt/devtools": "^1.0.8",
43
- "@nuxt/eslint-config": "^0.2.0",
41
+ "@types/node": "^20.12.5",
42
+ "@nuxt/devtools": "^1.1.5",
43
+ "@nuxt/eslint-config": "^0.3.1",
44
44
  "@nuxt/module-builder": "^0.5.5",
45
- "@nuxt/schema": "^3.10.2",
46
- "@nuxt/test-utils": "^3.11.0",
47
- "@stylistic/eslint-plugin": "^1.6.2",
48
- "eslint": "^8.56.0",
49
- "nuxt": "^3.10.2",
50
- "vitest": "^1.3.0",
51
- "vue": "^3.4.19",
45
+ "@nuxt/schema": "^3.11.2",
46
+ "@nuxt/test-utils": "^3.12.0",
47
+ "@stylistic/eslint-plugin": "^1.7.0",
48
+ "eslint": "^8.57.0",
49
+ "nuxt": "^3.11.2",
50
+ "vitest": "^1.4.0",
51
+ "vue": "^3.4.21",
52
52
  "vue-eslint-parser": "^9.4.2"
53
+ },
54
+ "packageManager": "npm@10.2.4",
55
+ "engines": {
56
+ "node": "^18.x || ^20.x"
53
57
  }
54
58
  }