@@ -0,0 +1,2540 @@
+var gulp = require(%22gulp%22);%0A%0Avar plumber = require(%22gulp-plumber%22);%0Avar cache = require(%22gulp-cached%22);%0Avar concat = require(%22gulp-concat%22);%0A%0Avar sass = require(%22gulp-sass%22);%0Avar sourcemaps = require('gulp-sourcemaps');%0Avar webserver = require(%22gulp-webserver%22);%0A%0A%0A/////////////////////////%0A// CONS & CONFIGURATION%0A/////////////////////////%0Avar BOWER_DIR = %22./bower_components%22%0Avar SRC_DIR = %22./monarch/front%22%0Avar STATIC_DIR = SRC_DIR + %22/static%22%0A%0Avar config = %7B%0A    bower: %7B%0A        boostrapDir: BOWER_DIR + %22/bootstrap-sass%22%0A    %7D,%0A    src: %7B%0A        stylesDir: SRC_DIR + %22/styles%22,%0A        stylesMainFile: SRC_DIR + %22/styles/main.scss%22%0A    %7D,%0A    static: %7B%0A        jsDir: STATIC_DIR + %22/scripts%22,%0A        stylesDir: STATIC_DIR + %22/styles%22,%0A        fontsDir: STATIC_DIR + %22/fonts%22,%0A        imagesDir: STATIC_DIR + %22/img%22%0A    %7D%0A%7D%0A%0A%0A/*************************************************************************%0A * FONTS%0A *************************************************************************/%0Agulp.task(%22_fonts%22, function() %7B%0A    return gulp.src(config.bower.boostrapDir + %22/assets/fonts/**/*%22)%0A               .pipe(gulp.dest(config.static.fontsDir));%0A%7D);%0A%0A%0A/*************************************************************************%0A * CSS%0A *************************************************************************/%0Agulp.task(%22_css%22, function() %7B%0A    return gulp.src(config.src.stylesMainFile)%0A               .pipe(sourcemaps.init())%0A               .pipe(sass(%7B includePaths: %5B%0A                   config.bower.boostrapDir + %22/assets/stylesheets%22%0A                %5D%7D).on('error', sass.logError))%0A               .pipe(sourcemaps.write(%7Bdebug: false%7D))%0A               .pipe(gulp.dest(config.static.stylesDir));%0A%7D);%0A%0A%0A/*************************************************************************%0A * WATCH%0A *************************************************************************/%0Agulp.task(%22watch%22, function () %7B%0A    return gulp.watch(config.src.stylesDir, %5B%22_css%22%5D);%0A%7D);%0A%0Agulp.task(%22server%22, function () %7B%0A    return gulp.src(SRC_DIR)%0A               .pipe(webserver(%7B%0A                        livereload: true,%0A                        port: 8080%0A                     %7D))%0A%7D);%0A%0A/*************************************************************************%0A * MAIN TASKS%0A *************************************************************************/%0Avar compiledTasks = %5B%22_fonts%22,%0A                     %22_css%22%5D%0A%0Agulp.task(%22default%22, compiledTasks.concat(%5B%22server%22,%0A                                           %22watch%22%5D));%0A%0Agulp.task(%22deploy%22, compiledTasks);%0A

Update gulpfile