UNPKG

git-branch-is

Version:

Assert that the name of the current branch of a git repository has a particular value.

101 lines (100 loc) 3.92 kB
{ "name": "git-branch-is", "version": "4.0.0", "description": "Assert that the name of the current branch of a git repository has a particular value.", "keywords": [ "assert", "assertion", "cli", "git", "test" ], "license": "MIT", "homepage": "https://github.com/kevinoid/git-branch-is", "bugs": "https://github.com/kevinoid/git-branch-is/issues", "author": "Kevin Locke <kevin@kevinlocke.name>", "repository": { "type": "git", "url": "https://github.com/kevinoid/git-branch-is.git" }, "main": "index.js", "bin": { "git-branch-is": "bin/git-branch-is.js" }, "//": "All scripts should run in POSIX sh and Windows cmd.exe", "scripts": { "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -u", "clean": "rimraf coverage && rimraf doc", "doc": "npm run doc-js && npm run doc-spec", "doc-js": "rimraf doc/api && jsdoc -c jsdoc.conf.json .", "doc-spec": "rimraf doc/spec && mkdir doc/spec && mocha --reporter doc --recursive test | nodecat doc-src/spec/header.xhtml - doc-src/spec/footer.xhtml > doc/spec/index.xhtml", "lint": "npm run lint-js && npm run lint-doc", "lint-doc": "jsdoc -t templates/silent -c jsdoc-lint.conf.json . && echo JSDoc passed.", "lint-js": "eslint --report-unused-disable-directives . && echo ESLint passed.", "postpublish": "git -C doc push && git push --follow-tags origin master gh-pages && echo Remember to update GitHub Releases from CHANGELOG.md", "postversion": "rimraf doc && git clone -b gh-pages -l -q . doc && npm run doc && git -C doc add . && git -C doc commit -n -m \"Docs for v$npm_package_version\"", "preversion": "npm run test-cov && nyc check-coverage --statements 95 && depcheck --ignore-dirs doc --ignores mocha-ur2ue && david && node ./bin/git-branch-is.js master && travis-status -b master -c -w -x && appveyor-status -b master -c -w -p kevinoid/git-branch-is", "test": "npm run lint && npm run test-unit", "test-cov": "npm run lint && npm run test-unit-cov", "pretest-unit": "node test-bin/set-up-test-repos.js", "test-unit": "mocha --parallel --require mocha-ur2ue --require ./test-lib/root-hooks.js --recursive test", "posttest-unit": "rimraf test-repos", "test-unit-cov": "nyc npm run test-unit", "upload-cov": "codecov < ./coverage/lcov.info && coveralls < ./coverage/lcov.info", "version": "npm run changelog && echo && echo === Please edit CHANGELOG.md as desired, then exit === && echo && $npm_config_shell && git commit -m \"Update CHANGELOG.md for $npm_package_version\" CHANGELOG.md", "version-deps": "npm install conventional-changelog-cli david depcheck git-branch-is travis-status" }, "dependencies": { "commander": "^6.0.0" }, "devDependencies": { "@kevinoid/eslint-config": "^10.0.0", "codecov": "^3.0.0", "coveralls": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint": "^7.3.0", "eslint-config-airbnb-base": "^14.2.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-jsdoc": "^30.0.3", "eslint-plugin-node": "^11.0.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-unicorn": "^21.0.0", "jsdoc": "^3.6.0", "mocha": "^8.0.1", "mocha-ur2ue": "^1.0.0", "nodecat": "^2.0.0", "nyc": "^15.0.0", "rimraf": "^3.0.0" }, "engines": { "node": ">=10.13", "npm": ">=1.3.7" }, "david": { "//": "ESLint packages must be updated together. Only warn about @kevinoid/eslint-config", "ignore": [ "eslint", "eslint-config-airbnb-base", "eslint-plugin-import", "eslint-plugin-jsdoc", "eslint-plugin-node", "eslint-plugin-promise", "eslint-plugin-unicorn" ] }, "mocha": { "checkLeaks": true, "exit": false }, "nyc": { "exclude": [ "test", "test-bin", "test-lib" ], "reporter": [ "lcov", "text" ] } }