|
3 | 3 | * Licensed under the MIT License. See License.txt in the project root for license information.
|
4 | 4 | *--------------------------------------------------------------------------------------------*/
|
5 | 5 |
|
6 |
| -'use strict'; |
7 |
| - |
8 |
| -// Increase max listeners for event emitters |
9 |
| -require('events').EventEmitter.defaultMaxListeners = 100; |
10 |
| - |
11 |
| -const gulp = require('gulp'); |
12 |
| -const util = require('./build/lib/util'); |
13 |
| -const task = require('./build/lib/task'); |
14 |
| -const path = require('path'); |
15 |
| -const compilation = require('./build/lib/compilation'); |
16 |
| -const { monacoTypecheckTask/* , monacoTypecheckWatchTask */ } = require('./build/gulpfile.editor'); |
17 |
| -const { compileExtensionsTask, watchExtensionsTask } = require('./build/gulpfile.extensions'); |
18 |
| - |
19 |
| -// Fast compile for development time |
20 |
| -const compileClientTask = task.define('compile-client', task.series(util.rimraf('out'), compilation.compileTask('src', 'out', false))); |
21 |
| -gulp.task(compileClientTask); |
22 |
| - |
23 |
| -const watchClientTask = task.define('watch-client', task.series(util.rimraf('out'), compilation.watchTask('out', false))); |
24 |
| -gulp.task(watchClientTask); |
25 |
| - |
26 |
| -// All |
27 |
| -const compileTask = task.define('compile', task.parallel(monacoTypecheckTask, compileClientTask, compileExtensionsTask)); |
28 |
| -gulp.task(compileTask); |
29 |
| - |
30 |
| -gulp.task(task.define('watch', task.parallel(/* monacoTypecheckWatchTask, */ watchClientTask, watchExtensionsTask))); |
31 |
| - |
32 |
| -// Default |
33 |
| -gulp.task('default', compileTask); |
34 |
| - |
35 |
| -process.on('unhandledRejection', (reason, p) => { |
36 |
| - console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); |
37 |
| - process.exit(1); |
38 |
| -}); |
39 |
| - |
40 |
| -// Load all the gulpfiles only if running tasks other than the editor tasks |
41 |
| -const build = path.join(__dirname, 'build'); |
42 |
| -require('glob').sync('gulpfile.*.js', { cwd: build }) |
43 |
| - .forEach(f => require(`./build/${f}`)); |
| 6 | +require('./build/gulpfile'); |
0 commit comments