Skip to content

Instantly share code, notes, and snippets.

View ebhoren's full-sized avatar

Dominic Mercier ebhoren

View GitHub Profile
@ebhoren
ebhoren / assets-campground.js
Last active August 29, 2015 13:56
Grunt file for generating assets from Campground
/*global module:false*/
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Project configuration.
grunt.initConfig({
config: {
@ebhoren
ebhoren / fmm-campground-xml
Last active August 29, 2015 13:56
formcmoney.com campground XML config
<?xml version="1.0"?>
<config>
<root type="panorama" width="15302">
<backgrounds>
<texture src="camping/panorama-1.atf" />
<texture src="camping/panorama-2.atf" />
<texture src="camping/panorama-3.atf" />
<texture src="camping/panorama-4.atf" />
<texture src="camping/panorama-5.atf" />
<texture src="camping/panorama-6.atf" />
<!doctype html>
<html>
<head>
<title>Automating spritesheet creation with GruntJS</title>
<link href="styles/spritesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1 class="sprite sprite.logo">Logo</h1>
</body>
</html>
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
spritesheet: {
compile: {
options: {
output: {
{
"name": "my-example",
"version": "1.0.0",
"devDependencies": {
}
}
@ebhoren
ebhoren / grunt.js
Last active December 11, 2015 06:38
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
scripts: {
src: [
'src/js/modules/nav.js',
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
scripts: {
src: [
'src/js/modules/nav.js',
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
scripts: {
src: [
'src/js/modules/nav.js',
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
scripts: {
src: [
'src/js/modules/nav.js',
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
scripts: {
src: [
'src/js/modules/nav.js',