diff --git a/.gitignore b/.gitignore index 8d4ae25..7bf6eb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bower_components +node_modules diff --git a/css/.gitignore b/css/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/css/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 07a746f..0000000 --- a/css/style.css +++ /dev/null @@ -1,44 +0,0 @@ -body { - display: flex; - min-height: 100vh; - flex-direction: column; -} - -#main { - flex: 1 0 auto; -} - -nav i.material-icons { - display: inline; - font-size: 1rem; -} - -nav .tabs .tab a { - color: white; -} - -nav .tabs .indicator { - background-color: #fff59d; -} - -#toast-container { - top: inherit; - bottom: 10%; -} - -#toast a { - text-transform: uppercase; -} - -#grilleBieres a { - width: 90%; - padding: 25px; - height: 100px; - font-size: 3em; -} - -footer.page-footer { - margin-top: 0; - padding-top: 0; -} - diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..b3bf3db --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,39 @@ +var gulp = require('gulp'); +// var source = require('vinyl-source-stream'); +// var buffer = require('vinyl-buffer'); +var gutil = require('gulp-util'); +// var uglify = require('gulp-uglify'); +// var sourcemaps = require('gulp-sourcemaps'); +// var reactify = require('reactify'); +var sass = require('gulp-sass'); +// var fs = require('fs-extra'); +var exec = require('child_process').exec; +var path = require('path'); +// var install = require("gulp-install"); + +gulp.task('style', function() { + gulp.src('./scss/style.scss') + .pipe(sass().on('error', sass.logError)) + .pipe(gulp.dest('./css'));; +}); + +gulp.task('style:watch', function() { + gulp.watch('./scss/style.scss', ['style']); +}); + +gulp.task('clean', function() { + fs.removeSync(__dirname+'/bower_components'); + fs.removeSync(__dirname+'/lib'); +}); + +gulp.task('install', function() { + // gulp.src(['./bower.json', './package.json']) // FIXME Doesn't work + // .pipe(install()); +}); + +gulp.task('bootstrap', ['install', 'style']); + +gulp.task('watch', ['bootstrap', 'style:watch']); + +gulp.task('default', ['watch']); + diff --git a/index.html b/index.html index 66dc76e..054fa56 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,6 @@