mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 02:09:05 +01:00
Rename project to tsProject
This commit is contained in:
parent
900dfe1659
commit
c835ec13d9
@ -31,7 +31,7 @@ import { IConfig } from './src/config';
|
|||||||
const config = eval(require('typescript').transpile(require('fs').readFileSync('./src/config.ts').toString()))
|
const config = eval(require('typescript').transpile(require('fs').readFileSync('./src/config.ts').toString()))
|
||||||
('.config/config.yml') as IConfig;
|
('.config/config.yml') as IConfig;
|
||||||
|
|
||||||
const project = ts.createProject('tsconfig.json');
|
const tsProject = ts.createProject('tsconfig.json');
|
||||||
|
|
||||||
gulp.task('build', [
|
gulp.task('build', [
|
||||||
'build:js',
|
'build:js',
|
||||||
@ -51,9 +51,9 @@ gulp.task('build:js', () =>
|
|||||||
);
|
);
|
||||||
|
|
||||||
gulp.task('build:ts', () =>
|
gulp.task('build:ts', () =>
|
||||||
project
|
tsProject
|
||||||
.src()
|
.src()
|
||||||
.pipe(project())
|
.pipe(tsProject())
|
||||||
.pipe(babel({
|
.pipe(babel({
|
||||||
presets: ['es2015', 'stage-3']
|
presets: ['es2015', 'stage-3']
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user