Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
adonis0302 committed Jul 5, 2017
2 parents 77a7770 + 08122f6 commit d0b82d7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 60 deletions.
5 changes: 2 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
paths:
- "node_modules"
- run:
# :TODO: Validate all commit messages, rather than the last one as a heuristic.
name: Validating last commit message
command: yarn validate-commit-msg "$(git log -1 --pretty=%B)"
name: Validating commit messages
command: yarn commitplease master..HEAD
- run:
name: Linting code
command: yarn lint:ts
Expand Down
43 changes: 18 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"build": "webpack --config build.webpack.config.js",
"commit": "git-cz",
"commitmsg": "validate-commit-msg",
"commitmsg": "commitplease .git/COMMIT_EDITMSG",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint:ts": "tslint --format verbose --config ./src/tslint.json --project ./src/tsconfig.json --type-check './src/**/*.ts' && tslint --format verbose --config ./test/tslint.json --project ./test/tsconfig.json --type-check './test/**/*.ts'",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
Expand Down Expand Up @@ -52,6 +52,7 @@
"@types/when": "2.4.29",
"ava": "0.20.0",
"commitizen": "2.9.6",
"commitplease": "2.7.10",
"condition-circle": "1.5.0",
"conventional-changelog-cli": "1.3.1",
"conventional-commit-types": "2.1.0",
Expand All @@ -66,35 +67,27 @@
"ts-loader": "2.2.1",
"tslint": "5.1.0",
"typescript": "2.3.4",
"validate-commit-msg": "2.12.1",
"webpack": "2.6.1"
},
"commitplease": {
"nohook": true,
"style": "angular",
"types": [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"style",
"test"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"validate-commit-msg": {
"types": "conventional-commit-types",
"scope": {
"required": false,
"allowed": [
"future",
"option",
"package",
"readme",
"try",
"tslint",
"webpack"
],
"validate": true,
"multiple": false
},
"warnOnFail": false,
"maxSubjectLength": 100,
"subjectPattern": ".+",
"subjectPatternErrorMsg": "subject does not match subject pattern!",
"helpMessage": "%s\r\n\r\nThis commit message style is parsed to automatically create changelogs:\r\nhttps://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/convention.md",
"autoFix": false
}
},
"release": {
Expand Down
52 changes: 20 additions & 32 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,6 @@ colors@^1.0.3, colors@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"

colors@~0.6.0-1:
version "0.6.2"
resolved "https://registry.yarnpkg.com/colors/-/colors-0.6.2.tgz#2423fe6678ac0c5dae8852e5d0e5be08c997abcc"

combined-stream@^1.0.5, combined-stream@~1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009"
Expand All @@ -1088,10 +1084,6 @@ commander@^2.9.0:
dependencies:
graceful-readlink ">= 1.0.0"

commander@~2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.1.0.tgz#d121bbae860d9992a3d517ba96f56588e47c6781"

commitizen@2.9.6:
version "2.9.6"
resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-2.9.6.tgz#c0d00535ef264da7f63737edfda4228983fa2291"
Expand All @@ -1112,6 +1104,16 @@ commitizen@2.9.6:
shelljs "0.7.6"
strip-json-comments "2.0.1"

commitplease@2.7.10:
version "2.7.10"
resolved "https://registry.yarnpkg.com/commitplease/-/commitplease-2.7.10.tgz#129af5abb365b46f25e652020c5d1548c947f163"
dependencies:
chalk "^1.1.1"
git-tools "^0.2.1"
ini "^1.3.4"
object-assign "^4.1.0"
semver "^5.1.0"

common-path-prefix@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-1.0.0.tgz#cd52f6f0712e0baab97d6f9732874f22f47752c0"
Expand Down Expand Up @@ -1858,10 +1860,6 @@ find-node-modules@1.0.4:
findup-sync "0.4.2"
merge "^1.2.0"

find-parent-dir@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54"

find-root@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.0.0.tgz#962ff211aab25c6520feeeb8d6287f8f6e95807a"
Expand Down Expand Up @@ -1894,13 +1892,6 @@ findup-sync@~0.3.0:
dependencies:
glob "~5.0.0"

findup@0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/findup/-/findup-0.1.5.tgz#8ad929a3393bac627957a7e5de4623b06b0e2ceb"
dependencies:
colors "~0.6.0-1"
commander "~2.1.0"

fn-name@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/fn-name/-/fn-name-2.0.1.tgz#5214d7537a4d06a4a301c0cc262feb84188002e7"
Expand Down Expand Up @@ -2111,6 +2102,12 @@ git-semver-tags@^1.2.0:
meow "^3.3.0"
semver "^5.0.1"

git-tools@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/git-tools/-/git-tools-0.2.1.tgz#6e1846af2c0e91ab59258b48f9b53c1279b3b273"
dependencies:
spawnback "~1.0.0"

gitconfiglocal@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b"
Expand Down Expand Up @@ -4261,10 +4258,6 @@ semver-diff@^2.0.0:
dependencies:
semver "^5.0.3"

semver-regex@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-1.0.0.tgz#92a4969065f9c70c694753d55248fc68f8f652c9"

"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.2.0, semver@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
Expand Down Expand Up @@ -4369,6 +4362,10 @@ spawn-wrap@^1.3.7:
signal-exit "^3.0.2"
which "^1.2.4"

spawnback@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/spawnback/-/spawnback-1.0.0.tgz#f73662f7e54d95367eca74d6426c677dd7ea686f"

spdx-correct@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40"
Expand Down Expand Up @@ -4832,15 +4829,6 @@ uuid@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04"

validate-commit-msg@2.12.1:
version "2.12.1"
resolved "https://registry.yarnpkg.com/validate-commit-msg/-/validate-commit-msg-2.12.1.tgz#612b61bc9f09f0fee5130de3648870d01cdddf1d"
dependencies:
conventional-commit-types "^2.0.0"
find-parent-dir "^0.3.0"
findup "0.1.5"
semver-regex "1.0.0"

validate-npm-package-license@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc"
Expand Down

0 comments on commit d0b82d7

Please sign in to comment.