UNPKG

univac

Version:

Generate AST of lots of common programming languages using antlr4. JavaScript API and CLI tool.

78 lines (77 loc) 2.87 kB
{ "name": "univac", "version": "0.0.8", "description": "Generate AST of lots of common programming languages using antlr4. JavaScript API and CLI tool.", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "bin": "bin/univac.js", "scripts": { "test": "npm run build && ava", "test-browser": "npx ava test-browser/*Test.ts", "test-slow": "npx ava test/slowTests/*Test.ts", "coverage": "npx nyc --nycrc-path nyc.config.js npm test", "test-js": " npx ava ./dist/test/*Test.js", "test-watch": "ava -w", "test-debug": "node --inspect-brk node_modules/ava/cli.js --serial", "clean": "rm -rf dist docs test-browser-outdir", "build": "npm run clean && npx tsc && npm run copy", "copy": "rm -rf dist/src/grammar && mkdir -p dist/src/grammar && cp -r src/grammar/* dist/src/grammar && rm -rf dist/static && mkdir -p dist/static && cp src/tree-sitter-parser/* dist/static", "prepare": "npm run build", "format": "npx ts-refactor format \"src/**/*.ts*\" \"test/**/*.ts*\" ./formatCodeSettings.json --tsConfigPath ./tsconfig.json --dontAsk", "organizeImports": "npx ts-refactor organizeImports \"src/**/*.ts*\" \"test/**/*.ts*\" ./formatCodeSettings.json --tsConfigPath ./tsconfig.json --dontAsk ", "lint": "npm run organizeImports && npm run format", "all": "npm run clean && npm run lint && npm run build && npm run test && npm run test-js && npm run test-browser", "all-apps": "npm run all && cd playground && npm run all", "all-publish": "npm run all && git commit -a -m \"version patch\" && npm version patch && npm publish" }, "license": "MIT", "devDependencies": { "@istanbuljs/nyc-config-typescript": "^0.1.3", "@types/antlr4": "^4.7.0", "@types/node": "^12.7.2", "@types/puppeteer": "^1.19.1", "ava": "^2.3.0", "coveralls": "^3.0.6", "http-server": "^0.11.1", "parcel": "^1.12.3", "puppeteer": "^1.19.0", "tree-sitter-bash": "^0.16.0", "tree-sitter-cli": "^0.15.7", "tree-sitter-julia": "0.0.3", "tree-sitter-rust": "^0.15.1", "tree-sitter-scala": "^0.13.0", "tree-sitter-cpp": "^0.15.0", "ts-node": "^8.3.0", "ts-refactor": "0.0.9", "typescript": "^3.5.3" }, "dependencies": { "antlr4": "^4.7.2", "minimist": "^1.2.0", "misc-utils-of-mine-generic": "^0.2.29", "web-tree-sitter": "^0.15.9" }, "keywords": [ "typescript", "javascript", "antlr4", "grammars", "ast", "parser", "C parser", "astq" ], "author": { "name": "Sebastian Gurin", "email": "sebastigurin@gmail.com", "url": "http://sgurin.com" }, "homepage": "https://github.com/cancerberoSgx/univac", "repository": { "type": "git", "url": "https://github.com/cancerberoSgx/univac.git" }, "bugs": { "url": "https://github.com/cancerberoSgx/univac" } }