From a780762090ca3c0b703b0fea5d567d3cbc2e8c09 Mon Sep 17 00:00:00 2001 From: Stefan Hynek <stefan.hynek@uni-goettingen.de> Date: Fri, 19 Jun 2020 14:49:09 +0200 Subject: [PATCH] refactor(conventional-changelog): move from custom to angular convention --- .cz-config.js | 68 -------------------------------------- package-lock.json | 83 ----------------------------------------------- package.json | 6 ++-- 3 files changed, 2 insertions(+), 155 deletions(-) delete mode 100644 .cz-config.js diff --git a/.cz-config.js b/.cz-config.js deleted file mode 100644 index 3c04b7a..0000000 --- a/.cz-config.js +++ /dev/null @@ -1,68 +0,0 @@ -module.exports = { - types: [ - { value: 'PATCH', name: 'PATCH: Small addition to or revision of the TR\'s Markdown files' }, - { value: 'MINOR', name: 'MINOR: Medium addition to or revision of the TR\'s Markdown files' }, - { value: 'MAJOR', name: 'MAJOR: Huge contribution to or revision of the TR\'s Markdown files' }, - { value: 'feat', name: 'feat: A new feature' }, - { value: 'fix', name: 'fix: A bug fix' }, - { value: 'docs', name: 'docs: General documentation-only changes' }, - { - value: 'style', - name: - 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semicolons, etc)', - }, - { value: 'test', name: 'test: Adding missing tests' }, - { - value: 'build', - name: - 'build: Changes that affect the build system or dependencies\n (example scopes: npm, docker, pip, ant)', - }, - { - value: 'ci', - name: - 'ci: Changes to the CI configuration\n (example scopes: gitlab, travis)', - }, - { - value: 'chore', - name: - 'chore: Other changes that modify files other than source or test files' - }, - { value: 'revert', name: 'revert: Revert to a commit' }, - ], - - // it needs to match the value for field type. Eg.: 'fix' - /* - scopeOverrides: { - fix: [ - - {name: 'merge'}, - {name: 'style'}, - {name: 'e2eTest'}, - {name: 'unitTest'} - ] - }, - */ - // override the messages, defaults are as follows - messages: { - type: "Select the type of change that you're committing:", - scope: '\nDenote the SCOPE of this change (optional):', - // used if allowCustomScopes is true - customScope: 'Denote the SCOPE of this change:', - subject: 'Write a SHORT, IMPERATIVE mood description of the change:\n', - body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', - breaking: 'List any BREAKING CHANGES (optional):\n', - footer: 'Reference ISSUES touched by this change (optional). E.g.: closes #31, see #34:\n', - confirmCommit: 'Are you sure you want to proceed with the commit above?', - }, - - allowCustomScopes: true, - allowBreakingChanges: ['feat', 'fix'], - // skip any questions you want - skipQuestions: ['body'], - - // limit subject length - subjectLimit: 100, - // breaklineChar: '|', // It is supported for fields body and footer. - footerPrefix : '' - // askForBreakingChangeFirst : true, // default is false -}; diff --git a/package-lock.json b/package-lock.json index bed1041..032db62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1621,20 +1621,6 @@ "word-wrap": "^1.0.3" } }, - "cz-customizable": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/cz-customizable/-/cz-customizable-6.2.0.tgz", - "integrity": "sha512-6fBA8pbwApTY20Q5aDkWgJcg5wCmbwlcnccUFyBQypN8AoRJ0Vt4pLehai0/P2Xr29t2UDYoNGOUDhi4eoR0JQ==", - "dev": true, - "requires": { - "editor": "1.0.0", - "find-config": "^1.0.0", - "inquirer": "^6.3.1", - "lodash": "^4.17.11", - "temp": "^0.9.0", - "word-wrap": "^1.2.3" - } - }, "dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -1805,12 +1791,6 @@ "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", "dev": true }, - "editor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/editor/-/editor-1.0.0.tgz", - "integrity": "sha1-YMf4e9YrzGqJT6jM1q+3gjok90I=", - "dev": true - }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -2194,15 +2174,6 @@ } } }, - "find-config": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-config/-/find-config-1.0.0.tgz", - "integrity": "sha1-6vorm8B/qckOmgw++c7PHMgA9TA=", - "dev": true, - "requires": { - "user-home": "^2.0.0" - } - }, "find-node-modules": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/find-node-modules/-/find-node-modules-2.0.0.tgz", @@ -2705,27 +2676,6 @@ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true }, - "inquirer": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", - "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", - "dev": true, - "requires": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.12", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - } - }, "into-stream": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", @@ -7199,12 +7149,6 @@ "mimic-fn": "^1.0.0" } }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, "os-name": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", @@ -7741,15 +7685,6 @@ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true }, - "rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, "run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -8380,15 +8315,6 @@ } } }, - "temp": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.1.tgz", - "integrity": "sha512-WMuOgiua1xb5R56lE0eH6ivpVmg/lq2OHm4+LtT/xtEtPQ+sz6N3bBM6WZ5FvO1lO4IKIOb43qnhoc4qxP5OeA==", - "dev": true, - "requires": { - "rimraf": "~2.6.2" - } - }, "temp-dir": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", @@ -8648,15 +8574,6 @@ "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", "dev": true }, - "user-home": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz", - "integrity": "sha1-nHC/2Babwdy/SGBODwS4tJzenp8=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0" - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", diff --git a/package.json b/package.json index f51cda1..dcd214c 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,13 @@ "@semantic-release/gitlab-config": "^8.0.0", "@semantic-release/release-notes-generator": "^9.0.1", "commitizen": "^4.1.2", - "cz-customizable": "^6.2.0", + "cz-conventional-changelog": "^3.2.0", "markdownlint-cli": "^0.23.1", "semantic-release": "^17.0.8" }, "config": { "commitizen": { - "path": "./node_modules/cz-customizable" + "path": "./node_modules/cz-conventional-changelog" } }, "release": { @@ -57,8 +57,6 @@ "@semantic-release/git", { "assets": [ - "technical-reference.pdf", - "technical-reference.md", "CHANGELOG.md" ] } -- GitLab