[Ivan Diaz] - Move sass files to all the app and core-components. Also, use gulp-sass-bulk-import

This commit is contained in:
Ivan Diaz 2015-08-28 20:55:58 -03:00
parent 2470809e86
commit 7016f342d0
14 changed files with 13 additions and 19 deletions

View File

@ -15,7 +15,7 @@ module.exports = {
},
'styles': {
'src': './src/styles/**/*.scss',
'src': './src/**/*.scss',
'dest': './build/css/'
},

View File

@ -5,12 +5,14 @@ var sass = require('gulp-sass');
var gulpif = require('gulp-if');
var browserSync = require('browser-sync');
var autoprefixer = require('gulp-autoprefixer');
var bulkSass = require('gulp-sass-bulk-import');
var handleErrors = require('../util/handle-errors');
var config = require('../config');
gulp.task('sass', function () {
return gulp.src(config.styles.src)
.pipe(bulkSass())
.pipe(sass({
sourceComments: global.isProd ? 'none' : 'map',
sourceMap: 'sass',

View File

@ -37,6 +37,7 @@
"gulp-notify": "^2.2.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.0.x",
"gulp-sass-bulk-import": "^0.3.2",
"gulp-sourcemaps": "^1.5.2",
"gulp-streamify": "0.0.5",
"gulp-uglify": "^1.2.0",

View File

@ -1,3 +1,5 @@
@import "../scss/vars";
.button {
&:focus {

7
src/main.scss Normal file
View File

@ -0,0 +1,7 @@
@import 'scss/reset';
@import 'scss/vars';
@import 'scss/typography';
@import 'scss/base';
@import 'core-components/*';
@import 'app/*';

View File

@ -1,4 +0,0 @@
footer {
height: 50px;
background: #eeeeee;
}

View File

@ -1,4 +0,0 @@
header {
height: 50px;
background: #eeeeee;
}

View File

@ -1,10 +0,0 @@
@import 'reset';
@import 'vars';
@import 'typography';
@import 'base';
@import 'core-components/button';
@import 'core-components/widget';
@import 'app-components/main-layout';
@import 'app-components/footer';