Created
September 18, 2013 02:46
-
-
Save DevinClark/6603821 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"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" | |
} | |
} |
This file contains 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
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