Skip to content

Commit

Permalink
Add support for grunt 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva committed Feb 22, 2013
1 parent cc6d4eb commit b7d9f18
Show file tree
Hide file tree
Showing 13 changed files with 182 additions and 9,829 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
node_modules
18 changes: 18 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"bitwise": true,
"browser": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"es5": true,
"esnext": true,
"immed": true,
"jquery": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"strict": false,
"trailing": true,
"undef": true
}
95 changes: 95 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
'use strict';
module.exports = function(grunt) {

grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'assets/js/*.js',
'assets/js/plugins/*.js',
'!assets/js/scripts.min.js'
]
},
recess: {
dist: {
options: {
compile: true,
compress: true
},
files: {
'assets/css/main.min.css': [
'assets/css/less/bootstrap/bootstrap.less',
'assets/css/less/bootstrap/responsive.less',
'assets/css/less/app.less'
]
}
}
},
uglify: {
dist: {
files: {
'assets/js/scripts.min.js': [
'assets/js/plugins/bootstrap/bootstrap-transition.js',
'assets/js/plugins/bootstrap/bootstrap-alert.js',
'assets/js/plugins/bootstrap/bootstrap-button.js',
'assets/js/plugins/bootstrap/bootstrap-carousel.js',
'assets/js/plugins/bootstrap/bootstrap-collapse.js',
'assets/js/plugins/bootstrap/bootstrap-dropdown.js',
'assets/js/plugins/bootstrap/bootstrap-modla.js',
'assets/js/plugins/bootstrap/bootstrap-tooltip.js',
'assets/js/plugins/bootstrap/bootstrap-popover.js',
'assets/js/plugins/bootstrap/bootstrap-scrollspy.js',
'assets/js/plugins/bootstrap/bootstrap-tab.js',
'assets/js/plugins/bootstrap/bootstrap-typehead.js',
'assets/js/plugins/*.js',
'assets/js/_*.js'
]
}
}
},
watch: {
less: {
files: [
'assets/css/less/*.less',
'assets/css/less/bootstrap/*.less'
],
tasks: ['recess']
},
js: {
files: [
'<%= jshint.all %>'
],
tasks: ['jshint']
}
},
clean: {
dist: [
'assets/css/main.min.css',
'assets/js/scripts.min.js'
]
}
});

// Load tasks
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-recess');

// Register tasks
grunt.registerTask('default', [
'clean',
'recess',
'uglify',
'version'
]);
grunt.registerTask('dev', [
'watch'
]);

};
Loading

0 comments on commit b7d9f18

Please sign in to comment.