Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(59)

Unified Diff: grunt.js

Issue 6811050: Automatic sprite image generation
Patch Set: Automatic sprite image generation Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/index.html ('k') | lib/views/stylesheet.less » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grunt.js
=== added file 'grunt.js'
--- grunt.js 1970-01-01 00:00:00 +0000
+++ grunt.js 2012-10-30 11:36:00 +0000
@@ -0,0 +1,26 @@
+'use strict';
+
+module.exports = function(grunt) {
+ grunt.initConfig({
+ spritesheet: {
+ compile: {
+ options: {
+ outputImage: 'sprite/sprite.png',
+ outputCss: 'sprite/sprite.css',
+ selector: '.sprite'
+
+ },
+ files: {
+ 'bin' : 'app/assets/images/*'
+ }
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('node-spritesheet');
+ grunt.registerTask('spritegen', 'spritesheet');
+
+ grunt.registerTask('default', function() {
+ // noop
+ });
+};
« no previous file with comments | « app/index.html ('k') | lib/views/stylesheet.less » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b