Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zhe/hugo-theme-slim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhe Zhang <neomana@gmail.com>2015-08-17 12:53:23 +0300
committerZhe Zhang <neomana@gmail.com>2015-08-17 12:53:23 +0300
commitf56bb9ec0322042d1774a845569454e470a2fdcd (patch)
treef66daf0d6174991322317e5710a08154672793d5 /gulpfile.babel.js
parent895e33ae1ae9f36de2313017e4b394b1e5085165 (diff)
init gulp workflow for building assets
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
new file mode 100644
index 0000000..839cf63
--- /dev/null
+++ b/gulpfile.babel.js
@@ -0,0 +1,31 @@
+// Gulpfile.js for Hugo Theme – Slim
+// Git repo: https://github.com/zhe/hugo-theme-slim
+
+// This gulpfile makes use of new JavaScript features.
+// Babel handles this without us having to do anything. It just works.
+// You can read more about the new JavaScript features here:
+// https://babeljs.io/docs/learn-es2015/
+
+import gulp from 'gulp';
+import gulpLoadPlugins from 'gulp-load-plugins';
+
+const $ = gulpLoadPlugins();
+const options = {
+
+};
+
+// Compile and prefix stylesheets
+gulp.task('style', () => {
+ return gulp.src('src/sass/*.scss')
+ .pipe($.sourcemaps.init())
+ .pipe($.sass().sync({
+ outputStyle: 'expanded',
+ precision: 10,
+ includePaths: ['.'],
+ }).on('error', $.sass.logError))
+ .pipe($.autoprefixer({
+ browsers: ['last 2 version'],
+ }))
+ .pipe($.sourcemaps.write())
+ .pipe(gulp.dest('static/css'));
+});