Skip to content

Instantly share code, notes, and snippets.

Created January 8, 2014 09:02
Show Gist options
  • Save anonymous/8313834 to your computer and use it in GitHub Desktop.
Save anonymous/8313834 to your computer and use it in GitHub Desktop.
Väldigt basic gruntfil jag kör på sometimes
'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