forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.ts
More file actions
24 lines (20 loc) · 752 Bytes
/
gulpfile.ts
File metadata and controls
24 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gulp from 'gulp'
import { phabricator, watchPhabricator } from './client/browser/gulpfile'
import { graphQLTypes, schema, watchGraphQLTypes, watchSchema } from './shared/gulpfile'
import { webpack as webWebpack, webpackDevServer as webWebpackDevServer } from './web/gulpfile'
/**
* Generates files needed for builds.
*/
export const generate = gulp.parallel(schema, graphQLTypes)
/**
* Builds everything.
*/
export const build = gulp.parallel(gulp.series(generate, gulp.parallel(webWebpack, phabricator)))
export { schema, graphQLTypes }
/**
* Watches everything and rebuilds on file changes.
*/
export const watch = gulp.series(
generate,
gulp.parallel(watchSchema, watchGraphQLTypes, webWebpackDevServer, watchPhabricator)
)