});
});
+// Prepare dependencies
+gulp.task('customizer:prepareSassDeps', function() {
+ return gulp.src([
+ 'node_modules/@(normalize-scss)/sass/**/*.scss'
+ ])
+ .pipe(gulp.dest('_vendor/scss'));
+});
+
// Creates a Sass file from the module/variable list and creates foundation.css and foundation.min.css
-gulp.task('customizer:sass', ['customizer:loadConfig'], function() {
+gulp.task('customizer:sass', ['customizer:loadConfig', 'customizer:prepareSassDeps'], function() {
var sassFile = customizer.sass(CUSTOMIZER_CONFIG, MODULE_LIST, VARIABLE_LIST);
// Create a stream with our makeshift Sass file
// Compiles Sass files into CSS
gulp.task('sass', ['sass:foundation', 'sass:docs']);
+// Prepare dependencies
+gulp.task('sass:deps', function() {
+ return gulp.src(CONFIG.SASS_DEPS_FILES)
+ .pipe(gulp.dest('_vendor/scss'));
+});
+
// Compiles Foundation Sass
-gulp.task('sass:foundation', function() {
+gulp.task('sass:foundation', ['sass:deps'], function() {
return gulp.src(['assets/*'])
.pipe(sourcemaps.init())
.pipe(plumber())
- .pipe(sass({
- includePaths: CONFIG.SASS_DEPS_PATHS
- }).on('error', sass.logError))
+ .pipe(sass().on('error', sass.logError))
.pipe(autoprefixer({
browsers: CONFIG.CSS_COMPATIBILITY
}))
});
// Compiles docs Sass (includes Foundation code also)
-gulp.task('sass:docs', function() {
+gulp.task('sass:docs', ['sass:deps'], function() {
return gulp.src('docs/assets/scss/docs.scss')
.pipe(sourcemaps.init())
.pipe(sass({
- includePaths: CONFIG.SASS_DEPS_PATHS.concat(CONFIG.SASS_DOC_PATHS)
+ includePaths: CONFIG.SASS_DOC_PATHS
}).on('error', sass.logError))
.pipe(autoprefixer({
browsers: CONFIG.CSS_COMPATIBILITY
},
"dependencies": {
"jquery": "^2.2.0",
- "normalize-scss": "^6.0.0",
"what-input": "^4.0.3"
},
"license": "MIT",
"mocha-phantomjs": "^4.0.2",
"motion-ui": "^1.1.0",
"multiline": "^1.0.2",
+ "normalize-scss": "^6.0.0",
"octophant": "^1.0.0",
"opener": "^1.4.1",
"panini": "^1.3.0",
*/
// Dependencies
-@import "normalize";
+@import "../_vendor/scss/normalize-scss/sass/normalize";
// Settings
-// import your own `settings` here or
+// import your own `settings` here or
// import and modify the default settings through
// @import "settings/settings";