Skip to content

Commit e926a01

Browse files
authored
Refactor package.json by removing tests and adding CI
Removed several test scripts and resolutions, and added a new CI script. Signed-off-by: Igor <romanchaa997@gmail.com>
1 parent 55128c4 commit e926a01

1 file changed

Lines changed: 2 additions & 100 deletions

File tree

package.json

Lines changed: 2 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -86,72 +86,14 @@
8686
"start": "node bin/audityzer.js start",
8787
"dev": "vite",
8888
"build": "vite build",
89-
"build:core": "node scripts/build.js",
90-
"build:docs": "node scripts/build-docs.js",
9189
"test": "vitest run",
92-
"test:unit": "vitest run tests/unit",
93-
"test:integration": "vitest run tests/integration",
94-
"test:watch": "vitest",
9590
"test:coverage": "vitest run --coverage",
96-
"test:ui": "vitest --ui",
97-
"test:playwright": "cross-env MOCK_MODE=true TARGET_URL=http://localhost:5000 playwright test",
98-
"test:security": "cross-env MOCK_MODE=true playwright test \"examples/security-bug-tests/*.test.ts\"",
99-
"test:e2e": "npm run test:playwright",
100-
"test:all": "npm run test:unit && npm run test:integration && npm run test:e2e",
101-
"test:vuln:reentrancy": "playwright test examples/security-bug-tests/reentrancy-attack.test.ts",
102-
"test:vuln:oracle": "playwright test examples/security-bug-tests/oracle-manipulation.test.ts",
103-
"test:vuln:front-running": "playwright test examples/security-bug-tests/front-running-detection.test.ts",
104-
"test:vuln:phishing": "playwright test examples/security-bug-tests/eth-sign-phishing.test.ts",
105-
"test:vuln:signature-replay": "playwright test examples/security-bug-tests/signature-replay-attack.test.ts",
106-
"test:vuln:access-control": "playwright test examples/security-bug-tests/access-control-vulnerability.test.ts",
107-
"test:vuln:flash-loan": "playwright test examples/security-bug-tests/flash-loan-attack.test.ts",
108-
"test:bridge": "echo 'Running bridge security tests' && npm run test:security",
10991
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
110-
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
111-
"lint:ci": "eslint . --ext .ts,.tsx,.js,.jsx --max-warnings=0",
11292
"format": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,md}'",
113-
"format:check": "prettier --check '**/*.{js,jsx,ts,tsx,json,css,md}'",
11493
"type-check": "tsc --noEmit",
115-
"type-check:watch": "tsc --noEmit --watch",
11694
"clean": "rimraf dist build coverage .nyc_output",
117-
"clean:deps": "rimraf node_modules package-lock.json",
118-
"reinstall": "npm run clean:deps && npm install",
119-
"audit:fix": "npm audit fix",
120-
"audit:check": "npm audit --audit-level=moderate",
121-
"security:check": "npm run audit:check && npm run lint:ci",
122-
"validate:security-plugins": "echo 'Validating security plugins...' && npm run test:security",
123-
"test:security-framework": "echo 'Testing security framework...' && npm run test:security",
124-
"version:patch": "npm version patch",
125-
"version:minor": "npm version minor",
126-
"version:major": "npm version major",
127-
"release": "npm run build && npm run test && npm run security:check",
128-
"deploy:staging": "node scripts/deploy.js --env=staging",
129-
"deploy:production": "node scripts/deploy.js --env=production",
130-
"docker:build": "docker build -t audityzer .",
131-
"docker:run": "docker run -p 5000:5000 audityzer",
132-
"docker:dev": "docker-compose up --build",
133-
"setup": "node scripts/setup.js",
134-
"setup:dev": "npm install && npm run setup",
13595
"postinstall": "node scripts/fix-dependencies.js",
136-
"precommit": "npm run lint:fix && npm run format && npm run type-check",
137-
"prepush": "npm run test && npm run security:check",
138-
"ci": "npm run lint:ci && npm run type-check && npm run test:coverage && npm run security:check",
139-
"ai-scan:standard": "echo 'Running AI security scan in standard mode' && npm run security:check",
140-
"ai-scan:basic": "echo 'Running AI security scan in basic mode' && npm run security:check",
141-
"ai-scan:advanced": "echo 'Running AI security scan in advanced mode' && npm run security:check",
142-
"ai-scan:full": "echo 'Running AI security scan in full mode' && npm run security:check",
143-
"security-scan": "echo 'Running security scan' && npm run audit:check",
144-
"viz:report": "echo 'Generating visualization report' && echo 'Report generated successfully'",
145-
"test-bridge:all": "echo 'Running bridge security tests' && npm run test:security",
146-
"defi:all": "echo 'Running DeFi protocol tests' && npm run test:security",
147-
"ai-scan:verbose": "echo 'Running verbose AI security scan' && npm run security:check",
148-
"security-validate": "echo 'Running security validation' && npm run audit:check",
149-
"custom-dependency-check": "echo 'Running custom dependency check' && npm audit --audit-level=moderate",
150-
"deploy-validate": "echo 'Running deployment validation' && npm run security:check",
151-
"submit-to-immunefi": "echo 'Submitting to Immunefi' && echo 'Submission prepared'",
152-
"submit-to-hackenproof": "echo 'Submitting to HackenProof' && echo 'Submission prepared'",
153-
"website:test": "echo 'Running website regression tests' && npm run test:e2e",
154-
"build:demo": "echo 'Building demo' && npm run build"
96+
"ci": "npm run lint && npm run type-check && npm run test:coverage"
15597
},
15698
"keywords": [
15799
"web3",
@@ -161,52 +103,12 @@
161103
"blockchain",
162104
"ethereum",
163105
"defi",
164-
"fuzzing",
165-
"vulnerability",
166-
"auditing",
167-
"cross-chain"
106+
"auditing"
168107
],
169108
"author": "Romanchaa997",
170109
"license": "MIT",
171110
"engines": {
172111
"node": ">=16.0.0"
173112
},
174-
"resolutions": {
175-
"puppeteer": "^21.10.0",
176-
"@mermaid-js/mermaid-cli": "^10.6.1",
177-
"cookie": "^0.7.0",
178-
"lodash.set": "^4.3.2",
179-
"@sentry/node": "^7.75.0",
180-
"tar-fs": "^2.1.1",
181-
"ws": "^8.17.1",
182-
"@puppeteer/browsers": "^1.4.2",
183-
"puppeteer-core": "^22.11.2"
184-
},
185-
"overrides": {
186-
"tar-fs": "^2.1.1",
187-
"ws": "^8.17.1",
188-
"lodash.set": "^4.3.2",
189-
"@sentry/node": "^7.75.0",
190-
"cookie": "^0.7.0",
191-
"raven": {
192-
"cookie": "^0.7.0"
193-
},
194-
"@lhci/cli": {
195-
"@lhci/utils": {
196-
"lighthouse": {
197-
"lodash.set": "^4.3.2",
198-
"raven": {
199-
"cookie": "^0.7.0"
200-
}
201-
}
202-
},
203-
"lighthouse": {
204-
"lodash.set": "^4.3.2",
205-
"raven": {
206-
"cookie": "^0.7.0"
207-
}
208-
}
209-
}
210-
},
211113
"types": "src/types/index.d.ts"
212114
}

0 commit comments

Comments
 (0)