Skip to content
1 change: 1 addition & 0 deletions dist/runtime.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/runtime.js.map

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,12 @@ const nodeResolve = require('rollup-plugin-node-resolve');

// Our modules
const api = require('./api');

gulp.task('default', ['build', 'connect', 'watch']);
gulp.task('build', ['rollup', 'copy']);

let cache = null;

gulp.task('rollup', function() {

return rollup({
entry: './app/js/runtime.js',
sourceMap: true,
input: './app/js/runtime.js',
sourcemap: true,
format: 'iife',
plugins: [babel({
exclude: 'node_modules/**'
Expand All @@ -58,7 +53,7 @@ gulp.task('rollup', function() {
});

gulp.task('copy', function() {
gulp.src(['./app/*.html', './app/**/*.css'])
return gulp.src(['./app/*.html', './app/**/*.css'])
.pipe(gulp.dest('./dist/'));
});

Expand All @@ -74,7 +69,6 @@ gulp.task('watch', function () {
});

gulp.task('connect', function() {

connect.server({
root: 'app',
livereload: true,
Expand All @@ -83,3 +77,6 @@ gulp.task('connect', function() {
}
});
});

gulp.task('build', gulp.series(['rollup', 'copy']));
gulp.task('default', gulp.series(['build', 'connect', 'watch']));
Loading