diff --git a/.npmignore b/.npmignore deleted file mode 100644 index c9654a6..0000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.travis.yml - diff --git a/README.md b/README.md index 110de0d..0d5a458 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Used by [commitizen/cz-conventional-changelog](https://github.com/commitizen/cz- Can be used with [kentcdodds/validate-commit-msg](https://github.com/kentcdodds/validate-commit-msg#types). Commit types originally from: -* [Angular Git Commit Message Conventions](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type) +* [AngularJS Git Commit Message Conventions](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#type) * [commitizen/cz-conventional-changelog](https://github.com/commitizen/cz-conventional-changelog) Created for [AndersDJohnson/conventional-commit-types-cli](https://github.com/AndersDJohnson/conventional-commit-types-cli). diff --git a/index.json b/index.json index ffa95e8..afcfdd0 100644 --- a/index.json +++ b/index.json @@ -1,6 +1,21 @@ { - "$schema": "./index.spec.json", "types": { + "build": { + "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)", + "title": "Builds" + }, + "chore": { + "description": "Other changes that don't modify src or test files", + "title": "Chores" + }, + "ci": { + "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)", + "title": "Continuous Integrations" + }, + "docs": { + "description": "Documentation only changes", + "title": "Documentation" + }, "feat": { "description": "A new feature", "title": "Features" @@ -9,41 +24,25 @@ "description": "A bug fix", "title": "Bug Fixes" }, - "docs": { - "description": "Documentation only changes", - "title": "Documentation" - }, - "style": { - "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)", - "title": "Styles" + "perf": { + "description": "A code change that improves performance", + "title": "Performance Improvements" }, "refactor": { "description": "A code change that neither fixes a bug nor adds a feature", "title": "Code Refactoring" }, - "perf": { - "description": "A code change that improves performance", - "title": "Performance Improvements" + "revert": { + "description": "Reverts a previous commit", + "title": "Reverts" + }, + "style": { + "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)", + "title": "Styles" }, "test": { "description": "Adding missing tests or correcting existing tests", "title": "Tests" - }, - "build": { - "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)", - "title": "Builds" - }, - "ci": { - "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)", - "title": "Continuous Integrations" - }, - "chore": { - "description": "Other changes that don't modify src or test files", - "title": "Chores" - }, - "revert": { - "description": "Reverts a previous commit", - "title": "Reverts" } } -} +} \ No newline at end of file diff --git a/index.spec.js b/index.spec.js deleted file mode 100644 index 4b4eaa5..0000000 --- a/index.spec.js +++ /dev/null @@ -1,9 +0,0 @@ -var jsonschema = require("jsonschema"); -var fs = require("fs"); - -var data = fs.readFileSync("./index.json"); -var schema = fs.readFileSync("./index.spec.json"); - -jsonschema.validate(JSON.parse(data), JSON.parse(schema), { - throwAll: true, -}); diff --git a/index.spec.json b/index.spec.json deleted file mode 100644 index 7079138..0000000 --- a/index.spec.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Conventional Commit Types Data Schema", - "additionalProperties": true, - "definitions": { - "commitType": { - "type": "object", - "additionalProperties": false, - "properties": { - "description": { - "type": "string" - }, - "title": { - "type": "string" - } - }, - "required": ["description", "title"] - } - }, - "properties": { - "types": { - "type": "object", - "additionalProperties": { "$ref": "#/definitions/commitType" } - } - }, - "required": ["types"] -} diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 9c4cd86..0000000 --- a/package-lock.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "conventional-commit-types", - "version": "3.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "3.0.0", - "license": "ISC", - "devDependencies": { - "jsonschema": "^1.4.0" - } - }, - "node_modules/jsonschema": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.0.tgz", - "integrity": "sha512-/YgW6pRMr6M7C+4o8kS+B/2myEpHCrxO4PEWnqJNBFMjn7EWXqlQ4tGwL6xTHeRplwuZmcAncdvfOad1nT2yMw==", - "dev": true, - "engines": { - "node": "*" - } - } - }, - "dependencies": { - "jsonschema": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.0.tgz", - "integrity": "sha512-/YgW6pRMr6M7C+4o8kS+B/2myEpHCrxO4PEWnqJNBFMjn7EWXqlQ4tGwL6xTHeRplwuZmcAncdvfOad1nT2yMw==", - "dev": true - } - } -} diff --git a/package.json b/package.json index bea43f9..28ac8ac 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,19 @@ { "name": "conventional-commit-types", - "version": "3.0.0", + "version": "2.2.0", "description": "List of conventional commit types.", "main": "index.json", "scripts": { - "test": "node index.spec" + "test": "json -f index.json" }, "keywords": [], - "author": "Anders D. Johnson", + "author": "Anders D. Johnson (https://andrz.me/)", "license": "ISC", "repository": { "type": "git", "url": "https://github.com/commitizen/conventional-commit-types.git" }, "devDependencies": { - "jsonschema": "^1.4.0" + "json": "^9.0.4" } }