mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +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
|
staticPage: 'public/css/static.styl' // static is a 'future' reserved word
|
||||||
},
|
},
|
||||||
dest: './build/'
|
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() {
|
gulp.task('copy', function() {
|
||||||
// @TODO: Finish this
|
gulp.src(config.copy.src)
|
||||||
|
.pipe(gulp.dest(config.copy.dest));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('hashres', function() {
|
gulp.task('hashres', function() {
|
||||||
@@ -64,7 +74,7 @@ gulp.task('dev', ['watch'], function() {
|
|||||||
nodemon({ script: pkg.main });
|
nodemon({ script: pkg.main });
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('prod', function() {
|
gulp.task('prod', ['clean', 'stylus', 'copy'], function() {
|
||||||
// @TODO: Finish this
|
// @TODO: Finish this
|
||||||
});
|
});
|
||||||
gulp.task('default', ['dev']);
|
gulp.task('default', ['dev']);
|
||||||
|
|||||||
Reference in New Issue
Block a user