WIP on landing page
This commit is contained in:
19
gulpfile.js
19
gulpfile.js
@@ -19,11 +19,11 @@ let enabled = {
|
||||
uglify: argv.production
|
||||
};
|
||||
|
||||
var destination = {
|
||||
let destination = {
|
||||
css: 'cloud/static/assets/css',
|
||||
pug: 'cloud/templates',
|
||||
js: 'cloud/static/assets/js',
|
||||
}
|
||||
js: 'cloud/static/assets/js'
|
||||
};
|
||||
|
||||
/* CSS */
|
||||
gulp.task('styles', function(done) {
|
||||
@@ -84,6 +84,17 @@ gulp.task('scripts_tutti', function(done) {
|
||||
});
|
||||
|
||||
|
||||
/* Simply move these vendor scripts from node_modules */
|
||||
gulp.task('scripts_vendor', function(done) {
|
||||
let toMove = [
|
||||
'node_modules/photoswipe/dist/photoswipe.min.js'
|
||||
];
|
||||
gulp.src(toMove)
|
||||
.pipe(gulp.dest(destination.js));
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
// While developing, run 'gulp watch'
|
||||
gulp.task('watch', function(done) {
|
||||
// Only reload the pages if we run with --livereload
|
||||
@@ -99,4 +110,4 @@ gulp.task('watch', function(done) {
|
||||
|
||||
|
||||
// Run 'gulp' to build everything at once
|
||||
gulp.task('default', gulp.series('styles', 'templates', 'scripts', 'scripts_tutti'));
|
||||
gulp.task('default', gulp.series('styles', 'templates', 'scripts', 'scripts_tutti', 'scripts_vendor'));
|
||||
|
Reference in New Issue
Block a user