Skip to content

Instantly share code, notes, and snippets.

@sergiolopes
Created June 10, 2013 22:07
Show Gist options
  • Save sergiolopes/5752835 to your computer and use it in GitHub Desktop.
Save sergiolopes/5752835 to your computer and use it in GitHub Desktop.
Exemplo mínimo de Grunt.js pro blog da Caelum
module.exports = function(grunt) {
grunt.initConfig({
uglify: {
'build/teste.js': 'src/teste.js'
},
less: {
'build/estilo.css': ['src/*.less']
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('default', ['uglify', 'less']);
};
{
"name": "grunt-demo",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-less": "~0.6.0",
"grunt-contrib-uglify": "~0.2.2"
}
}
@dossantoseder
Copy link

11313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment