Created
January 8, 2014 09:02
-
-
Save anonymous/8313834 to your computer and use it in GitHub Desktop.
Väldigt basic gruntfil jag kör på sometimes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function(grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
grunt.initConfig({ | |
sass: { // Task | |
dist: { // Target | |
options: { // Target options | |
style: 'expanded' | |
}, | |
files: { | |
// Dictionary of files | |
'public/wp-content/themes/projekttema/style.css': 'public/wp-content/themes/projekttema/scss/style.scss', // 'destination': 'source' | |
} | |
} | |
}, | |
// watch for changes and trigger compass, jshint, uglify and livereload | |
watch: { | |
options: { livereload: true }, | |
all: { | |
files: ['public/wp-content/themes/projekttema/*'], | |
}, | |
css: { | |
files: ['public/wp-content/themes/projekttema/scss/*.scss'], | |
tasks: ['sass'] | |
} | |
}, | |
// javascript linting with jshint | |
// uglify to concat, minify, and make source maps | |
uglify: { | |
dist: { | |
files: { | |
'js/main.min.js': [ | |
'js/source/main.js' | |
] | |
} | |
} | |
}, | |
}); | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
// grunt.loadNpmTasks('grunt-contrib-livereload'); | |
// register task | |
grunt.registerTask('default', ['watch']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment