Skip to content

Commit

Permalink
ci: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrichards committed Nov 7, 2019
1 parent 249e0a4 commit eecc437
Show file tree
Hide file tree
Showing 32 changed files with 246 additions and 21 deletions.
5 changes: 1 addition & 4 deletions .circleci/config.yml
Expand Up @@ -6,14 +6,11 @@ jobs:
executor: node/default
steps:
- checkout
- node/install:
install-npm: false
install-yarn: false
node-version: '12.10.0'
- node/with-cache:
cache-key: yarn.lock
steps:
- run: yarn install --frozen-lockfile
- run: yarn commitlint
- run: yarn build
- run: yarn tsc
- run: yarn test
Expand Down
Binary file added .yarn/cache/@commitlint-cli-8.2.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/@commitlint-ensure-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-format-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-is-ignored-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-lint-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-message-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-parse-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-read-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-rules-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-to-lines-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@commitlint-top-level-8.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/@marionebl-sander-0.6.1.tgz
Binary file not shown.
Binary file added .yarn/cache/@types-semver-6.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/babel-polyfill-6.26.0.tgz
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/conventional-commits-parser-2.1.7.tgz
Binary file not shown.
Binary file added .yarn/cache/git-raw-commits-1.3.6.tgz
Binary file not shown.
Binary file added .yarn/cache/graceful-fs-4.2.3.tgz
Binary file not shown.
Binary file added .yarn/cache/is-text-path-1.0.1.tgz
Binary file not shown.
Binary file added .yarn/cache/meow-5.0.0.tgz
Binary file not shown.
Binary file added .yarn/cache/minimist-0.0.8.tgz
Binary file not shown.
Binary file added .yarn/cache/mkdirp-0.5.1.tgz
Binary file not shown.
Binary file added .yarn/cache/regenerator-runtime-0.10.5.tgz
Binary file not shown.
Binary file added .yarn/cache/rimraf-2.7.1.tgz
Binary file not shown.
Binary file added .yarn/cache/semver-6.2.0.tgz
Binary file not shown.
Binary file added .yarn/cache/text-extensions-1.9.0.tgz
Binary file not shown.
Binary file added .yarn/cache/yargs-parser-10.1.0.tgz
Binary file not shown.
1 change: 1 addition & 0 deletions commitlint.config.js
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -20,6 +20,8 @@
"@types/json-schema": "7.0.3"
},
"devDependencies": {
"@commitlint/cli": "8.2.0",
"@commitlint/config-conventional": "8.2.0",
"@sketch-hq/sketch-reference-files": "2.0.0",
"ajv": "6.10.2",
"chalk": "2.4.2",
Expand All @@ -46,7 +48,8 @@
"test": "echo \"No test specified\"",
"format-check": "prettier --check **/*.{mjs,md,yaml,json}",
"release": "HUSKY_SKIP_HOOKS=1 standard-version --no-verify",
"prepublishOnly": "yarn build && yarn tsc"
"prepublishOnly": "yarn build && yarn tsc",
"commitlint": "commitlint --from HEAD~1 --to HEAD --verbose"
},
"config": {
"commitizen": {
Expand Down
256 changes: 240 additions & 16 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit eecc437

Please sign in to comment.