
13 changed files with 206 additions and 4780 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
{ |
||||
"bitwise": true, |
||||
"browser": true, |
||||
"curly": true, |
||||
"eqeqeq": true, |
||||
"eqnull": true, |
||||
"es5": false, |
||||
"esnext": true, |
||||
"immed": true, |
||||
"jquery": true, |
||||
"latedef": true, |
||||
"newcap": true, |
||||
"noarg": true, |
||||
"node": true, |
||||
"strict": false, |
||||
"trailing": false, |
||||
"undef": true, |
||||
"multistr": true, |
||||
"expr": true |
||||
} |
@ -0,0 +1,107 @@
@@ -0,0 +1,107 @@
|
||||
'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/less/main.less' |
||||
] |
||||
} |
||||
} |
||||
}, |
||||
uglify: { |
||||
dist: { |
||||
files: { |
||||
'assets/js/scripts.min.js': [ |
||||
'assets/js/plugins/*.js', |
||||
'assets/js/_*.js' |
||||
] |
||||
} |
||||
} |
||||
}, |
||||
imagemin: { |
||||
dist: { |
||||
options: { |
||||
optimizationLevel: 7, |
||||
progressive: true |
||||
}, |
||||
files: [{ |
||||
expand: true, |
||||
cwd: 'images/', |
||||
src: '{,*/}*.{png,jpg,jpeg}', |
||||
dest: 'images/' |
||||
}] |
||||
} |
||||
}, |
||||
svgmin: { |
||||
dist: { |
||||
files: [{ |
||||
expand: true, |
||||
cwd: 'images/', |
||||
src: '{,*/}*.svg', |
||||
dest: 'images/' |
||||
}] |
||||
} |
||||
}, |
||||
watch: { |
||||
less: { |
||||
files: [ |
||||
'assets/less/*.less', |
||||
'assets/less/bootstrap/*.less' |
||||
], |
||||
tasks: ['recess'] |
||||
}, |
||||
js: { |
||||
files: [ |
||||
'<%= jshint.all %>' |
||||
], |
||||
tasks: ['jshint','uglify'] |
||||
} |
||||
}, |
||||
clean: { |
||||
dist: [ |
||||
'assets/css/main.min.css', |
||||
'assets/js/scripts.min.js' |
||||
] |
||||
} |
||||
}); |
||||
|
||||
// Load 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'); |
||||
grunt.loadNpmTasks('grunt-contrib-imagemin'); |
||||
grunt.loadNpmTasks('grunt-svgmin'); |
||||
|
||||
// Register tasks
|
||||
grunt.registerTask('default', [ |
||||
'clean', |
||||
'recess', |
||||
'uglify', |
||||
'imagemin', |
||||
'svgmin' |
||||
]); |
||||
grunt.registerTask('dev', [ |
||||
'watch' |
||||
]); |
||||
|
||||
}; |
File diff suppressed because one or more lines are too long
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
/*! Plugin options and other jQuery stuff */ |
||||
|
||||
// dl-menu options
|
||||
$(function() { |
||||
$( '#dl-menu' ).dlmenu({ |
||||
animationClasses : { classin : 'dl-animate-in', classout : 'dl-animate-out' } |
||||
}); |
||||
}); |
||||
|
||||
// FitVids options
|
||||
$(function() { |
||||
$("article").fitVids(); |
||||
}); |
||||
|
||||
$(".close-menu").click(function () { |
||||
$(".menu").toggleClass("disabled"); |
||||
$(".links").toggleClass("enabled"); |
||||
}); |
||||
|
||||
$(".about").click(function () { |
||||
$("#about").css('display','block'); |
||||
}); |
||||
|
||||
$(".close-about").click(function () { |
||||
$("#about").css('display',''); |
||||
}); |
File diff suppressed because one or more lines are too long
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
{ |
||||
"name": "hpstr-theme", |
||||
"author": "Michael Rose <michael@mademistakes.com>", |
||||
"homepage": "http://mmistakes.github.io/hpstr-jekyll-theme/", |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "git://github.com/mmistakes/hpstr-jekyll-theme.git" |
||||
}, |
||||
"bugs": { |
||||
"url": "https://github.com/mmistakes/hpstr-jekyll-theme/issues" |
||||
}, |
||||
"engines": { |
||||
"node": ">= 0.10.0" |
||||
}, |
||||
"devDependencies": { |
||||
"grunt": "~0.4.1", |
||||
"grunt-contrib-clean": "~0.5.0", |
||||
"grunt-contrib-jshint": "~0.6.3", |
||||
"grunt-contrib-uglify": "~0.2.2", |
||||
"grunt-contrib-watch": "~0.5.2", |
||||
"grunt-recess": "~0.3.5", |
||||
"grunt-contrib-imagemin": "~0.2.0", |
||||
"grunt-svgmin": "~0.2.0" |
||||
} |
||||
} |
Loading…
Reference in new issue