Skip to content

Commit b6800c1

Browse files
Updated gulp and discord
1 parent 9174896 commit b6800c1

File tree

4 files changed

+3332
-3676
lines changed

4 files changed

+3332
-3676
lines changed

gulpfile.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ const appVersion = require('./package.json').version;
1010
// pull in the project TypeScript config
1111
const tsProject = ts.createProject('tsconfig.json');
1212

13-
gulp.task('version', () => {
13+
gulp.task('version', function versionFile(done) {
1414
const versionFilePath = path.join(__dirname + '/src/version.ts');
1515

1616
const src = `export const Version = '${appVersion}';\n`;
17-
1817
fs.writeFileSync(versionFilePath, src);
18+
done();
1919
});
2020

21-
gulp.task('scripts', () => {
21+
gulp.task('scripts', function compile() {
2222
return tsProject.src()
2323
.pipe(sourcemaps.init())
2424
.pipe(tsProject())
2525
.js.pipe(sourcemaps.write())
2626
.pipe(gulp.dest('dist'));
2727
});
2828

29-
gulp.task('watch', ['scripts'], () => {
30-
return gulp.watch('src/**/*.ts', ['scripts']);
31-
});
29+
gulp.task('watch', gulp.series('scripts', async function watchTs() {
30+
return gulp.watch('src/**/*.ts', gulp.series('scripts'));
31+
}));
3232

33-
gulp.task('assets', function () {
33+
gulp.task('assets', function copyAssets() {
3434
return gulp.src(JSON_FILES)
3535
.pipe(gulp.dest('dist'));
3636
});
3737

38-
gulp.task('nodemon', ['scripts', 'assets', 'watch'], () => {
38+
gulp.task('nodemon', gulp.series(gulp.parallel('assets', 'watch'), async function runNodeMon() {
3939
nodemon({
4040
script: './dist/bin/start.js',
4141
nodeArgs: ['--inspect']
4242
});
43-
});
43+
}));
4444

45-
gulp.task('default', ['version', 'nodemon']);
45+
gulp.task('default', gulp.parallel('version', 'nodemon'));

0 commit comments

Comments
 (0)