diff --git a/.babelrc b/.babelrc
index c13c5f6..1320b9a 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,3 +1,3 @@
{
- "presets": ["es2015"]
+ "presets": ["@babel/preset-env"]
}
diff --git a/deploy.sh b/deploy.sh
index 17a3bdc..4d2fdd4 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,8 +1,7 @@
git checkout gh-pages
git merge master
-jade views/{index,404}.jade -o . -pretty
-git add .
+gulp deploy
+git add index.html
+git add 404.html
git commit -m 'deploy'
-git pull
-git push
-git checkout master
+echo "I'll no longer pull and push for you, please push with causion on which remote you'd like to."
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index cd947bb..0e1ead1 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -7,10 +7,13 @@ import path from 'path';
import sass from 'gulp-sass';
import jade from 'gulp-jade';
import plumber from 'gulp-plumber';
+import inlinesource from 'gulp-inline-source';
+import replace from 'gulp-replace';
const app = express();
const build_path = '_public';
+const deploy_path = './';
gulp.task('sass', () =>
gulp.src('sass/*.sass')
@@ -57,6 +60,22 @@ gulp.task('watch', () => {
gulp.watch('js/*js', ['js']);
});
-gulp.task('build', ['jade', 'sass', 'js', 'assets']);
-gulp.task('dev', ['build', 'server', 'watch']);
-gulp.task('default', ['build']);
+gulp.task('inlinesource', function () {
+ return gulp.src([`${build_path}/index.html`, `${build_path}/404.html`])
+ .pipe(replace(/'))
+ /* // uncommand to inline all scripts / css
+ .pipe(replace(/