refactor(build): gulpを経由しないでTypeScriptのビルドを行うように
path aliasをサーバーサイドでも使ったりしたいため
This commit is contained in:
parent
94fd5485b6
commit
8432c2c9ea
9 changed files with 106 additions and 50 deletions
12
gulpfile.ts
12
gulpfile.ts
|
@ -4,7 +4,6 @@
|
|||
|
||||
import * as fs from 'fs';
|
||||
import * as gulp from 'gulp';
|
||||
import * as ts from 'gulp-typescript';
|
||||
import * as rimraf from 'rimraf';
|
||||
import * as replace from 'gulp-replace';
|
||||
const terser = require('gulp-terser');
|
||||
|
@ -13,16 +12,6 @@ const cssnano = require('gulp-cssnano');
|
|||
const locales: { [x: string]: any } = require('./locales');
|
||||
const meta = require('./package.json');
|
||||
|
||||
gulp.task('build:ts', () => {
|
||||
const tsProject = ts.createProject('./src/tsconfig.json');
|
||||
|
||||
return tsProject
|
||||
.src()
|
||||
.pipe(tsProject())
|
||||
.on('error', () => {})
|
||||
.pipe(gulp.dest('./built/'));
|
||||
});
|
||||
|
||||
gulp.task('build:copy:views', () =>
|
||||
gulp.src('./src/server/web/views/**/*').pipe(gulp.dest('./built/server/web/views'))
|
||||
);
|
||||
|
@ -78,7 +67,6 @@ gulp.task('cleanall', gulp.parallel('clean', cb =>
|
|||
));
|
||||
|
||||
gulp.task('build', gulp.parallel(
|
||||
'build:ts',
|
||||
'build:copy',
|
||||
));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue