mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Add dep-check script to package.json files
This commit is contained in:
parent
b7965229f1
commit
c84cbe5575
@ -24,7 +24,7 @@
|
|||||||
"start": "node --require ts-node/register Serve.ts",
|
"start": "node --require ts-node/register Serve.ts",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true'"
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
"start": "node --require ts-node/register Serve.ts",
|
"start": "node --require ts-node/register Serve.ts",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true'"
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"light-house": "node lighthouse.js --web",
|
"light-house": "node lighthouse.js --web",
|
||||||
"light-house-mobile": "node lighthouse.js --mobile",
|
"light-house-mobile": "node lighthouse.js --mobile",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs,puppeteer'"
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/body-parser": "^1.19.5",
|
"@types/body-parser": "^1.19.5",
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage",
|
"coverage": "jest --detectOpenHandles --coverage",
|
||||||
"compile": "tsc"
|
"compile": "tsc",
|
||||||
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -5,10 +5,11 @@
|
|||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"compile": "tsc",
|
"compile": "tsc",
|
||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage",
|
"coverage": "jest --detectOpenHandles --coverage",
|
||||||
"debug:test": "cd .. && export $(grep -v '^#' config.env | xargs) && cd CommonServer && node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles"
|
"debug:test": "cd .. && export $(grep -v '^#' config.env | xargs) && cd CommonServer && node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles",
|
||||||
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -65,4 +66,4 @@
|
|||||||
"ts-jest": "^27.1.4",
|
"ts-jest": "^27.1.4",
|
||||||
"jest-mock-extended": "^3.0.5"
|
"jest-mock-extended": "^3.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,7 +7,8 @@
|
|||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage",
|
"coverage": "jest --detectOpenHandles --coverage",
|
||||||
"compile": "tsc",
|
"compile": "tsc",
|
||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install"
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
"start": "node --require ts-node/register Serve.ts",
|
"start": "node --require ts-node/register Serve.ts",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true'"
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage"
|
"coverage": "jest --detectOpenHandles --coverage"
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage"
|
"coverage": "jest --detectOpenHandles --coverage"
|
||||||
},
|
},
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
||||||
"start": "node --require ts-node/register Index.ts",
|
"start": "node --require ts-node/register Index.ts",
|
||||||
"compile": "tsc",
|
"compile": "tsc",
|
||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage",
|
"coverage": "jest --detectOpenHandles --coverage",
|
||||||
@ -15,7 +15,7 @@
|
|||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"light-house": "node lighthouse.js --web",
|
"light-house": "node lighthouse.js --web",
|
||||||
"light-house-mobile": "node lighthouse.js --mobile",
|
"light-house-mobile": "node lighthouse.js --mobile",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs,puppeteer'"
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/body-parser": "^1.19.5",
|
"@types/body-parser": "^1.19.5",
|
||||||
@ -48,10 +48,9 @@
|
|||||||
"nodemon": "^2.0.20",
|
"nodemon": "^2.0.20",
|
||||||
"npm-force-resolutions": "0.0.10",
|
"npm-force-resolutions": "0.0.10",
|
||||||
"ora": "^6.1.0",
|
"ora": "^6.1.0",
|
||||||
|
|
||||||
"start-server-and-test": "^1.14.0",
|
"start-server-and-test": "^1.14.0",
|
||||||
"ts-jest": "^28.0.2",
|
"ts-jest": "^28.0.2",
|
||||||
"ts-node-dev": "^1.1.8",
|
"ts-node-dev": "^1.1.8",
|
||||||
"typescript": "^5.3.2"
|
"typescript": "^5.3.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage"
|
"coverage": "jest --detectOpenHandles --coverage"
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --passWithNoTests"
|
"test": "jest --passWithNoTests"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage",
|
"coverage": "jest --detectOpenHandles --coverage",
|
||||||
"debug:test": "node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles"
|
"debug:test": "node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
"start": "node --require ts-node/register Serve.ts",
|
"start": "node --require ts-node/register Serve.ts",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
"configure": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true'"
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true'"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage"
|
"coverage": "jest --detectOpenHandles --coverage"
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage"
|
"coverage": "jest --detectOpenHandles --coverage"
|
||||||
},
|
},
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
"clear-modules": "rm -rf node_modules && rm package-lock.json && npm install",
|
||||||
"dev": "npx nodemon",
|
"dev": "npx nodemon",
|
||||||
"audit": "npm audit --audit-level=low",
|
"audit": "npm audit --audit-level=low",
|
||||||
"dep-check": "depcheck ./ --skip-missing=true",
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true",
|
||||||
"test": "jest --detectOpenHandles",
|
"test": "jest --detectOpenHandles",
|
||||||
"coverage": "jest --detectOpenHandles --coverage"
|
"coverage": "jest --detectOpenHandles --coverage"
|
||||||
},
|
},
|
||||||
|
@ -62,7 +62,8 @@
|
|||||||
"remove-all-containers": "docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) || echo 'No running containers'",
|
"remove-all-containers": "docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) || echo 'No running containers'",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"backup": "bash backup.sh",
|
"backup": "bash backup.sh",
|
||||||
"update": "npm run prerun && export $(grep -v '^#' config.env | xargs) && docker compose pull && npm run start"
|
"update": "npm run prerun && export $(grep -v '^#' config.env | xargs) && docker compose pull && npm run start",
|
||||||
|
"dep-check": "npm install -g depcheck && depcheck ./ --skip-missing=true"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user