UNPKG

simc-ast-builder

Version:

Parser and AST generator for SimulationCraft files

64 lines (63 loc) 2.03 kB
{ "name": "simc-ast-builder", "version": "0.3.3", "description": "Parser and AST generator for SimulationCraft files", "license": "GPL-3.0", "author": "legacy3", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "repository": { "type": "git", "url": "https://github.com/legacy3/simc-ast-builder" }, "homepage": "https://github.com/legacy3/simc-ast-builder#readme", "bugs": { "url": "https://github.com/legacy3/simc-ast-builder/issues" }, "keywords": [ "ast", "parser", "simc", "simulationcraft", "wow", "world-of-warcraft", "rotation", "priority-list" ], "scripts": { "build": "tsc", "example": "ts-node examples/basic-usage.ts", "format": "prettier --write \"examples/**/*\" \"src/**/*\" \"tests/**/*\" --config .prettierrc.js", "generate": "node -e \"process.platform === 'darwin' ? require('child_process').execSync('npm run generate:osx', {stdio: 'inherit'}) : require('child_process').execSync('npm run generate:win', {stdio: 'inherit'})\"", "generate:osx": "antlr4ts -visitor ./src/parser/antlr4/SimCExpr.g4", "generate:win": "antlr4ts -visitor -o ./src/parser/antlr4 ./src/parser/antlr4/SimCExpr.g4", "lint": "eslint --config eslint.config.mjs . --fix", "prepublishOnly": "npm run build", "test": "jest", "test:ci": "jest --coverage", "test:debug": "jest --runInBand --detectOpenHandles", "test:watch": "jest --watch" }, "dependencies": { "antlr4ts": "^0.5.0-alpha.4", "deep-equal": "^2.2.3" }, "devDependencies": { "@types/deep-equal": "^1.0.4", "@types/jest": "^29.5.14", "@types/node": "^22.15.3", "@typescript-eslint/eslint-plugin": "^8.31.1", "@typescript-eslint/parser": "^8.31.1", "antlr4ts-cli": "^0.5.0-alpha.4", "eslint": "^9.25.1", "eslint-plugin-perfectionist": "^4.12.3", "jest": "^29.7.0", "prettier": "^3.5.3", "ts-jest": "^29.3.2", "ts-node": "^10.9.2", "typescript": "^5.8.3" } }