Skip to content

Commit

Permalink
feat(prettier): add npm scripts (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jan 21, 2019
1 parent 3d7e83e commit 3380443
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cache: npm

before_script:
- commitlint-travis
- npm run prettier:check
- npm run lint

script:
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier:write": "prettier --write --ignore-path .gitignore \"**/*.{html,json,md,yaml,yml}\"",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:js:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/package-empty_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier:write": "prettier --write --ignore-path .gitignore \"**/*.{html,json,md,yaml,yml}\"",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:js:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/package-normal_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier:write": "prettier --write --ignore-path .gitignore \"**/*.{html,json,md,yaml,yml}\"",
"prettier": "prettier --ignore-path .gitignore \"**/*.{css,html,js,json,jsx,md,mjs,scss,yaml,yml}\"",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:js:fix prettier:write",
"release": "standard-version --sign",
"release:dry-run": "npm run release -- --dry-run"
Expand Down

0 comments on commit 3380443

Please sign in to comment.