Skip to content

Commit

Permalink
fix(package.json): add commit linting
Browse files Browse the repository at this point in the history
fix(package.json): change commit script

chore(dependencies): add back package-lock.json

added some packages

updated package.json

added prepare commit message git hook

chore(scripts): update scripts

chore(eslint): remove unused eslintignore value

chore(eslintignore): remove unnecessary value

chore(package-scripts): used old script name
  • Loading branch information
jaebradley committed Nov 29, 2017
1 parent 25fe397 commit 5208744
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-angular'],
};
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"build-storybook": "build-storybook",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"deploy-storybook": "storybook-to-ghpages",
"gc": "commit",
"lint": "eslint --ext .js --ext .jsx .",
"precommit": "npm run lint",
"commit": "git-cz",
"commitmsg": "commitlint -e $GIT_PARAMS",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"snapshot": "jest --updateSnapshot",
"start": "start-storybook -p 6006",
Expand All @@ -34,6 +35,10 @@
"react-proptype-conditional-require": "^1.0.4"
},
"devDependencies": {
"@commitlint/cli": "^4.3.0",
"@commitlint/config-angular": "^4.3.0",
"@commitlint/prompt": "^5.0.1",
"@commitlint/prompt-cli": "^5.0.1",
"@storybook/addon-actions": "^3.2.12",
"@storybook/addon-console": "^1.0.0",
"@storybook/addon-options": "^3.2.6",
Expand All @@ -49,10 +54,8 @@
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-env": "^1.4.0",
"babel-preset-react": "^6.24.1",
"commitizen": "^2.9.6",
"coveralls": "^3.0.0",
"css-loader": "^0.28.4",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^3.1.1",
"enzyme-adapter-react-16": "^1.0.4",
"eslint": "^4.5.0",
Expand Down Expand Up @@ -90,10 +93,5 @@
"/node_modules/",
"(.stories)\\.(jsx)$"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}

0 comments on commit 5208744

Please sign in to comment.