Skip to content

Instantly share code, notes, and snippets.

@jlouthan
jlouthan / Gruntfile.js
Last active January 4, 2016 20:29
Snippet of a basic Gruntfile generated with Uncorked Studios's grunt-init template after defining the default task.
...
});
// define the default task that executes when we run 'grunt' from inside the project
grunt.registerTask('default', ['jshint', 'concat']);
};
@jlouthan
jlouthan / Gruntfile.js
Created January 27, 2014 18:26
Basic Gruntfile.js after adding configurations for jshint and concat tasks
// wrapper function
module.exports = function(grunt){
// load all our Grunt plugins
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// task configuration goes here
jshint: {
@jlouthan
jlouthan / concat-config.js
Last active January 4, 2016 17:29
A default configuration the the Grunt task concat.
concat: {
dist: {
src: [ 'scripts/{,*/}*.js'],
dest: 'scripts/production.js',
}
}
@jlouthan
jlouthan / Gruntfile.js
Created January 27, 2014 18:22
Basic Gruntfile.js after adding a configuration for the jshint task.
// wrapper function
module.exports = function(grunt){
// load all our Grunt plugins
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// task configuration goes here
jshint: {
@jlouthan
jlouthan / jshint-config.js
Last active January 4, 2016 17:29
A default configuration for the Grunt task jshint.
jshint: {
options: {
"node": true,
"esnext": true,
"curly": false,
"smarttabs": true,
"indent": 2,
"quotmark": "single"
},
all: ['Gruntfile.js', 'scripts/{,*/}*.js']
@jlouthan
jlouthan / Gruntfile.js
Created January 27, 2014 17:52
Basic Gruntfile.js generated by the Uncorked Studios getting-started grunt-init template
// wrapper function
module.exports = function(grunt){
// load all our Grunt plugins
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
// task configuration goes here
});
{
"name": "my-grunt-project",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.0",
"load-grunt-tasks": "~0.1.0"
}
}