Skip to content

Commit

Permalink
integrated bootstrap3 and removed flexslider
Browse files Browse the repository at this point in the history
  • Loading branch information
frebro committed Dec 1, 2013
1 parent 81d6dc8 commit bf42724
Show file tree
Hide file tree
Showing 11 changed files with 473 additions and 2,284 deletions.
79 changes: 67 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,73 +8,123 @@
// templateFramework: 'lodash'

module.exports = function (grunt) {

// show elapsed time at the end
require('time-grunt')(grunt);

// load all grunt tasks
require('load-grunt-tasks')(grunt);

// configurable paths
var appConfig = {
src: 'src',
components: 'bower_components',
dist: 'dist'
dist: 'dist',
lib: 'bower_components'
};

// configure tasks
grunt.initConfig({

pkg: grunt.file.readJSON('package.json'),
app: appConfig,

watch: {
options: {
nospawn: false
},
less: {
files: ['<%= app.src %>/less/{,*/}*.less'],
tasks: ['less']
files: {
files: [
'src/*.html',
'src/less/{,*/}*.less'
],
tasks: ['build']
}
},

clean: {
dist: ['.tmp', '<%= app.dist %>/*'],
less: ['<%= app.src %>/less/{,*/}*.css']
},

jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'<%= app.src %>/js/{,*/}*.js',
'!<%= app.src %>/js/vendor/*'
'<%= app.src %>/js/{,*/}*.js'
]
},

uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some' // none, some, all
// beautify: true,
// mangle: false,
// compress: false
},
plugins: {
src: [
'<%= app.lib %>/jquery/jquery.js',
'<%= app.lib %>/bootstrap/js/transition.js',
// '<%= app.lib %>/bootstrap/js/alert.js',
'<%= app.lib %>/bootstrap/js/button.js',
// '<%= app.lib %>/bootstrap/js/carousel.js',
// '<%= app.lib %>/bootstrap/js/collapse.js',
// '<%= app.lib %>/bootstrap/js/dropdown.js',
// '<%= app.lib %>/bootstrap/js/modal.js',
// '<%= app.lib %>/bootstrap/js/tooltip.js',
// '<%= app.lib %>/bootstrap/js/popover.js',
// '<%= app.lib %>/bootstrap/js/scrollspy.js',
'<%= app.lib %>/bootstrap/js/tab.js',
// '<%= app.lib %>/bootstrap/js/affix.js',
],
dest: '<%= app.dist %>/js/plugins.js'
},
main: {
src: ['<%= app.src %>/js/main.js'],
dest: '<%= app.dist %>/js/main.js'
},
modernizr: {
src: [
'<%= app.lib %>/modernizr/modernizr.js'
],
dest: '<%= app.dist %>/js/modernizr.js'
}
},

less: {
development: {
options: {
paths: [
'<%= app.src %>/less',
'<%= app.components %>/lesshat',
'<%= app.components %>/semantic-grid/stylesheets/less',
'<%= app.components %>/font-awesome/less',
'<%= app.components %>/flexslider-less',
'<%= app.components %>/jquery-popover'
'<%= app.lib %>/flexslider-less',
'<%= app.lib %>/font-awesome/less',
'<%= app.lib %>/bootstrap/less'
]
},
files: {
'<%= app.src %>/less/main.css': ['<%= app.src %>/less/main.less']
}
}
},

useminPrepare: {
html: '<%= app.src %>/index.html',
options: {
dest: '<%= app.dist %>'
}
},

usemin: {
html: ['<%= app.dist %>/{,*/}*.html'],
css: ['<%= app.dist %>/css/{,*/}*.css'],
options: {
dirs: ['<%= app.dist %>']
}
},

cssmin: {
dist: {
files: {
Expand All @@ -85,6 +135,7 @@ module.exports = function (grunt) {
}
}
},

imagemin: {
dist: {
files: [{
Expand All @@ -95,6 +146,7 @@ module.exports = function (grunt) {
}]
}
},

htmlmin: {
dist: {
options: {
Expand All @@ -116,6 +168,7 @@ module.exports = function (grunt) {
}]
}
},

copy: {
dist: {
files: [{
Expand All @@ -132,6 +185,7 @@ module.exports = function (grunt) {
}]
}
},

rev: {
dist: {
files: {
Expand All @@ -149,6 +203,7 @@ module.exports = function (grunt) {
grunt.registerTask('build', [
'clean:dist',
'less',
'uglify',
'useminPrepare',
'imagemin',
'htmlmin',
Expand Down
7 changes: 2 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@
"test",
"tests"
],
"dependencies": {
"lesshat": "*",
"devDependencies": {
"bootstrap": "~3.0.2",
"modernizr": "~2.6.2",
"font-awesome": "~3.0.2",
"flexslider-less": "latest",
"jquery": "~1.9.1",
"semantic-grid": "latest",
"raphael": "~2.1.0",
"jquery-popover": "~1.1.2",
"scaleraphael": "*"
}
}
Loading

0 comments on commit bf42724

Please sign in to comment.