This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from apiaryio/honzajavorek/update-deps
Upgrade dependencies (& more)
- Loading branch information
Showing
6 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["@commitlint/config-angular"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"node": ">= 4" | ||
}, | ||
"scripts": { | ||
"lint": "conventional-changelog-lint --from=master && coffeelint src", | ||
"lint": "scripts/commitlint.sh && coffeelint src", | ||
"build": "coffee -b -c -o lib/ src/", | ||
"test": "mocha \"test/**/*-test.coffee\"", | ||
"test:coverage": "scripts/coverage.sh", | ||
|
@@ -28,23 +28,22 @@ | |
"uri-template": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^4.2.1", | ||
"@commitlint/config-angular": "^4.2.1", | ||
"chai": "^4.1.0", | ||
"chai-json-schema": "^1.3.0", | ||
"coffee-coverage": "^2.0.1", | ||
"coffee-script": "^1.12.6", | ||
"coffeelint": "^1.15.7", | ||
"conventional-changelog-lint": "^1.1.9", | ||
"coveralls": "^2.13.1", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"drafter": "^1.0.0", | ||
"jscoverage": "^0.6.0", | ||
"mocha": "^3.4.1", | ||
"mocha": "^4.0.1", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"proxyquire": "^1.8.0", | ||
"semantic-release": "^7.0.2", | ||
"sinon": "^2.2.0", | ||
"swagger-zoo": "^2.5.2", | ||
"tv4": "^1.3.0" | ||
"semantic-release": "^8.2.0", | ||
"sinon": "^4.0.1", | ||
"swagger-zoo": "^2.5.2" | ||
}, | ||
"keywords": [ | ||
"api", | ||
|
@@ -55,10 +54,5 @@ | |
"acceptance" | ||
], | ||
"author": "Apiary Czech Republic, s.r.o. <[email protected]>", | ||
"license": "MIT", | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# Validates format of the commit messages on Travis CI | ||
|
||
# Copyright (c) 2016 Mario Nebl | ||
# License: MIT (https://github.com/marionebl/commitlint/blob/master/license.md) | ||
# Source: https://marionebl.github.io/commitlint/#/guides-ci-setup | ||
|
||
set -e | ||
set -u | ||
|
||
|
||
if [[ $TRAVIS_PULL_REQUEST_SLUG != "" && $TRAVIS_PULL_REQUEST_SLUG != $TRAVIS_REPO_SLUG ]]; then | ||
# This is a Pull Request from a different slug, hence a forked repository | ||
git remote add "$TRAVIS_PULL_REQUEST_SLUG" "https://github.com/$TRAVIS_PULL_REQUEST_SLUG.git" | ||
git fetch "$TRAVIS_PULL_REQUEST_SLUG" | ||
|
||
# Use the fetched remote pointing to the source clone for comparison | ||
TO="$TRAVIS_PULL_REQUEST_SLUG/$TRAVIS_PULL_REQUEST_BRANCH" | ||
else | ||
# This is a Pull Request from the same remote, no clone repository | ||
TO=$TRAVIS_COMMIT | ||
fi | ||
|
||
# Lint all commits in the PR | ||
# - Covers fork pull requests (when TO=slug/branch) | ||
# - Covers branch pull requests (when TO=branch) | ||
./node_modules/.bin/commitlint --from="$TRAVIS_BRANCH" --to="$TO" | ||
|
||
# Always lint the triggerig commit | ||
# - Covers direct commits | ||
./node_modules/.bin/commitlint --from="$TRAVIS_COMMIT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--compilers=coffee:coffee-script/register | ||
--require=coffee-script/register | ||
--reporter=test/reporter.js | ||
--watch-extensions=coffee | ||
--recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters