UNPKG

create-node-lib

Version:

Scaffolding out a Node.js library module

222 lines (221 loc) 5.56 kB
{ "name": "create-node-lib", "version": "2.7.1", "description": "Scaffolding out a Node.js library module", "bin": "./bin/cli.js", "engines": { "node": ">=10.0.0" }, "scripts": { "lint": "eslint . && npm run lint:lockfile", "lint:lockfile": "lockfile-lint --path package-lock.json --type npm --validate-https --allowed-hosts npm yarn", "lint:fix": "eslint . --fix", "format": "prettier --config .prettierrc.js --write '**/*.js'", "test": "jest", "test:watch": "jest --watch", "coverage:view": "open-cli coverage/lcov-report/index.html", "semantic-release": "semantic-release" }, "author": { "name": "Liran Tal", "email": "liran.tal@gmail.com", "url": "https://github.com/lirantal" }, "license": "Apache-2.0", "keywords": [ "create-node-lib", "create-node", "create", "module", "library", "sao-generator", "sao", "scaffold", "scaffolding" ], "homepage": "https://github.com/lirantal/create-node-lib", "bugs": { "url": "https://github.com/lirantal/create-node-lib/issues" }, "repository": { "type": "git", "url": "https://github.com/lirantal/create-node-lib.git" }, "dependencies": { "sao": "^1.7.1", "validate-npm-package-name": "^5.0.0" }, "devDependencies": { "@commitlint/cli": "^17.4.2", "@commitlint/config-conventional": "^17.4.2", "@semantic-release/changelog": "^6.0.2", "@semantic-release/commit-analyzer": "^9.0.2", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^8.0.7", "@semantic-release/npm": "^9.0.2", "@semantic-release/release-notes-generator": "^10.0.3", "babel-eslint": "^10.0.1", "babel-plugin-syntax-async-functions": "^6.13.0", "babel-plugin-transform-regenerator": "^6.26.0", "babel-preset-env": "^1.7.0", "decompress": "^4.2.1", "eslint": "^8.33.0", "eslint-config-standard": "^17.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-security": "^1.7.1", "eslint-plugin-standard": "^4.1.0", "husky": "^8.0.3", "jest": "^29.4.1", "lint-staged": "^13.1.0", "lockfile-lint": "^4.10.0", "open-cli": "^7.1.0", "prettier": "^2.8.3" }, "jest": { "testEnvironment": "node", "verbose": true, "notify": true, "collectCoverage": true, "coverageThreshold": { "global": { "branches": 50, "functions": 50, "lines": 50, "statements": 50 } }, "testPathIgnorePatterns": [ "/__tests__/.*/__fixtures__/.*", "template/.*" ], "coveragePathIgnorePatterns": [ "/__tests__/.*/__fixtures__/.*", "/__tests__/.*/__snapshots__/.*" ], "testMatch": [ "**/*.test.js" ] }, "husky": { "hooks": { "commit-msg": "commitlint --env HUSKY_GIT_PARAMS", "pre-commit": "lint-staged", "post-merge": "npm install", "pre-push": "npm run lint && npm run test" } }, "lint-staged": { "**/*.js": [ "npm run format", "git add" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "standard": { "env": [ "jest" ], "parser": "babel-eslint", "ignore": [ "**/out/" ] }, "eslintConfig": { "env": { "node": true, "es6": true, "jest": true }, "plugins": [ "import", "standard", "node", "security", "jest" ], "extends": [ "standard", "plugin:node/recommended" ], "rules": { "no-process-exit": "warn", "jest/no-disabled-tests": "error", "jest/no-focused-tests": "error", "jest/no-identical-title": "error", "node/no-unsupported-features": "off", "node/no-unpublished-require": "off", "security/detect-non-literal-fs-filename": "error", "security/detect-unsafe-regex": "error", "security/detect-buffer-noassert": "error", "security/detect-child-process": "error", "security/detect-disable-mustache-escape": "error", "security/detect-eval-with-expression": "error", "security/detect-no-csrf-before-method-override": "error", "security/detect-non-literal-regexp": "error", "security/detect-object-injection": "warn", "security/detect-possible-timing-attacks": "error", "security/detect-pseudoRandomBytes": "error", "space-before-function-paren": "off", "object-curly-spacing": "off" }, "parserOptions": { "ecmaVersion": 8, "ecmaFeatures": { "impliedStrict": true } } }, "release": { "branches": [ "main", "master" ], "analyzeCommits": { "preset": "angular", "releaseRules": [ { "type": "docs", "release": "patch" }, { "type": "refactor", "release": "patch" }, { "type": "style", "release": "patch" } ] } }, "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", [ "@semantic-release/changelog", { "changelogFile": "CHANGELOG.md" } ], "@semantic-release/npm", [ "@semantic-release/git", { "assets": [ "CHANGELOG.md" ] } ], "@semantic-release/github" ], "peerDependencies": { "node-notifier": "^10.0.1" } }