diff --git a/.travis.yml b/.travis.yml index 7e7527cffd..4dfccd6bf8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ notifications: on_failure: always script: + - commitlint-travis - npm run lint - npm run test diff --git a/commitizen.config.js b/commitizen.config.js index 4bcc8e545b..ddfe7849b2 100644 --- a/commitizen.config.js +++ b/commitizen.config.js @@ -3,41 +3,30 @@ const types = [ { value: 'feat', - name: 'feat: A new feature' + name: 'feat: A new challenge or feature is being added.' }, { value: 'fix', - name: 'fix: A bug fix' + name: `fix: Modifying an existing challenge, fixing a bug, text, + or updating challenge tests.` }, { value: 'docs', - name: 'docs: Documentation only changes' - }, - { - value: 'style', - name: `style: Changes that do not affect the meaning of the code - (white-space, formatting, missing semi-colons, etc)` - }, - { - value: 'refactor', - name: 'refactor: A code change that neither fixes a bug nor adds a feature' - }, - { - value: 'perf', - name: 'perf: A code change that improves performance' + name: 'docs: Documentation only changes to readme, guides, etc.' }, { value: 'test', - name: 'test: Adding missing tests' + name: `test: Adding missing tests to tooling (NOT to be used for tests + inside challenges).` }, { value: 'chore', name: `chore: Changes to the build process or auxiliary tools - and libraries such as documentation generation` + and libraries such as documentation generation.` }, { value: 'revert', - name: 'revert: Revert a commit' + name: 'revert: Revert a commit.' } ]; diff --git a/package-lock.json b/package-lock.json index f73e783da5..7f7efbce43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -696,6 +696,268 @@ "find-up": "2.1.0" } }, + "@commitlint/travis-cli": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/travis-cli/-/travis-cli-7.0.0.tgz", + "integrity": "sha1-LYaYMQtlkIlz7BxeZrFRZL1D9eo=", + "dev": true, + "requires": { + "@commitlint/cli": "7.0.0", + "babel-runtime": "6.26.0", + "execa": "0.9.0" + }, + "dependencies": { + "@commitlint/cli": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-7.0.0.tgz", + "integrity": "sha1-O/htirL71QdMMRS3uj9LQbd189w=", + "dev": true, + "requires": { + "@commitlint/format": "7.0.0", + "@commitlint/lint": "7.0.0", + "@commitlint/load": "7.0.0", + "@commitlint/read": "7.0.0", + "babel-polyfill": "6.26.0", + "chalk": "2.3.1", + "get-stdin": "5.0.1", + "lodash.merge": "4.6.1", + "lodash.pick": "4.4.0", + "meow": "5.0.0" + } + }, + "@commitlint/ensure": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-7.0.0.tgz", + "integrity": "sha1-PVIQu5iEFoRJJolaeCpVgVcxd50=", + "dev": true, + "requires": { + "lodash.camelcase": "4.3.0", + "lodash.kebabcase": "4.1.1", + "lodash.snakecase": "4.1.1", + "lodash.startcase": "4.4.0", + "lodash.upperfirst": "4.3.1" + } + }, + "@commitlint/execute-rule": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-7.0.0.tgz", + "integrity": "sha1-y8ZTFPqeu5zSxbjN1NymGFs6ykw=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "@commitlint/format": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-7.0.0.tgz", + "integrity": "sha1-O+H98MPEH+uY4nW09gXFmMUJuSA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "chalk": "2.3.1" + } + }, + "@commitlint/is-ignored": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-7.0.0.tgz", + "integrity": "sha1-0yiil2J0yfEG4xmxysdd2Eg2D8k=", + "dev": true, + "requires": { + "semver": "5.5.0" + } + }, + "@commitlint/lint": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-7.0.0.tgz", + "integrity": "sha1-rt6eFfVRuCKvfZ2lXfSIGtODkNk=", + "dev": true, + "requires": { + "@commitlint/is-ignored": "7.0.0", + "@commitlint/parse": "7.0.0", + "@commitlint/rules": "7.0.0", + "babel-runtime": "6.26.0", + "lodash.topairs": "4.3.0" + } + }, + "@commitlint/load": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-7.0.0.tgz", + "integrity": "sha1-2ST0xcBtiEWxalC1Y4Kaf/+iMKg=", + "dev": true, + "requires": { + "@commitlint/execute-rule": "7.0.0", + "@commitlint/resolve-extends": "7.0.0", + "babel-runtime": "6.26.0", + "cosmiconfig": "4.0.0", + "lodash.merge": "4.6.1", + "lodash.mergewith": "4.6.1", + "lodash.pick": "4.4.0", + "lodash.topairs": "4.3.0", + "resolve-from": "4.0.0" + } + }, + "@commitlint/message": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-7.0.0.tgz", + "integrity": "sha1-b7IlY+MZAf9dpDkdsTRv2nEV+lM=", + "dev": true + }, + "@commitlint/parse": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-7.0.0.tgz", + "integrity": "sha1-7QJMxNjwh0QhqN1tFmdCM7aFktQ=", + "dev": true, + "requires": { + "conventional-changelog-angular": "1.6.6", + "conventional-commits-parser": "2.1.7" + } + }, + "@commitlint/read": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-7.0.0.tgz", + "integrity": "sha1-yb8iLjfgTDPB4ltJhlf+9oN34sg=", + "dev": true, + "requires": { + "@commitlint/top-level": "7.0.0", + "@marionebl/sander": "0.6.1", + "babel-runtime": "6.26.0", + "git-raw-commits": "1.3.6" + } + }, + "@commitlint/resolve-extends": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-7.0.0.tgz", + "integrity": "sha1-NJN1Jeo7wDc2XFMLzpscc+9Ot00=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "lodash.merge": "4.6.1", + "lodash.omit": "4.5.0", + "require-uncached": "1.0.3", + "resolve-from": "4.0.0", + "resolve-global": "0.1.0" + } + }, + "@commitlint/rules": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-7.0.0.tgz", + "integrity": "sha1-mnEIkcNQwQ1vYt67gg/uT97x4CY=", + "dev": true, + "requires": { + "@commitlint/ensure": "7.0.0", + "@commitlint/message": "7.0.0", + "@commitlint/to-lines": "7.0.0", + "babel-runtime": "6.26.0" + } + }, + "@commitlint/to-lines": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-7.0.0.tgz", + "integrity": "sha1-rbIpNo4rbHplfJCXVPtA7Ec2POI=", + "dev": true + }, + "@commitlint/top-level": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-7.0.0.tgz", + "integrity": "sha1-/yhYCrjBQxKQ43sdUH4O83DDjZk=", + "dev": true, + "requires": { + "find-up": "2.1.0" + } + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz", + "integrity": "sha512-QUU4ofkDoMIVO7hcx1iPTISs88wsO8jA92RQIm4JAwZvFGGAV2hSAA1NX7oVj2Ej2Q6NDTcRDjPTFrMCRZoJ6g==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.3", + "shebang-command": "1.2.0", + "which": "1.3.1" + } + }, + "execa": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.9.0.tgz", + "integrity": "sha512-BbUMBiX4hqiHZUA5+JujIjNb6TyAlp2D5KLheMjMluwOuzcnylDL4AxZYLLn1n2AGB49eSWwyKvvEQoRpnAtmA==", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "lru-cache": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", + "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "meow": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", + "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "dev": true, + "requires": { + "camelcase-keys": "4.2.0", + "decamelize-keys": "1.1.0", + "loud-rejection": "1.6.0", + "minimist-options": "3.0.2", + "normalize-package-data": "2.4.0", + "read-pkg-up": "3.0.0", + "redent": "2.0.0", + "trim-newlines": "2.0.0", + "yargs-parser": "10.0.0" + } + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + }, + "yargs-parser": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.0.0.tgz", + "integrity": "sha512-+DHejWujTVYeMHLff8U96rLc4uE4Emncoftvn5AjhB1Jw1pWxLzgBUT/WYbPrHmy6YPEBTZQx5myHhVcuuu64g==", + "dev": true, + "requires": { + "camelcase": "4.1.0" + } + } + } + }, "@marionebl/sander": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/@marionebl/sander/-/sander-0.6.1.tgz", diff --git a/package.json b/package.json index dcdfd9d822..ff13524aa6 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "devDependencies": { "@commitlint/cli": "^6.1.3", "@commitlint/config-conventional": "^6.1.3", + "@commitlint/travis-cli": "^7.0.0", "@semantic-release/changelog": "^2.0.2", "@semantic-release/git": "^5.0.0", "babel-cli": "^6.3.17",