From f3e4e1c2757c133d31eab82224d84ca7234bff69 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Wed, 3 May 2017 15:28:20 +0200 Subject: [PATCH] Removed Gruntfile --- mockup/Gruntfile.js | 84 --------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 mockup/Gruntfile.js diff --git a/mockup/Gruntfile.js b/mockup/Gruntfile.js deleted file mode 100644 index 6ce66ac..0000000 --- a/mockup/Gruntfile.js +++ /dev/null @@ -1,84 +0,0 @@ -module.exports = function(grunt) { - - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - - imagemin: { - media: { - files: [{ - expand: true, - cwd: 'media/images/', - src: '{,*/}*.{png,jpg,jpeg,gif}', - dest: 'media/images' - }] - } - }, - - watch: { - sass: { - files: "publichealth/static/**/*.scss", - tasks: ['sass:dev'] - } - }, - - // TODO: switch to https://github.com/sindresorhus/grunt-sass - sass: { // Task - dev: { // Target - options: { // Target options - style: 'expanded', - sourcemap: 'none' - }, - files: { // Dictionary of files - "mockup/assets/css/main.css": "publichealth/static/css/main.scss" - } - }, - dist: { - options: { - style: 'compressed', - sourcemap: 'none' - }, - files: { - "mockup/assets/css/main.min.css": "publichealth/static/css/main.scss" - } - } - }, - - bgShell: { - _defaults: { - bg: true, - stdout: false, - stderr: false, - }, - runDjango: { - cmd: 'python manage.py runserver' - }, - }, - - browserSync: { - dev: { - bsFiles: { - src: [ - "mockup/assets/css/*.css", - "mockup/*.html" - ] - }, - options: { - watchTask: true, - proxy: "localhost:8000" - } - } - } - }); - - grunt.loadNpmTasks('grunt-contrib-imagemin'); - grunt.loadNpmTasks('grunt-contrib-sass'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-bg-shell'); - grunt.loadNpmTasks('grunt-browser-sync'); - grunt.registerTask('default', ['imagemin', 'sass']); - grunt.registerTask('browser-sync', [ - 'bgShell', - 'browserSync', - 'watch' - ]); -};