forked from mbman/react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.ts
32 lines (26 loc) · 1.01 KB
/
gulpfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { task, series, parallel } from 'gulp'
import * as path from 'path'
import * as tsPaths from 'tsconfig-paths'
import config from './config'
const { compilerOptions } = require('./build/tsconfig.common.json')
// add node_modules/.bin to the path so we can invoke .bin CLIs in tasks
process.env.PATH =
process.env.PATH + path.delimiter + path.resolve(__dirname, 'node_modules', '.bin')
tsPaths.register({
baseUrl: config.path_base,
paths: compilerOptions.paths,
})
// load tasks in order of dependency usage
require('./build/gulp/tasks/dll')
require('./build/gulp/tasks/bundle')
require('./build/gulp/tasks/docs')
require('./build/gulp/tasks/screener')
require('./build/gulp/tasks/stats')
require('./build/gulp/tasks/git')
require('./build/gulp/tasks/test-unit')
require('./build/gulp/tasks/test-projects')
require('./build/gulp/tasks/perf')
require('./build/gulp/tasks/test-vulns')
require('./build/gulp/tasks/test-circulars')
// global tasks
task('build', series('dll', parallel('bundle:all-packages', 'build:docs')))