Skip to content

Instantly share code, notes, and snippets.

@DevinClark
Created September 18, 2013 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DevinClark/6603821 to your computer and use it in GitHub Desktop.
Save DevinClark/6603821 to your computer and use it in GitHub Desktop.
{
"name": "MyApp",
"version": "0.0.0",
"description": "",
"scripts": {
"start": "npm install && bower install"
},
"author": "Devin Clark",
"devDependencies": {
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-uglify": "~0.2.4",
"grunt-css": "~0.5.4",
"grunt": "~0.4.1",
"load-grunt-tasks": "~0.1.0",
"grunt-bower-concat": "~0.1.1",
"grunt-contrib-compass": "~0.5.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-autoprefixer": "~0.3.0"
}
}
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
watch: {
sass: {
files: ['scss/*.scss'],
tasks: ['compass']
},
css: {
files: ['css/base.css'],
tasks: ['autoprefixer'],
options: {
spawn: false,
},
}
},
bower: {
all: {
dest: 'js/assets.js',
exclude: "bootstrap",
dependencies: {
}
}
},
jshint: {
all: ['js/app.js']
},
uglify: {
assets: {
files: {
'js/assets.js': [
'js/assets.js',
'vendor/bootstrap/js/carousel.js',
'vendor/bootstrap/js/button.js'
]
}
}
},
compass: {
dist: {
options: {
config: 'config.rb'
}
}
},
autoprefixer: {
dist: {
options: {
browsers: ['last 2 versions']
},
files: {
'css/base.prefixed.css': ['css/base.css']
}
}
}
});
grunt.registerTask('default', ['jshint', 'bower', 'uglify']);
grunt.registerTask('test', ['jshint']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment