diff --git a/.gitignore b/.gitignore index 3a296b2c..3da96c53 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules/ dist/ release/ *.log +src/scss/foundation/_normalize.scss diff --git a/bin/normalize.scss b/bin/normalize.scss new file mode 100644 index 00000000..36817d78 --- /dev/null +++ b/bin/normalize.scss @@ -0,0 +1 @@ +@import "inuit-normalize"; diff --git a/gulpfile.js b/gulpfile.js index e4b6b0ff..d719a308 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -22,12 +22,27 @@ var processors = [ }) ]; +/** + * + * Copy the normalize.css + * + */ +gulp.task( 'normalize', function() { + return gulp.src( 'bin/normalize.scss' ) + .pipe( sass( { + importer: moduleImporter(), + outputStyle: 'expanded' + } ) ) + .pipe( rename( '_normalize.scss' ) ) + .pipe( gulp.dest( 'src/scss/foundation/' ) ) +} ); + /** * * Sass to CSS * */ -gulp.task( 'sass', function() { +gulp.task( 'sass', ['normalize'], function() { return gulp.src( 'src/scss/**/*.scss' ) .pipe( sass( { importer: moduleImporter(), @@ -40,8 +55,6 @@ gulp.task( 'sass', function() { .pipe( gulp.dest( 'dist/css/' ) ); } ); -gulp.task( 'sass:build', ['sass'] ); - /** * * Browsersync. @@ -69,7 +82,7 @@ gulp.task( 'watch', function() { gulp.watch( ['src/**/*.scss'], ['build'] ); } ); -gulp.task( 'build', ['sass:build'], function() { +gulp.task( 'build', ['sass'], function() { return gulp.src( [ 'dist/**' diff --git a/src/scss/foundation/_normalize.scss b/src/scss/foundation/_normalize.scss deleted file mode 100755 index 13232595..00000000 --- a/src/scss/foundation/_normalize.scss +++ /dev/null @@ -1 +0,0 @@ -@import "inuit-normalize"; \ No newline at end of file