Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the code to suit my new workflow.
Many small improvement + new demo in progress.
- Loading branch information
Oriongu
committed
Mar 9, 2015
1 parent
cdb5a0e
commit 5943e29
Showing
26 changed files
with
841 additions
and
240 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,3 +1,3 @@ | ||
sass/demo.scss | ||
sass/gridder.scss | ||
nbproject/ | ||
nbproject/ | ||
.DS_Store | ||
node_modules |
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,13 @@ | ||
{ | ||
"boss": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"expr": true, | ||
"immed": true, | ||
"noarg": true, | ||
"onevar": true, | ||
"quotmark": "double", | ||
"unused": true, | ||
"node": true | ||
} |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.34 KB
.sass-cache/1db8a5784fa283e28b76aca7331459e393332398/jquery.gridder.scssc
Binary file not shown.
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,93 @@ | ||
module.exports = function(grunt) { | ||
|
||
grunt.initConfig({ | ||
|
||
// Import package manifest | ||
pkg: grunt.file.readJSON("package.json"), | ||
|
||
// Banner definitions | ||
meta: { | ||
banner: "/*\n" + | ||
" * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n" + | ||
" * <%= pkg.description %>\n" + | ||
" * <%= pkg.homepage %>\n" + | ||
" *\n" + | ||
" * Made by <%= pkg.author.name %>\n" + | ||
" * Under <%= pkg.license %> License\n" + | ||
" */\n" | ||
}, | ||
|
||
// Concat definitions | ||
concat: { | ||
options: { | ||
banner: "<%= meta.banner %>" | ||
}, | ||
dist: { | ||
src: ["src/jquery.gridder.js"], | ||
dest: "dist/js/jquery.gridder.js" | ||
} | ||
}, | ||
|
||
// Lint definitions | ||
jshint: { | ||
files: ["src/jquery.gridder.js"], | ||
options: { | ||
jshintrc: ".jshintrc" | ||
} | ||
}, | ||
|
||
// Minify definitions | ||
uglify: { | ||
my_target: { | ||
src: ["dist/js/jquery.gridder.js"], | ||
dest: "dist/js/jquery.gridder.min.js" | ||
}, | ||
options: { | ||
banner: "<%= meta.banner %>" | ||
} | ||
}, | ||
|
||
// CoffeeScript compilation | ||
coffee: { | ||
compile: { | ||
files: { | ||
"dist/js/jquery.gridder.js": "src/jquery.gridder.coffee" | ||
} | ||
} | ||
}, | ||
|
||
// SASS | ||
sass: { | ||
dist: { | ||
options: { | ||
style: 'compressed' | ||
}, | ||
files: { | ||
'dist/css/jquery.gridder.min.css': 'scss/jquery.gridder.scss', | ||
'demo/css/demo.css': 'demo/scss/demo.scss' | ||
} | ||
} | ||
}, | ||
|
||
// watch for changes to source | ||
// Better than calling grunt a million times | ||
// (call 'grunt watch') | ||
watch: { | ||
files: ['src/*','scss/*','demo/scss/*'], | ||
tasks: ['default'] | ||
} | ||
|
||
}); | ||
|
||
grunt.loadNpmTasks("grunt-contrib-concat"); | ||
grunt.loadNpmTasks("grunt-contrib-jshint"); | ||
grunt.loadNpmTasks("grunt-contrib-uglify"); | ||
grunt.loadNpmTasks("grunt-contrib-coffee"); | ||
grunt.loadNpmTasks("grunt-contrib-watch"); | ||
grunt.loadNpmTasks('grunt-contrib-sass'); | ||
|
||
grunt.registerTask("build", ["concat", "uglify"]); | ||
grunt.registerTask("default", ["jshint", "build", "sass"]); | ||
grunt.registerTask("travis", ["default"]); | ||
|
||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "jquery-gridder", | ||
"version": "1.3.0", | ||
"homepage": "http://www.oriongunning.com/blog/thumbnail-grid-expanding-preview/", | ||
"authors": [ | ||
"Orion Gunning <orion.gunning@gmail.com>" | ||
], | ||
"description": "A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.", | ||
"main": "src/jquery.gridder.js", | ||
"keywords": [ | ||
"jquery", | ||
"plugin", | ||
"thumbnail", | ||
"expanding", | ||
"grid" | ||
], | ||
"license": "MIT" | ||
} |
Binary file removed
BIN
-11.2 KB
css/.sass-cache/6f1505876efd01f7b91e3d50f7a8568adca33766/gridder.scssc
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.