1 | {
|
2 | "name": "ybiq",
|
3 | "version": "7.2.1",
|
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": ">=8.5.0"
|
24 | },
|
25 | "dependencies": {
|
26 | "@commitlint/cli": "^7.5.0",
|
27 | "@commitlint/config-conventional": "^7.5.0",
|
28 | "@commitlint/travis-cli": "^7.5.0",
|
29 | "eslint": "^5.13.0",
|
30 | "husky": "^1.3.1",
|
31 | "lint-staged": "^8.1.1",
|
32 | "npm-run-all": "^4.1.5",
|
33 | "prettier": "^1.16.3",
|
34 | "remark-cli": "^6.0.1",
|
35 | "remark-lint-first-heading-level": "^1.1.3",
|
36 | "remark-lint-no-tabs": "^1.0.2",
|
37 | "remark-preset-lint-markdown-style-guide": "^2.1.2",
|
38 | "remark-preset-lint-recommended": "^3.0.2",
|
39 | "remark-validate-links": "^8.0.0",
|
40 | "standard-version": "^4.4.0",
|
41 | "yargs": "^12.0.5"
|
42 | },
|
43 | "devDependencies": {
|
44 | "eslint-config-ybiquitous": "^7.1.0",
|
45 | "fs-extra": "^7.0.1",
|
46 | "nodemon": "^1.18.9",
|
47 | "nyc": "^13.1.0",
|
48 | "tape": "^4.9.2"
|
49 | },
|
50 | "scripts": {
|
51 | "test": "nyc --check-coverage --lines 100 --branches 90 tape \"test/**/*.test.js\"",
|
52 | "test:watch": "nodemon --ext js,json --watch . --exec \"tape test/**/*.test.js\"",
|
53 | "test:coverage": "nyc report --reporter=html",
|
54 | "lint:js": "eslint --ignore-path .gitignore --ext .js,.jsx,.mjs .",
|
55 | "lint:js:fix": "npm run lint:js -- --fix",
|
56 | "lint:md": "remark . --frail",
|
57 | "lint:md:fix": "remark . --output",
|
58 | "lint": "npm-run-all --print-label --parallel lint:*",
|
59 | "prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}\"",
|
60 | "prettier:check": "npm run prettier -- --check",
|
61 | "prettier:write": "npm run prettier -- --write",
|
62 | "format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
|
63 | "release": "standard-version --sign",
|
64 | "release:dry-run": "npm run release -- --dry-run"
|
65 | },
|
66 | "husky": {
|
67 | "hooks": {
|
68 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
69 | "pre-commit": "lint-staged"
|
70 | }
|
71 | },
|
72 | "lint-staged": {
|
73 | "linters": {
|
74 | "*.{js,jsx,mjs}": [
|
75 | "eslint --fix --no-ignore",
|
76 | "git add"
|
77 | ],
|
78 | "*.md": [
|
79 | "remark --output --",
|
80 | "git add"
|
81 | ],
|
82 | "*.{css,html,js,json,jsx,md,mjs,scss,ts,tsx,yaml,yml}": [
|
83 | "prettier --write",
|
84 | "git add"
|
85 | ]
|
86 | },
|
87 | "ignore": [
|
88 | "CHANGELOG.md"
|
89 | ]
|
90 | },
|
91 | "prettier": {
|
92 | "trailingComma": "es5"
|
93 | },
|
94 | "standard-version": {
|
95 | "scripts": {
|
96 | "postchangelog": "prettier --write CHANGELOG.md"
|
97 | }
|
98 | },
|
99 | "remarkConfig": {
|
100 | "plugins": [
|
101 | "remark-preset-lint-markdown-style-guide",
|
102 | "remark-preset-lint-recommended",
|
103 | "remark-lint-first-heading-level",
|
104 | "remark-lint-no-tabs",
|
105 | [
|
106 | "remark-lint-list-item-spacing",
|
107 | false
|
108 | ],
|
109 | [
|
110 | "remark-lint-ordered-list-marker-value",
|
111 | "ordered"
|
112 | ],
|
113 | "remark-validate-links"
|
114 | ]
|
115 | },
|
116 | "commitlint": {
|
117 | "extends": [
|
118 | "@commitlint/config-conventional"
|
119 | ],
|
120 | "rules": {
|
121 | "scope-enum": [
|
122 | 2,
|
123 | "always",
|
124 | [
|
125 | "",
|
126 | "api",
|
127 | "commitlint",
|
128 | "coverage",
|
129 | "deps",
|
130 | "deps-dev",
|
131 | "editorconfig",
|
132 | "eslint",
|
133 | "init",
|
134 | "package",
|
135 | "prettier",
|
136 | "readme",
|
137 | "release",
|
138 | "remark",
|
139 | "standard-version",
|
140 | "travis"
|
141 | ]
|
142 | ]
|
143 | }
|
144 | },
|
145 | "eslintConfig": {
|
146 | "extends": [
|
147 | "ybiquitous/node"
|
148 | ],
|
149 | "overrides": [
|
150 | {
|
151 | "files": [
|
152 | "**/test/**/*.js"
|
153 | ],
|
154 | "rules": {
|
155 | "no-shadow": [
|
156 | "error",
|
157 | {
|
158 | "allow": [
|
159 | "t"
|
160 | ]
|
161 | }
|
162 | ],
|
163 | "import/no-internal-modules": "off",
|
164 | "max-lines-per-function": [
|
165 | "error",
|
166 | 100
|
167 | ]
|
168 | }
|
169 | }
|
170 | ]
|
171 | },
|
172 | "browserslist": [
|
173 | "> 1%",
|
174 | "not ie 11",
|
175 | "not op_mini all"
|
176 | ]
|
177 | }
|