Skip to content
Snippets Groups Projects
Commit 4c62464e authored by Allen Gilliland's avatar Allen Gilliland
Browse files

get gulp working again and remove our compiled css file from git.

parent 747fec9c
No related branches found
No related tags found
No related merge requests found
......@@ -17,3 +17,4 @@ profiles.clj
/metabase.db.*.db
/frontend_client/app/bower_components
/node_modules/
/frontend_client/app/dist/
'use strict';
var gulp = require('gulp'),
concat = require('gulp-concat'),
myth = require('gulp-myth');
var basePath = 'frontend_client/app/';
var SRC = {
css: [basePath + 'css/**/*.css', basePath + 'components/**/*.css']
};
var DEST = {
css: '' + basePath + '/dist'
};
/*
CSS compilation
1. get all css files in components directory specified in SRC.css
--------------------
this way we don't need to have a single 'app.css' or similar
to combine all our css (our build system should do this for us)
2. run the css through myth to generate browse compatible css
3. minify the css
4. write to DEST.css directory
*/
gulp.task('css', function(){
return gulp.src(SRC.css)
.pipe(concat('corvus.css'))
.pipe(myth())
.pipe(gulp.dest(DEST.css));
});
gulp.task('watch', function(){
gulp.watch(SRC.css, ['css']);
});
gulp.task('build', ['css']);
gulp.task('default', ['build','watch']);
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment