Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
move example-repo task around for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Mar 27, 2018
1 parent ef13d86 commit 456c7f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 9 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const gulp = require('gulp')
const del = require('del')
const shell = require('gulp-shell')

require('./tasks/webpack')
require('./tasks/ts-types')
Expand Down Expand Up @@ -39,6 +40,14 @@ gulp.task('release', [
'test:single' // headless, single run
])

// try to build example repos
gulp.task('example-repos', [ 'webpack', 'ts-types' ], shell.task(
'./bin/build-example-repos.sh'
))

// group these somewhat unrelated tasks together for CI
gulp.task('lint-and-example-repos', [ 'lint', 'example-repos' ])

gulp.task('clean', function() {
return del([ 'dist/', 'tmp/', '.awcache/' ])
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"scripts": {
"clean": "gulp clean",
"dist": "gulp dist",
"lint": "gulp lint",
"lint": "gulp lint-and-example-repos",
"test": "gulp test:single"
}
}
8 changes: 1 addition & 7 deletions tasks/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ gulp.task('lint', [
'lint:js:built',
'lint:js:node',
'lint:js:tests',
'lint:dts',
'lint:example-repos'
'lint:dts'
])

gulp.task('lint:ts', function() {
Expand Down Expand Up @@ -96,8 +95,3 @@ gulp.task('lint:js:tests', function() {
gulp.task('lint:dts', [ 'ts-types' ], shell.task(
'./node_modules/typescript/bin/tsc --strict dist/fullcalendar.d.ts'
))

// try to build example repos
gulp.task('lint:example-repos', [ 'webpack', 'ts-types' ], shell.task(
'./bin/build-example-repos.sh'
))

0 comments on commit 456c7f1

Please sign in to comment.