1 | {
|
2 | "name": "ybiq",
|
3 | "version": "10.0.0",
|
4 | "description": "Useful command-line tools for Node.js project",
|
5 | "author": "Masafumi Koba <ybiquitous@gmail.com>",
|
6 | "license": "MIT",
|
7 | "repository": "ybiquitous/ybiq",
|
8 | "keywords": [
|
9 | "cli",
|
10 | "command-line",
|
11 | "utility",
|
12 | "tool"
|
13 | ],
|
14 | "main": "index.js",
|
15 | "bin": "bin/cli.js",
|
16 | "files": [
|
17 | "bin",
|
18 | "lib",
|
19 | ".editorconfig",
|
20 | ".remarkignore"
|
21 | ],
|
22 | "engines": {
|
23 | "node": ">=10"
|
24 | },
|
25 | "dependencies": {
|
26 | "@commitlint/cli": "^8.3.5",
|
27 | "@commitlint/config-conventional": "^8.3.4",
|
28 | "eslint": "^6.8.0",
|
29 | "husky": "^4.2.0",
|
30 | "lint-staged": "^10.0.2",
|
31 | "npm-run-all": "^4.1.5",
|
32 | "prettier": "^1.19.1",
|
33 | "remark-cli": "^7.0.1",
|
34 | "remark-lint-no-heading-punctuation": "^1.0.3",
|
35 | "remark-preset-lint-recommended": "^3.0.3",
|
36 | "remark-validate-links": "^9.1.0",
|
37 | "standard-version": "^7.1.0",
|
38 | "yargs": "^15.1.0"
|
39 | },
|
40 | "devDependencies": {
|
41 | "eslint-config-ybiquitous": "^10.6.0",
|
42 | "fs-extra": "^8.1.0",
|
43 | "nodemon": "^2.0.2",
|
44 | "nyc": "^15.0.0",
|
45 | "tape": "^4.13.0"
|
46 | },
|
47 | "scripts": {
|
48 | "test": "nyc --check-coverage --lines 100 --branches 90 tape \"test/**/*.test.js\"",
|
49 | "test:watch": "nodemon --ext js,json --watch . --exec \"tape test/**/*.test.js\"",
|
50 | "test:coverage": "nyc report --reporter=html",
|
51 | "lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.mjs,.ts,.tsx .",
|
52 | "lint:js:fix": "npm run lint:js -- --fix",
|
53 | "lint:md": "remark . --frail",
|
54 | "lint:md:fix": "remark . --output",
|
55 | "lint": "npm-run-all --print-label --parallel lint:*",
|
56 | "prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mdx,mjs,scss,ts,tsx,yaml,yml}\"",
|
57 | "prettier:check": "npm run prettier -- --check",
|
58 | "prettier:write": "npm run prettier -- --write",
|
59 | "format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
|
60 | "prerelease": "git checkout master && git pull origin master && npm ci && npm test",
|
61 | "release": "standard-version",
|
62 | "release:dry-run": "standard-version --dry-run"
|
63 | },
|
64 | "husky": {
|
65 | "hooks": {
|
66 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
67 | "pre-commit": "lint-staged"
|
68 | }
|
69 | },
|
70 | "lint-staged": {
|
71 | "*.{js,jsx,mjs,ts,tsx}": "eslint --fix --no-ignore",
|
72 | "*.{css,html,js,json,jsx,md,mdx,mjs,scss,ts,tsx,yaml,yml}": "prettier --write",
|
73 | "!(CHANGELOG).md": "remark --frail"
|
74 | },
|
75 | "prettier": {
|
76 | "trailingComma": "es5"
|
77 | },
|
78 | "standard-version": {
|
79 | "sign": true,
|
80 | "scripts": {
|
81 | "postchangelog": "prettier --write CHANGELOG.md"
|
82 | }
|
83 | },
|
84 | "remarkConfig": {
|
85 | "plugins": [
|
86 | "preset-lint-recommended",
|
87 | "lint-no-heading-punctuation",
|
88 | [
|
89 | "lint-list-item-bullet-indent",
|
90 | false
|
91 | ],
|
92 | [
|
93 | "lint-list-item-indent",
|
94 | false
|
95 | ],
|
96 | "validate-links"
|
97 | ]
|
98 | },
|
99 | "commitlint": {
|
100 | "extends": [
|
101 | "@commitlint/config-conventional"
|
102 | ],
|
103 | "rules": {
|
104 | "scope-enum": [
|
105 | 2,
|
106 | "always",
|
107 | [
|
108 | "",
|
109 | "actions",
|
110 | "api",
|
111 | "commitlint",
|
112 | "coverage",
|
113 | "deps",
|
114 | "deps-dev",
|
115 | "editorconfig",
|
116 | "eslint",
|
117 | "init",
|
118 | "lint-staged",
|
119 | "package",
|
120 | "prettier",
|
121 | "readme",
|
122 | "release",
|
123 | "remark",
|
124 | "standard-version",
|
125 | "travis"
|
126 | ]
|
127 | ]
|
128 | }
|
129 | },
|
130 | "eslintConfig": {
|
131 | "extends": [
|
132 | "ybiquitous/node"
|
133 | ],
|
134 | "overrides": [
|
135 | {
|
136 | "files": [
|
137 | "**/test/**/*.js"
|
138 | ],
|
139 | "rules": {
|
140 | "no-shadow": [
|
141 | "error",
|
142 | {
|
143 | "allow": [
|
144 | "t"
|
145 | ]
|
146 | }
|
147 | ],
|
148 | "import/no-internal-modules": "off",
|
149 | "max-lines-per-function": [
|
150 | "error",
|
151 | 100
|
152 | ]
|
153 | }
|
154 | }
|
155 | ]
|
156 | },
|
157 | "browserslist": [
|
158 | "> 1%",
|
159 | "not ie 11",
|
160 | "not op_mini all"
|
161 | ]
|
162 | }
|