Skip to content

Commit

Permalink
feat(standard-version): simplify settings (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jan 31, 2019
1 parent b030fa7 commit bd0ff2b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const initCommand = (baseDir, logger) => {
});

// update other keys
const keys = ["husky", "lint-staged", "standard-version"];
const keys = ["husky", "lint-staged"];
keys.forEach(key => {
if (!(key in packageInfo)) {
packageInfo[key] = {};
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign --no-verify",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
Expand All @@ -83,16 +83,14 @@
"prettier --write",
"git add"
]
}
},
"ignore": [
"CHANGELOG.md"
]
},
"prettier": {
"trailingComma": "es5"
},
"standard-version": {
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
},
"remarkConfig": {
"plugins": [
"remark-preset-lint-markdown-style-guide",
Expand Down
10 changes: 3 additions & 7 deletions test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign --no-verify",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
Expand All @@ -26,12 +26,8 @@
"*.{js,jsx,mjs}": ["eslint --fix --no-ignore", "git add"],
"*.md": ["remark --output", "git add"],
"*.{html,json,md,yaml,yml}": ["prettier --write", "git add"]
}
},
"standard-version": {
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
},
"ignore": ["CHANGELOG.md"]
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
Expand Down
10 changes: 3 additions & 7 deletions test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"release": "standard-version --sign --no-verify",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
},
"husky": {
Expand All @@ -27,12 +27,8 @@
"*.{js,jsx,mjs}": ["eslint --fix --no-ignore", "git add"],
"*.md": ["remark --output", "git add"],
"*.{html,json,md,yaml,yml}": ["prettier --write", "git add"]
}
},
"standard-version": {
"scripts": {
"postchangelog": "prettier --write CHANGELOG.md"
}
},
"ignore": ["CHANGELOG.md"]
},
"commitlint": {
"extends": ["@commitlint/config-conventional"]
Expand Down

0 comments on commit bd0ff2b

Please sign in to comment.