@defra/lis-hubs-infra-core 0.1.0-lreg-25.alpha.1

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.
Files changed (3) hide show
  1. package/README.md +16 -0
  2. package/package.json +52 -0
  3. package/src/index.js +3 -0
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Hub Core
2
+
3
+ Shared package for hub mechanics.
4
+
5
+ Responsibilities:
6
+
7
+ - shared route and plugin helpers
8
+ - shared shell and layout primitives
9
+
10
+ Non-responsibilities:
11
+
12
+ - front-office policy
13
+ - back-office policy
14
+ - registry data
15
+ - access and capability decisions
16
+ - authentication, identity, tokens, sessions, roles or permissions
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@defra/lis-hubs-infra-core",
3
+ "version": "0.1.0-lreg-25.alpha.1",
4
+ "description": "Shared hub mechanics for livestock platform.",
5
+ "main": "src/index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/DEFRA/lis-species-cattle.git"
9
+ },
10
+ "exports": {
11
+ ".": "./src/index.js"
12
+ },
13
+ "files": [
14
+ "src"
15
+ ],
16
+ "type": "module",
17
+ "engines": {
18
+ "node": ">=24"
19
+ },
20
+ "scripts": {
21
+ "format": "prettier --write \"src/**/*.js\" \"**/*.{js,cjs,md,json}\"",
22
+ "format:check": "prettier --check \"src/**/*.js\" \"**/*.{js,cjs,md,json}\"",
23
+ "lint": "eslint .",
24
+ "lint:fix": "eslint . --fix",
25
+ "test": "vitest run",
26
+ "test:coverage": "vitest run --coverage --coverage.provider=istanbul --coverage.reporter=text --coverage.reporter=lcov --coverage.include=\"src/**/*.js\"",
27
+ "prepare": "if [ \"$npm_command\" = \"install\" ] && [ -z \"$CI\" ] && command -v husky >/dev/null 2>&1; then husky; fi",
28
+ "security-audit": "audit-ci",
29
+ "git:pre-commit-hook": "npm run security-audit && npm run format:check && npm run lint"
30
+ },
31
+ "author": "Defra DDTS",
32
+ "license": "OGL-UK-3.0",
33
+ "dependencies": {
34
+ "eslint-plugin-jsdoc": "^63.0.8",
35
+ "eslint-plugin-sonarjs": "^4.1.0",
36
+ "neostandard": "0.13.0",
37
+ "convict": "6.2.5",
38
+ "convict-format-with-validator": "6.2.0"
39
+ },
40
+ "peerDependencies": {
41
+ "eslint": "^9.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "@defra/lis-infra-eslint-config": "^0.6.0",
45
+ "@vitest/coverage-istanbul": "^4.1.10",
46
+ "audit-ci": "^7.1.0",
47
+ "eslint": "^9.0.0",
48
+ "husky": "^9.1.7",
49
+ "prettier": "^3.9.6",
50
+ "vitest": "^4.1.10"
51
+ }
52
+ }
package/src/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export const HUB_TYPES = ['front-office', 'back-office']
2
+
3
+ export const HUB_CORE_STATUS = 'scaffolded'