sourcegraph/gulpfile.js
Erik Seliger b59fb0ee2b
Improve integration test suite CI run script (#24666)
This PR does the following improvements:
- Fixes the CSS modules types generator when run outside of the repo root (`client/web`, for example)
- Fixes a deprecation in the Webpack dev server, which I saw along the way
- Adds the CSS generator to the set of generators run for build-web. They were missing there
- Share the set of generators to run for build-web, so this issue doesn't arise again
- Switch to a different run script where `yarn generate` isn't run twice
- The above grouping of log outputs into "steps"
2021-09-07 16:07:11 +02:00

39 lines
816 B
JavaScript

// @ts-check
const gulp = require('gulp')
const {
graphQlSchema,
graphQlOperations,
schema,
watchGraphQlSchema,
watchGraphQlOperations,
} = require('./client/shared/gulpfile')
const { webpack: webWebpack, developmentServer, generate, watchGenerators } = require('./client/web/gulpfile')
/**
* Generates files needed for builds whenever files change.
*/
const watchGenerate = gulp.series(generate, watchGenerators)
/**
* Builds everything.
*/
const build = gulp.series(generate, webWebpack)
/**
* Watches everything and rebuilds on file changes.
*/
const dev = gulp.series(generate, gulp.parallel(watchGenerators, developmentServer))
module.exports = {
generate,
watchGenerate,
build,
dev,
schema,
graphQlSchema,
watchGraphQlSchema,
graphQlOperations,
watchGraphQlOperations,
}