-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes after latest pull request
- Loading branch information
Duncan McDougall
committed
Oct 2, 2015
1 parent
a62896a
commit 8cf3612
Showing
14 changed files
with
323 additions
and
364 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,57 @@ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
uglify: { | ||
build: { | ||
src: 'jquery.lightbox.js', | ||
dest: 'jquery.lightbox.min.js' | ||
}, | ||
options: { | ||
report : 'gzip', | ||
preserveComments : 'some' | ||
} | ||
}, | ||
|
||
cssmin: { | ||
compress: { | ||
files: { | ||
'jquery.lightbox.min.css': ['jquery.lightbox.css'] | ||
module.exports = function (grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
uglify: { | ||
build: { | ||
src: 'jquery.lightbox.js', | ||
dest: 'jquery.lightbox.min.js' | ||
}, | ||
options: { | ||
report: 'gzip', | ||
preserveComments: 'some' | ||
} | ||
}, | ||
|
||
cssmin: { | ||
compress: { | ||
files: { | ||
'jquery.lightbox.min.css': ['jquery.lightbox.css'] | ||
} | ||
}, | ||
options: { | ||
report: 'gzip' | ||
} | ||
}, | ||
|
||
jshint: { | ||
all: ['jquery.lightbox.js'] | ||
}, | ||
|
||
copy: { | ||
build: { | ||
files: [{ | ||
src: 'jquery.lightbox.css', | ||
dest: 'scss/jquery.lightbox.scss' | ||
}, | ||
{ | ||
src: 'jquery.lightbox.css', | ||
dest: 'less/jquery.lightbox.less' | ||
}] | ||
} | ||
} | ||
}, | ||
options: { | ||
report : 'gzip' | ||
} | ||
}, | ||
}); | ||
|
||
jshint: { | ||
all: ['jquery.lightbox.js'] | ||
} | ||
}); | ||
// Load the plugin that provides the "uglify" task. | ||
|
||
// Load the plugin that provides the "uglify" task. | ||
|
||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['uglify', 'cssmin', 'jshint']); | ||
// Default task(s). | ||
grunt.registerTask('default', ['uglify', 'cssmin', 'jshint', 'copy']); | ||
|
||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
body { | ||
font-family: sans-serif; | ||
font-size: 1rem; | ||
color: #333; | ||
} | ||
|
||
.container { | ||
max-width: 800px; | ||
margin: 0 auto; | ||
} | ||
|
||
.gallery { | ||
list-style: none; | ||
overflow: hidden; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.gallery li { | ||
float: left; | ||
margin: 4px; | ||
} |
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
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
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
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
Oops, something went wrong.