Last active
February 7, 2016 08:51
-
-
Save jmas/4ffcb1b070c9d8d41a2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "foundation"; | |
@include foundation-global-styles; | |
@include foundation-grid; | |
@include foundation-typography; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var haml = require('gulp-haml'); | |
var clean = require('gulp-clean'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
gulp.task('clean', function () { | |
return gulp.src('dist/*', {read: false}) | |
.pipe(clean()); | |
}); | |
gulp.task('styles', function () { | |
gulp.src('./scss/**/*.scss') | |
.pipe(sourcemaps.init()) | |
.pipe(sass({ | |
includePaths: ['./node_modules/foundation-sites/scss/'] | |
}).on('error', sass.logError)) | |
.pipe(sourcemaps.write()) | |
.pipe(gulp.dest('./dist/')); | |
}); | |
gulp.task('styles:watch', function () { | |
gulp.watch('./scss/**/*.scss', ['styles']); | |
}); | |
gulp.task('html', function () { | |
gulp.src('./haml/*.haml') | |
.pipe(haml()) | |
.pipe(gulp.dest('./dist')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "scssmixins", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"foundation-sites": "^6.1.2", | |
"gulp": "^3.9.0", | |
"gulp-haml": "^0.1.6", | |
"gulp-sass": "^2.1.1", | |
"gulp-sourcemaps": "^1.6.0" | |
}, | |
"devDependencies": { | |
"gulp-clean": "^0.3.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment