Move config back into gulpfile

This commit is contained in:
Oliver Davies 2016-11-30 13:17:29 +00:00
parent d9a72dd222
commit baf2138920
2 changed files with 15 additions and 18 deletions

View file

@ -1,17 +0,0 @@
module.exports = function(plugins) {
return {
bowerDir: 'vendor/bower_components',
fontsDir: 'source/assets/fonts',
js: {
sourceDir: 'assets/js',
outputDir: 'source/assets/js',
pattern: '/**/*.js'
},
production: !!plugins.util.env.production,
sass: {
sourceDir: 'assets/sass',
pattern: '/**/*.sass',
outputDir: 'source/assets/css'
}
};
}

View file

@ -2,9 +2,23 @@
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var config = require('./gulpfile.config')(plugins);
var del = require('del');
var config = {
bowerDir: 'vendor/bower_components',
fontsDir: 'source/assets/fonts',
js: {
sourceDir: 'assets/js',
outputDir: 'source/assets/js',
pattern: '/**/*.js'
},
production: !!plugins.util.env.production,
sass: {
sourceDir: 'assets/sass',
pattern: '/**/*.sass',
outputDir: 'source/assets/css'
}
};
var app = {};
app.sass = function(paths, filename) {