-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b0fb82a
Showing
36 changed files
with
4,686 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
npm-debug.log | ||
tmp |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
{ | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"sub": true, | ||
"undef": true, | ||
"boss": true, | ||
"eqnull": true, | ||
"node": true | ||
} |
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,266 @@ | ||
/*global module:false,require:false*/ | ||
module.exports = function(grunt) { | ||
|
||
var os = require('os'), | ||
isWindows = os.platform().indexOf('win') === 0; // watch out for `darwin` | ||
|
||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: '<json:package.json>', | ||
banner: '/*! Project Name - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' + | ||
'Authored by Filament Group, Inc. */', | ||
clean: { | ||
dist: [ "_dist/" ], | ||
grunticon: [ ".grunticon-temp" ] | ||
}, | ||
concat: { | ||
options: { | ||
banner: '<%= banner %>' | ||
}, | ||
js_initial: { | ||
src: [ | ||
'_tmpl/_js/_lib/modernizr.js', | ||
'_tmpl/_js/app-globals.js', | ||
'_tmpl/_js/initial.config.js' | ||
], | ||
dest: '_dist/_js/initial.js' | ||
}, | ||
js_main: { | ||
src: [ | ||
// keep this globalenhance file last! | ||
'_tmpl/_js/globalenhance.js' | ||
], | ||
dest: '_dist/_js/main.js' | ||
}, | ||
js_respond: { | ||
src: [ | ||
'_tmpl/_js/_lib/respond.js' | ||
], | ||
dest: '_dist/_js/respond.js' | ||
}, | ||
css_main: { | ||
src: [ | ||
'_tmpl/_css/_lib/*', | ||
'_tmpl/_css/all.css', | ||
], | ||
dest: '_dist/_css/all.css' | ||
} | ||
}, | ||
copy: { | ||
dist: { | ||
files: [ | ||
{ expand: true, cwd: '_tmpl/docs/', src: ["*.html"], dest: "_dist/docs/" }, | ||
{ expand: true, cwd: '_tmpl/_includes/', src: ["**"], dest: "_dist/_includes/" }, | ||
{ expand: true, cwd: "_tmpl/_img/", src: ["**"], dest: "_dist/_img/" }, | ||
{ expand: true, cwd: "_tmpl/_img/svg/", src: ["*.png"], dest: "_dist/_img/_svg/" }, | ||
{ expand: true, cwd: "_tmpl/_css/_img/", src: ["**"], dest: "_dist/_css/_img/" }, | ||
{ expand: true, cwd: "_tmpl/", src: ["*.html","*.php","*.json"], dest: "_dist/" }, | ||
{ expand: true, cwd: "_tmpl/", src: [".htaccess"], dest: "_dist/" }] | ||
}, | ||
grunticon: { | ||
files: [ | ||
{ expand: true, cwd: "_tmpl/_css/_svg/", src: ["**"], dest: ".grunticon-temp" } | ||
] | ||
} | ||
}, | ||
watch: { | ||
all: { | ||
files: [ | ||
'!_tmpl/_css/**/*', | ||
'!_tmpl/_js/**/*', | ||
'_tmpl/**/*' | ||
], | ||
tasks: 'watch-default' | ||
}, | ||
|
||
css: { | ||
files: ['_tmpl/_css/**/*'], | ||
tasks: 'watch-css' | ||
}, | ||
|
||
js: { | ||
files: ['_tmpl/_js/**/*'], | ||
tasks: 'watch-js' | ||
}, | ||
grunticon: { | ||
files: ['_tmpl/_css/_svg/*'], | ||
tasks: 'watch-grunticon' | ||
} | ||
}, | ||
cssmin: { | ||
options: { | ||
banner: '<%= banner %>', | ||
stripBanners: true | ||
}, | ||
css_main: { | ||
src: [ | ||
'<%= concat.css_main.dest %>' | ||
], | ||
dest: '<%= concat.css_main.dest %>' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '<%= banner %>', | ||
stripBanners: true | ||
}, | ||
js_initial: { | ||
src: [ | ||
'<%= concat.js_initial.dest %>' | ||
], | ||
dest: '<%= concat.js_initial.dest %>' | ||
}, | ||
js_main: { | ||
src: [ | ||
'<%= concat.js_main.dest %>' | ||
], | ||
dest: '<%= concat.js_main.dest %>' | ||
}, | ||
js_respond: { | ||
src: [ | ||
'<%= concat.js_respond.dest %>' | ||
], | ||
dest: '<%= concat.js_respond.dest %>' | ||
} | ||
}, | ||
svgmin: { // Task | ||
options: { // Configuration that will be passed directly to SVGO | ||
plugins: [{ | ||
removeViewBox: false | ||
}] | ||
}, | ||
tmpl: { | ||
files: [ | ||
{ | ||
expand: true, | ||
cwd: '.grunticon-temp/', | ||
src: ['**/*.svg'], | ||
dest: '.grunticon-temp/' | ||
} | ||
] | ||
} | ||
}, | ||
grunticon: { | ||
all: { | ||
options: { | ||
src: ".grunticon-temp/", | ||
dest: "_dist/_css/_grunticon/", | ||
svgo: true, | ||
pngcrush: false, | ||
cssbasepath: "/", | ||
colors: { | ||
"green": "#0C756D" | ||
} | ||
} | ||
} | ||
}, | ||
criticalcss: { | ||
custom_options: { | ||
options: { | ||
url: "http://ricg.io.dev", | ||
filename : 'all.css', | ||
outputfile: "_dist/_css/critical.css" | ||
} | ||
} | ||
}, | ||
|
||
// prevent editing of _dist files | ||
chmod: { | ||
options: {}, | ||
readonly: { | ||
options: { | ||
mode: isWindows ? '666': '555' | ||
}, | ||
src: ['_dist/**'] | ||
}, | ||
writeable: { | ||
options: { | ||
mode: isWindows ? '666': '755' | ||
}, | ||
src: ['_dist/**'] | ||
} | ||
}, | ||
|
||
qunit: { | ||
all: ["_tmpl/_test/*.html"] | ||
} | ||
|
||
}); | ||
|
||
// Default task. | ||
grunt.registerTask('default', [ | ||
'chmod:writeable', | ||
'clean', | ||
'qunit', | ||
'concat', | ||
'copy', | ||
'svgmin', | ||
'grunticon', | ||
'criticalcss', | ||
'chmod:readonly' | ||
]); | ||
|
||
grunt.registerTask('icons', [ | ||
'chmod:writeable', | ||
'clean:grunticon', | ||
'copy:grunticon', | ||
'svgmin', | ||
'grunticon', | ||
'chmod:readonly' | ||
]); | ||
|
||
// NOTE these watch tasks try to run only relevant tasks per file save | ||
|
||
grunt.registerTask('watch-endpoints', [ | ||
'chmod:writeable', | ||
'copy', | ||
'chmod:readonly' | ||
]); | ||
|
||
grunt.registerTask('watch-default', [ | ||
'chmod:writeable', | ||
'qunit', | ||
'copy', | ||
'svgmin', | ||
'chmod:readonly' | ||
]); | ||
|
||
grunt.registerTask('watch-css', [ | ||
'chmod:writeable', | ||
'concat:css_main', | ||
'chmod:readonly' | ||
]); | ||
|
||
grunt.registerTask('watch-js', [ | ||
'chmod:writeable', | ||
'concat:js_initial', | ||
'concat:js_main', | ||
'concat:js_respond', | ||
'concat:js_docs', | ||
'chmod:readonly' | ||
]); | ||
|
||
grunt.registerTask('watch-grunticon', [ | ||
'chmod:writeable', | ||
'clean:grunticon', | ||
'copy:grunticon', | ||
'svgmin', | ||
'grunticon', | ||
'chmod:readonly' | ||
]); | ||
|
||
grunt.registerTask('stage', [ | ||
'clean', | ||
'qunit', | ||
'concat', | ||
'cssmin', | ||
'uglify', | ||
'copy', | ||
'svgmin', | ||
'grunticon' | ||
]); | ||
}; |
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 @@ | ||
Copyright (c) 2014 Mat Marquis | ||
|
||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the "Software"), to deal in the Software without | ||
restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
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,4 @@ | ||
fg-project-scaffolding | ||
====================== | ||
|
||
A standard scaffolding and place to get started for our projects. |
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,6 @@ | ||
<!-- Grunticon Loader: place this in the head of your page --> | ||
<script> | ||
/* grunticon Stylesheet Loader | https://github.com/filamentgroup/grunticon | (c) 2012 Scott Jehl, Filament Group, Inc. | MIT license. */ | ||
window.grunticon=function(e){if(e&&3===e.length){var t=window,n=!(!t.document.createElementNS||!t.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||window.opera&&-1===navigator.userAgent.indexOf("Chrome")),o=function(o){var r=t.document.createElement("link"),a=t.document.getElementsByTagName("script")[0];r.rel="stylesheet",r.href=e[o&&n?0:o?1:2],a.parentNode.insertBefore(r,a)},r=new t.Image;r.onerror=function(){o(!1)},r.onload=function(){o(1===r.width&&1===r.height)},r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}}; | ||
grunticon( [ "/_dist/_css/_grunticon/icons.data.svg.css", "/_dist/_css/_grunticon/icons.data.png.css", "/_dist/_css/_grunticon/icons.fallback.css" ] );</script> | ||
<noscript><link href="/_dist/_css/_grunticon/icons.fallback.css" rel="stylesheet"></noscript> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.icon-star { background-image: url(png/star.png); background-repeat: no-repeat; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
<!doctype HTML> | ||
<html> | ||
<head> | ||
<title>Icons Preview!</title> | ||
<script> | ||
/* grunticon Stylesheet Loader | https://github.com/filamentgroup/grunticon | (c) 2012 Scott Jehl, Filament Group, Inc. | MIT license. */ | ||
window.grunticon=function(e){if(e&&3===e.length){var t=window,n=!(!t.document.createElementNS||!t.document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect||!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||window.opera&&-1===navigator.userAgent.indexOf("Chrome")),o=function(o){var r=t.document.createElement("link"),a=t.document.getElementsByTagName("script")[0];r.rel="stylesheet",r.href=e[o&&n?0:o?1:2],a.parentNode.insertBefore(r,a)},r=new t.Image;r.onerror=function(){o(!1)},r.onload=function(){o(1===r.width&&1===r.height)},r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}}; | ||
grunticon( [ "icons.data.svg.css", "icons.data.png.css", "icons.fallback.css" ] ); | ||
</script> | ||
<noscript><link href="icons.fallback.css" rel="stylesheet"></noscript> | ||
</head> | ||
<body> | ||
<pre><code>.icon-star:</code></pre><div class="icon-star" style="width: 42px; height: 42px"></div><hr/> | ||
</body> | ||
</html> |
Oops, something went wrong.