mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Also: - Find and replace panel -> card - Some base template work - gulpfile things, added dep on django-gulp
31 lines
899 B
JavaScript
31 lines
899 B
JavaScript
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
|
|
var concat = require('gulp-concat');
|
|
var rename = require('gulp-rename');
|
|
var uglify = require('gulp-uglify');
|
|
var sass = require('gulp-sass');
|
|
var flatten = require('gulp-flatten');
|
|
let cleanCSS = require('gulp-clean-css');
|
|
|
|
sass.compiler = require('node-sass');
|
|
|
|
gulp.task('sass', function () {
|
|
return gulp.src('web_assets/scss/**/*.scss')
|
|
.pipe(flatten())
|
|
.pipe(sass().on('error', sass.logError))
|
|
.pipe(cleanCSS({compatibility: 'ie8'}))
|
|
.pipe(gulp.dest('RIGS/static/css'));
|
|
});
|
|
|
|
gulp.task('scripts', function() {
|
|
return gulp.src(['web_assets/js/**/*.js', 'node_modules/bootstrap/**/bootstrap.min.js', 'node_modules/jquery/**/jquery.min.js'])
|
|
.pipe(flatten())
|
|
.pipe(uglify())
|
|
.pipe(gulp.dest('RIGS/static/js'));
|
|
});
|
|
|
|
exports.default = gulp.parallel('sass', 'scripts');
|
|
exports.build = gulp.parallel('sass', 'scripts');
|