UNPKG

node-sloc

Version:

A small tool for counting SLOC.

86 lines (85 loc) 2.48 kB
{ "name": "node-sloc", "version": "0.2.1", "description": "A small tool for counting SLOC.", "author": "Edvin Havic <edvinhavic@gmail.com>", "main": "lib/index.js", "type": "commonjs", "types": "lib", "files": [ "lib", "bin", "esm-wrapper.mjs" ], "bin": { "node-sloc": "bin/node-sloc.js", "sloc": "bin/node-sloc.js" }, "exports": { "import": "./esm-wrapper.mjs", "require": "./lib/index.js" }, "scripts": { "start": "npm run build && node lib/cli.js", "build": "tsc -p ./tsconfig.json", "build:watch": "npm run build -- --watch", "test": "nyc --reporter=lcov ts-mocha -- ./test/**/*.spec.ts", "test:watch": "npm run test -- --watch", "prettier:base": "prettier --ignore-path .gitignore", "eslint:base": "eslint --ignore-path .gitignore", "lint:eslint": "npm run eslint:base -- --max-warnings 0 **/*.ts", "lint": "npm run lint:eslint", "format:prettier": "npm run prettier:base -- --write **/*.ts", "format:eslint": "npm run eslint:base -- --fix **/*.ts", "format": "npm run format:eslint && npm run format:prettier", "prepublishOnly": "npm run test && npm run build" }, "husky": { "hooks": { "pre-commit": "npm run lint && npm test", "pre-push": "npm run lint && npm test" } }, "repository": { "type": "git", "url": "git://github.com/edvinh/node-sloc.git" }, "keywords": [ "sloc" ], "license": "MIT", "dependencies": { "chalk": "^4.1.0", "graceful-fs": "^4.2.6", "micromatch": "^4.0.2", "minimist": "^1.2.5" }, "devDependencies": { "@types/chai": "^4.2.15", "@types/chai-as-promised": "^7.1.3", "@types/expect": "^24.3.0", "@types/graceful-fs": "^4.1.5", "@types/micromatch": "^4.0.1", "@types/minimist": "^1.2.1", "@types/mocha": "^8.2.1", "@types/node": "^14.14.32", "@typescript-eslint/eslint-plugin": "^4.16.1", "@typescript-eslint/parser": "^4.16.1", "chai": "^4.3.3", "chai-as-promised": "^7.1.1", "eslint": "^7.21.0", "eslint-config-prettier": "^8.1.0", "eslint-config-typescript": "^3.0.0", "eslint-plugin-prettier": "^3.3.1", "husky": "^4.3.8", "mocha": "^8.3.1", "np": "^7.4.0", "nyc": "^15.1.0", "prettier": "^2.2.1", "ts-mocha": "^8.0.0", "typescript": "^4.2.3" }, "engines": { "node": ">=8.0.0" } }