-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
137 lines (137 loc) · 4.47 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "biodiversity-net-gain-service",
"type": "module",
"private": false,
"author": "DEFRA",
"license": "OGL-UK-3.0",
"scripts": {
"postinstall": "npm run lerna:bootstrap",
"local:install": "bin/local-install.sh",
"install-detect-secrets": "(cd .devcontainer/scripts && ./install-detect-secrets.sh)",
"lerna:bootstrap": "lerna bootstrap",
"lerna:i": "lerna exec npm i",
"lerna:clean": "lerna clean -y && rm -rf ./node_modules",
"lint": "standard",
"unit-test": "bin/run-unit-tests.sh",
"test": "npm run lint && npm run unit-test",
"test-single": "jest --testRegex='packages/webapp/src/routes/__tests__/land[/\\\\].*\\.js$'",
"bootstrap-azurite": "(cd packages/azurite-bootstrap-service && bin/bootstrap)",
"docker:build-infrastructure": "export DOCKER_BUILDKIT=1 && docker compose -f docker/infrastructure.yml build",
"docker:build-services": "docker compose -f docker/services.build.yml build",
"docker:start-infrastructure": "docker compose -f docker/infrastructure.yml up -d && npm run docker:start-test-double-infrastructure",
"docker:start-test-double-infrastructure": "bin/start-test-double-infrastructure.sh",
"docker:start-dev-tools": "docker compose -f docker/dev-tools.yml up -d",
"docker:start-services": "docker compose -f docker/services.yml up -d",
"docker:stop-infrastructure": "docker compose -f docker/infrastructure.yml down",
"docker:stop-test-double-infrastructure": "docker compose -f docker/infrastructure.yml rm -f -s azurite postgis",
"docker:stop-dev-tools": "docker compose -f docker/dev-tools.yml down",
"docker:stop-services": "docker compose -f docker/services.yml down",
"docker:stop": "docker compose -f docker/services.yml -f docker/dev-tools.yml -f docker/infrastructure.yml down",
"docker:azure:build": "docker compose -f docker/services.build.azure.yml build && docker compose -f docker/services.build.azure.yml push"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/preset-env": "^7.23.3",
"@types/jest": "^29.5.11",
"babel-jest": "^29.7.0",
"detect-secrets": "^1.0.6",
"eslint": "^8.56.0",
"eslint-plugin-html": "^8.1.2",
"eslint-plugin-jest": "^27.6.0",
"jest": "^29.7.0",
"lerna": "^6.6.2",
"markdownlint-cli": "^0.37.0",
"standard": "^17.1.0"
},
"overrides": {
"nx": {
"axios": "^1.6.5"
}
},
"standard": {
"env": [
"node",
"jest"
],
"ignore": [
"**/public/build/js/*.js",
"packages/api/webpack.config.cjs",
".husky"
]
},
"eslintConfig": {
"extends": "standard",
"env": {
"node": true,
"jest": true,
"es6": true,
"es2021": true
},
"ignorePatterns": [
"**/dist/*.js"
],
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"jest",
"html"
]
},
"babel": {
"env": {
"test": {
"plugins": [
"@babel/plugin-transform-modules-commonjs"
]
}
}
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/**/src/**/*.js",
"<rootDir>/**/src/**/*.cjs",
"<rootDir>/**/*.mjs",
"<rootDir>/**/ProcessTrustedFile/**/*.js",
"<rootDir>/**/Shared/**/*.js",
"!<rootDir>/**/__tests__/**",
"!<rootDir>/**/__mocks__/**"
],
"coveragePathIgnorePatterns": [
"<rootDir>/packages/connectors-lib/src/azure-service-bus-connector.js"
],
"coverageReporters": [
"lcov",
"text"
],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 90,
"lines": 90,
"statements": 90
}
},
"projects": [
"<rootDir>/packages/azure-functions/jest.config.cjs",
"<rootDir>/packages/azure-storage-test-utils/jest.config.cjs",
"<rootDir>/packages/azurite-bootstrap-service/jest.config.cjs",
"<rootDir>/packages/bng-metric-service/jest.config.cjs",
"<rootDir>/packages/connectors-lib/jest.config.cjs",
"<rootDir>/packages/database-version-control/jest.config.js",
"<rootDir>/packages/errors-lib/package.json",
"<rootDir>/packages/utils-lib/jest.config.cjs",
"<rootDir>/packages/webapp/jest.config.cjs"
],
"testEnvironment": "node",
"testRunner": "jest-circus/runner",
"silent": true,
"transformIgnorePatterns": [
"<rootDir>/packages/webapp/node_modules/@defra/(?!(ngr-to-bng)/)"
]
},
"dependencies": {
"npm": "^10.5.0"
}
}