Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted the project to Grunt (instead of Codekit)
- Loading branch information
Showing
25 changed files
with
2,151 additions
and
20 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,4 +1,7 @@ | ||
# Sass and Sompass | ||
# Node | ||
node_modules/ | ||
|
||
# Sass and Compass | ||
.sass-cache/ | ||
|
||
# OS X | ||
|
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,105 @@ | ||
module.exports = function(grunt) { | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
handlebars: { | ||
options: { | ||
namespace: 'Handlebars.templates', | ||
processName: function(filePath) { | ||
return filePath.replace(/^templates\//, '').replace(/\.handlebars$/, ''); | ||
} | ||
}, | ||
|
||
all: { | ||
files: { | ||
"js/templates.js": ["templates/*.handlebars"] | ||
} | ||
} | ||
}, | ||
|
||
concat: { | ||
dist: { | ||
src: [ | ||
'js/libs/*.js', | ||
'js/templates.js', | ||
'js/card.js', | ||
'js/modal.js', | ||
'js/content.js', | ||
'js/schedule.js', | ||
'js/analytics.js', | ||
'js/header.js', | ||
'js/global.js' | ||
], | ||
dest: 'js/build/production.js', | ||
} | ||
}, | ||
|
||
uglify: { | ||
build: { | ||
src: 'js/build/production.js', | ||
dest: 'js/build/production.min.js' | ||
} | ||
}, | ||
|
||
compass: { | ||
dist: { | ||
options: { | ||
config: 'config.rb' | ||
} | ||
} | ||
}, | ||
|
||
watch: { | ||
options: { | ||
livereload: true, | ||
}, | ||
scripts: { | ||
files: ['js/*.js'], | ||
tasks: ['concat', 'uglify'], | ||
options: { | ||
spawn: false, | ||
}, | ||
}, | ||
|
||
css: { | ||
files: ['css/*.scss'], | ||
tasks: ['compass'], | ||
options: { | ||
spawn: false, | ||
} | ||
}, | ||
|
||
handlebars: { | ||
files: ['templates/*.handlebars'], | ||
tasks: ['handlebars', 'concat', 'uglify'], | ||
options: { | ||
spawn: false, | ||
} | ||
} | ||
}, | ||
|
||
connect: { | ||
server: { | ||
options: { | ||
port: 8000, | ||
base: './' | ||
} | ||
} | ||
} | ||
|
||
}); | ||
|
||
// Where we tell Grunt we plan to use this plug-in. | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-compass'); | ||
grunt.loadNpmTasks('grunt-contrib-connect'); | ||
grunt.loadNpmTasks('grunt-contrib-handlebars'); | ||
|
||
// Where we tell Grunt what to do when we type "grunt" into the terminal. | ||
grunt.registerTask('default', ['handlebars', 'concat', 'uglify', 'compass']); | ||
grunt.registerTask('dev', ['connect', 'watch']); | ||
|
||
}; |
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.
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
File renamed without changes.
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.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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.