mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-29 12:12:36 +01:00
* client: semantic ui -> bootstrap 4 and less -> scss * start porting components to boostrap * port header, start porting menu * port loading screen * port most of the menu * port secondary menus * port guilds and stable * disable tavern for now, port inbox * typo * put back old tavern code
43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
import gulp from 'gulp';
|
|
import runSequence from 'run-sequence';
|
|
import babel from 'gulp-babel';
|
|
require('gulp-grunt')(gulp);
|
|
|
|
gulp.task('build', () => {
|
|
if (process.env.NODE_ENV === 'production') {
|
|
gulp.start('build:prod');
|
|
} else {
|
|
gulp.start('build:dev');
|
|
}
|
|
});
|
|
|
|
gulp.task('build:src', () => {
|
|
return gulp.src('website/server/**/*.js')
|
|
.pipe(babel())
|
|
.pipe(gulp.dest('website/transpiled-babel/'));
|
|
});
|
|
|
|
gulp.task('build:common', () => {
|
|
return gulp.src('website/common/script/**/*.js')
|
|
.pipe(babel())
|
|
.pipe(gulp.dest('website/common/transpiled-babel/'));
|
|
});
|
|
|
|
gulp.task('build:server', ['build:src', 'build:common']);
|
|
|
|
gulp.task('build:dev', ['browserify', 'prepare:staticNewStuff'], (done) => {
|
|
gulp.start('grunt-build:dev', done);
|
|
});
|
|
|
|
gulp.task('build:dev:watch', ['build:dev'], () => {
|
|
gulp.watch(['website/client-old/**/*.styl', 'website/common/script/*']);
|
|
});
|
|
|
|
gulp.task('build:prod', ['browserify', 'build:server', 'prepare:staticNewStuff'], (done) => {
|
|
runSequence(
|
|
'grunt-build:prod',
|
|
'apidoc',
|
|
done
|
|
);
|
|
});
|