Skip to content

Commit

Permalink
(#1) Adding a scope of '@Elevai' to all packages ready for publishing…
Browse files Browse the repository at this point in the history
… to npm.
  • Loading branch information
danrivett committed Feb 22, 2020
1 parent 17a9d48 commit a3acdd7
Show file tree
Hide file tree
Showing 45 changed files with 115 additions and 107 deletions.
4 changes: 2 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
plugins: ['commitlint-plugin-github'],
extends: ['github'],
plugins: ['@elevai/commitlint-plugin-github'],
extends: ['@elevai/commitlint-config-github'],
}
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"name": "commitlint-github",
"name": "@elevai/commitlint-github",
"description": "✔️❌ Shareable commitlint config enforcing prefixing each commit with associated GitHub Issue(s)",
"version": "0.1.0",
"license": "MIT",
"author": {
"name": "Elevai Consulting",
"email": "[email protected]",
"url": "https://www.elevai.com"
},
"author": "Elevai Consulting <[email protected]> (https://www.elevai.com)",
"keywords": [
"commitlint",
"commitlintplugin",
"github-commitlint",
"github",
"multipack"
],
"homepage": "https://github.com/elevai-consulting/commitlint-github#readme",
"repository": {
"type": "git",
"url": "https://github.com/elevai-consulting/commitlint-github"
"url": "git+https://github.com/elevai-consulting/commitlint-github.git"
},
"bugs": {
"url": "https://github.com/elevai-consulting/commitlint-github/issues"
Expand Down Expand Up @@ -48,12 +45,12 @@
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@elevai/commitlint-config-github": "file:./packages/commitlint-config-github",
"@elevai/commitlint-github-utils": "file:./packages/commitlint-github-utils",
"@elevai/commitlint-plugin-github": "file:./packages/commitlint-plugin-github",
"@types/jest": "^25.1.0",
"@typescript-eslint/eslint-plugin": "^2.2.0",
"@typescript-eslint/parser": "^2.2.0",
"commitlint-config-github": "file:./packages/commitlint-config-github",
"commitlint-github-utils": "file:./packages/commitlint-github-utils",
"commitlint-plugin-github": "file:./packages/commitlint-plugin-github",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/commitlint-config-github/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions packages/commitlint-config-github/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"name": "commitlint-config-github",
"name": "@elevai/commitlint-config-github",
"description": "A recomended config who contain preconfigured rules for github commits messages style",
"version": "0.1.0",
"license": "MIT",
"author": {
"name": "Elevai Consulting",
"email": "[email protected]",
"url": "https://www.elevai.com"
},
"author": "Elevai Consulting <[email protected]> (https://www.elevai.com)",
"keywords": [
"commitlint",
"commitlintplugin",
"github-commitlint",
"github",
"multipack"
],
"homepage": "https://github.com/elevai-consulting/commitlint-github#readme",
"repository": {
"type": "git",
"url": "https://github.com/elevai-consulting/commitlint-github"
"url": "git+https://github.com/elevai-consulting/commitlint-github.git"
},
"bugs": {
"url": "https://github.com/elevai-consulting/commitlint-github/issues"
Expand All @@ -37,6 +34,6 @@
"webpack-cli": "^3.3.11"
},
"dependencies": {
"commitlint-github-utils": "^0.1.0"
"@elevai/commitlint-github-utils": "^0.1.0"
}
}
4 changes: 2 additions & 2 deletions packages/commitlint-config-github/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { When } from 'commitlint-github-utils/@types';
import utils from 'commitlint-github-utils';
import { When } from '@elevai/commitlint-github-utils/@types';
import utils from '@elevai/commitlint-github-utils';
import { CommitlintConfigGitHub } from '../@types';

const commitlintGitHubRules = utils.commitlintGitHubConstants.GITHUB_RULES;
Expand Down
5 changes: 3 additions & 2 deletions packages/commitlint-github-e2e-tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 23 additions & 4 deletions packages/commitlint-github-e2e-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
{
"private": true,
"name": "commitlint-github-e2e-tests",
"name": "@elevai/commitlint-github-e2e-tests",
"description": "Basic end-to-end tests.",
"version": "0.1.0",
"license": "MIT",
"author": "Elevai Consulting <[email protected]> (https://www.elevai.com)",
"keywords": [
"commitlint",
"commitlintplugin",
"github-commitlint",
"github",
"multipack"
],
"homepage": "https://github.com/elevai-consulting/commitlint-github#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/elevai-consulting/commitlint-github.git"
},
"bugs": {
"url": "https://github.com/elevai-consulting/commitlint-github/issues"
},
"devDependencies": {
"@types/jest": "^25.1.0",
"ts-jest": "^25.2.1",
Expand All @@ -10,8 +29,8 @@
"typescript": "^3.8.2"
},
"dependencies": {
"commitlint-config-github": "file:../commitlint-config-github",
"commitlint-github-utils": "file:../commitlint-github-utils",
"commitlint-plugin-github": "file:../commitlint-plugin-github"
"@elevai/commitlint-config-github": "file:../commitlint-config-github",
"@elevai/commitlint-github-utils": "file:../commitlint-github-utils",
"@elevai/commitlint-plugin-github": "file:../commitlint-plugin-github"
}
}
2 changes: 1 addition & 1 deletion packages/commitlint-github-utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions packages/commitlint-github-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"name": "commitlint-github-utils",
"name": "@elevai/commitlint-github-utils",
"description": "A set of utils for commitlint-github monorepo",
"version": "0.1.0",
"license": "MIT",
"author": {
"name": "Elevai Consulting",
"email": "[email protected]",
"url": "https://www.elevai.com"
},
"author": "Elevai Consulting <[email protected]> (https://www.elevai.com)",
"keywords": [
"commitlint",
"commitlintplugin",
"github-commitlint",
"github",
"multipack"
],
"homepage": "https://github.com/elevai-consulting/commitlint-github#readme",
"repository": {
"type": "git",
"url": "https://github.com/elevai-consulting/commitlint-github"
"url": "git+https://github.com/elevai-consulting/commitlint-github.git"
},
"bugs": {
"url": "https://github.com/elevai-consulting/commitlint-github/issues"
Expand Down
4 changes: 2 additions & 2 deletions packages/commitlint-plugin-github/@types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { When } from 'commitlint-github-utils/@types';
import { ParsedCommitMessage } from 'commitlint-github-utils';
import { When } from '@elevai/commitlint-github-utils/@types';
import { ParsedCommitMessage } from '@elevai/commitlint-github-utils';

export type RuleResolverResult = [boolean, string?];

Expand Down
2 changes: 1 addition & 1 deletion packages/commitlint-plugin-github/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions packages/commitlint-plugin-github/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"name": "commitlint-plugin-github",
"name": "@elevai/commitlint-plugin-github",
"description": "A plugin that implement all github commits messages style rules and validate commit messages",
"version": "0.1.0",
"license": "MIT",
"author": {
"name": "Elevai Consulting",
"email": "[email protected]",
"url": "https://www.elevai.com"
},
"author": "Elevai Consulting <[email protected]> (https://www.elevai.com)",
"keywords": [
"commitlint",
"commitlintplugin",
"github-commitlint",
"github",
"multipack"
],
"homepage": "https://github.com/elevai-consulting/commitlint-github#readme",
"repository": {
"type": "git",
"url": "https://github.com/elevai-consulting/commitlint-github"
"url": "git+https://github.com/elevai-consulting/commitlint-github.git"
},
"bugs": {
"url": "https://github.com/elevai-consulting/commitlint-github/issues"
Expand All @@ -38,6 +35,6 @@
},
"dependencies": {
"@commitlint/rules": "^8.3.4",
"commitlint-github-utils": "^0.1.0"
"@elevai/commitlint-github-utils": "^0.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/commitlint-plugin-github/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import utils from 'commitlint-github-utils';
import utils from '@elevai/commitlint-github-utils';
import { CommitlintPluginGitHub } from '../@types';

import githubIssueNumberMissingRuleResolver from './rules/githubIssueNumbers/isMissing';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import utils from 'commitlint-github-utils';
import utils from '@elevai/commitlint-github-utils';
import { RuleResolver } from '../../../@types';

const githubIssueNumberFormatRuleResolver: RuleResolver<void> = parsed => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import utils from 'commitlint-github-utils';
import utils from '@elevai/commitlint-github-utils';
import { RuleResolver } from '../../../@types';

const isNoDuplicates = (issueNumbers: number[]): boolean => new Set(issueNumbers).size === issueNumbers.length;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { When } from 'commitlint-github-utils/@types';
import utils from 'commitlint-github-utils';
import { When } from '@elevai/commitlint-github-utils/@types';
import utils from '@elevai/commitlint-github-utils';
import { RuleResolver } from '../../../@types';

const githubIssueNumberMissingRuleResolver: RuleResolver<boolean> = (parsed, when) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { When } from 'commitlint-github-utils/@types';
import { When } from '@elevai/commitlint-github-utils/@types';

import { RuleResolverResult } from '../../../../@types';
import githubIssueNumberFormatRuleResolver from '../isCorrectFormat';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { When } from 'commitlint-github-utils/@types';
import { When } from '@elevai/commitlint-github-utils/@types';

import { RuleResolverResult } from '../../../../@types';
import githubIssueNumberDuplicateRuleResolver from '../isDuplicate';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { When } from 'commitlint-github-utils/@types';
import { When } from '@elevai/commitlint-github-utils/@types';

import { RuleResolverResult } from '../../../../@types';
import githubIssueNumberMissingRuleResolver from '../isMissing';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParsedCommitMessage } from 'commitlint-github-utils';
import { ParsedCommitMessage } from '@elevai/commitlint-github-utils';

import { BaseParsedCommit, RuleResolverResult, RuleResolver } from '../../../@types';
import resolveRuleUsingBaseResolver from '../utils/wrappedRuleResolver';
Expand Down
4 changes: 2 additions & 2 deletions packages/commitlint-plugin-github/src/rules/subject/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// @ts-ignore
import baseRules from '@commitlint/rules';
// import { TargetCaseType } from '@commitlint/types'; // When it is published
import { TargetCaseType } from 'commitlint-github-utils/@types';
import utils from 'commitlint-github-utils';
import { TargetCaseType } from '@elevai/commitlint-github-utils/@types';
import utils from '@elevai/commitlint-github-utils';

import { RuleResolver } from '../../../@types';
import { subjectRuleResolver } from './helpers';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { When, ParsedCommitMessage } from 'commitlint-github-utils/@types';
import utils from 'commitlint-github-utils';
import { When, ParsedCommitMessage } from '@elevai/commitlint-github-utils/@types';
import utils from '@elevai/commitlint-github-utils';

import { RuleResolverResult, RuleResolver } from '../../../@types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
import baseRules from '@commitlint/rules';
import { When } from 'commitlint-github-utils/@types';
import utils from 'commitlint-github-utils';
import { When } from '@elevai/commitlint-github-utils/@types';
import utils from '@elevai/commitlint-github-utils';

import { BaseParsedCommit, RuleResolverResult, RuleResolver } from '../../../../@types';
import { subjectAdapter } from '../helpers';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParsedCommitMessage, When } from 'commitlint-github-utils/@types';
import { ParsedCommitMessage, When } from '@elevai/commitlint-github-utils/@types';
import { RuleResolver, RuleResolverResult, BaseParsedCommit } from '../../../../@types';
import { subjectAdapter, subjectRuleResolver } from '../helpers';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { TargetCaseType } from '@commitlint/types'; // When it is published
import { When, TargetCaseType } from 'commitlint-github-utils/@types';
import { When, TargetCaseType } from '@elevai/commitlint-github-utils/@types';
import { WhenAndRequiredValue, RuleResolverResult } from '../../../../@types';
import { subjectCaseRuleResolver } from '..';
import runRule from '../../utils/tests/utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { When } from 'commitlint-github-utils/@types';
import { When } from '@elevai/commitlint-github-utils/@types';
import { RuleResolverResult } from '../../../../@types';
import { subjectEmptyRuleResolver } from '..';
import runRule from '../../utils/tests/utils';
Expand Down
Loading

0 comments on commit a3acdd7

Please sign in to comment.