diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26bc30d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/bower_components +/node_modules +/public \ No newline at end of file diff --git a/Gulpfile.js b/Gulpfile.js index 7371195..7f3c0e1 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -15,6 +15,7 @@ var gulp = require('gulp'), plugins = require('gulp-load-plugins')(), mainBowerFiles = require('main-bower-files'), + opn = require('opn'), del = require('del'); @@ -44,8 +45,8 @@ var paths = { }, html: { client: { - src: ['client/modules/**/*.html'], - dest: 'public/modules/', + src: ['client/**/*.html'], + dest: 'public/', } }, styles: { @@ -217,3 +218,18 @@ function scripts(paths, sort, parse) { }; } + + +////// LOCAL SERVER ////// + +gulp.task('connect', ['build'], function() { + plugins.connect.server({ + root: 'public', + livereload: true + }); +}); + +gulp.task('open', ['connect'], function (done) { + opn('http://localhost:8080', done); +}); + diff --git a/index.html b/client/index.html similarity index 53% rename from index.html rename to client/index.html index 3745548..a926988 100644 --- a/index.html +++ b/client/index.html @@ -1,9 +1,10 @@