Commit 63dd7247 authored by Dan Allen's avatar Dan Allen

Merge issue-13-specify-and-enforce-contribution-workflow into master

add Gulp commitlint task

See merge request antora/antora-direct!12
parents 535349d7 c6657132
Pipeline #13647839 passed with stages
in 4 minutes and 22 seconds
......@@ -28,3 +28,10 @@ test:
artifacts:
paths:
- coverage
commitlint:
stage: verify
cache:
policy: pull
paths:
- node_modules/
script: node_modules/.bin/gulp commitlint
'use strict'
module.exports = {
rules: {
}
}
......@@ -5,6 +5,7 @@ const gulp = require('gulp')
const lint = require('./tasks/lint-task')
const format = require('./tasks/format-task')
const test = require('./tasks/test-task')
const commitlint = require('./tasks/commitlint-task')
const testFiles = ['test/**/*-test.js', 'packages/*/test/**/*-test.js']
const allFiles = ['gulpfile.js', '{lib*,tasks,test}/**/*.js', 'packages/*/{lib,test}/**/*.js']
......@@ -14,5 +15,6 @@ gulp.task('format', () => format(allFiles))
gulp.task('test', ['lint'], () => test(testFiles))
gulp.task('test-only', () => test(testFiles))
gulp.task('test-watch', () => gulp.watch(allFiles, ['test-only']))
gulp.task('commitlint', () => commitlint())
gulp.task('default', ['test'])
......@@ -12,6 +12,7 @@
"node": ">= 8.0.0"
},
"devDependencies": {
"@commitlint/cli": "^3.2.0",
"array-to-stream": "^1.0.2",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
......
'use strict'
const run = require('./run-command')
module.exports = (files) => {
return run('commitlint', ['--from=master'])
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment