mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 13:17:24 +01:00
Wrote copy task, started sprite config
This commit is contained in:
14
gulpfile.js
14
gulpfile.js
@@ -18,6 +18,15 @@ var config = {
|
||||
staticPage: 'public/css/static.styl' // static is a 'future' reserved word
|
||||
},
|
||||
dest: './build/'
|
||||
},
|
||||
sprite: {
|
||||
|
||||
},
|
||||
copy: {
|
||||
src: ['./common/img/sprites/backer-only/*.gif',
|
||||
'./common/img/sprites/npc_ian.gif',
|
||||
'./bower_components/bootstrap/dist/fonts/*'],
|
||||
dest: './build/'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -48,7 +57,8 @@ gulp.task('stylus', function() {
|
||||
});
|
||||
|
||||
gulp.task('copy', function() {
|
||||
// @TODO: Finish this
|
||||
gulp.src(config.copy.src)
|
||||
.pipe(gulp.dest(config.copy.dest));
|
||||
});
|
||||
|
||||
gulp.task('hashres', function() {
|
||||
@@ -64,7 +74,7 @@ gulp.task('dev', ['watch'], function() {
|
||||
nodemon({ script: pkg.main });
|
||||
});
|
||||
|
||||
gulp.task('prod', function() {
|
||||
gulp.task('prod', ['clean', 'stylus', 'copy'], function() {
|
||||
// @TODO: Finish this
|
||||
});
|
||||
gulp.task('default', ['dev']);
|
||||
|
||||
Reference in New Issue
Block a user