UNPKG

structure-validation

Version:

A Node.js CLI tool for validating codebase folder and file structure using a clean declarative configuration. Part of the guardz ecosystem for comprehensive TypeScript development.

98 lines (97 loc) 3.54 kB
{ "name": "structure-validation", "version": "0.0.14", "description": "A Node.js CLI tool for validating codebase folder and file structure using a clean declarative configuration. Part of the guardz ecosystem for comprehensive TypeScript development.", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "structure-validation": "dist/bin/cli.js" }, "scripts": { "build": "tsc", "dev": "tsc --watch", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "test:ci": "jest --ci --coverage --watchAll=false --testPathIgnorePatterns=InteractiveFixService.test.ts", "setup:e2e": "node scripts/setup-e2e.js", "cleanup:e2e": "node scripts/cleanup-e2e.js", "test:e2e": "npm run setup:e2e && cucumber-js && npm run cleanup:e2e", "test:e2e:cli": "npm run setup:e2e && cucumber-js --profile cli-validation && npm run cleanup:e2e", "test:e2e:auto-fix": "npm run setup:e2e && cucumber-js --profile auto-fix && npm run cleanup:e2e", "test:e2e:interactive": "npm run setup:e2e && cucumber-js --profile interactive-mode && npm run cleanup:e2e", "test:e2e:imports": "npm run setup:e2e && cucumber-js --profile import-updates && npm run cleanup:e2e", "test:e2e:config": "npm run setup:e2e && cucumber-js --profile configuration && npm run cleanup:e2e", "test:e2e:edge-cases": "npm run setup:e2e && cucumber-js --profile edge-cases && npm run cleanup:e2e", "test:e2e:parallel": "npm run setup:e2e && cucumber-js --parallel 4 && npm run cleanup:e2e", "test:e2e:no-cleanup": "npm run setup:e2e && cucumber-js", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --ext .ts --fix", "format": "prettier --write src/**/*.ts", "type-check": "tsc --noEmit", "clean": "rm -rf dist coverage", "prebuild": "npm run clean", "prepublishOnly": "npm run build && npm run test:ci", "validate:staged": "structure-validation --scope staged --verify-root", "validate:all": "structure-validation --scope all --verify-root", "validate:fix": "structure-validation --scope staged --fix --verify-root", "validate:fixtures": "npm run build && node dist/bin/cli.js --scope all --verify-root" }, "keywords": [ "cli", "validation", "structure", "codebase", "typescript", "folder-structure", "file-validation", "guardz", "development-tools" ], "author": "guardz", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/guardz/structure-validation.git" }, "bugs": { "url": "https://github.com/guardz/structure-validation/issues" }, "homepage": "https://github.com/guardz/structure-validation#readme", "dependencies": { "chalk": "^4.1.2", "fast-glob": "^3.3.2", "simple-git": "^3.22.0", "ts-morph": "^26.0.0", "yargs": "^17.7.2" }, "devDependencies": { "@cucumber/cucumber": "^12.1.0", "@types/chai": "^5.2.2", "@types/cucumber": "^6.0.1", "@types/jest": "^29.5.8", "@types/node": "^20.8.10", "@types/yargs": "^17.0.33", "@typescript-eslint/eslint-plugin": "^6.9.1", "@typescript-eslint/parser": "^6.9.1", "chai": "^5.2.1", "eslint": "^8.52.0", "husky": "^9.1.7", "jest": "^29.7.0", "prettier": "^3.0.3", "ts-jest": "^29.1.1", "ts-node": "^10.9.2", "typescript": "^5.3.3" }, "engines": { "node": ">=16.0.0" }, "files": [ "dist", "README.md", "LICENSE" ], "publishConfig": { "access": "public" } }