This repository has been archived by the owner on May 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
15 changed files
with
163 additions
and
108 deletions.
There are no files selected for viewing
Empty file.
Empty file.
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,12 @@ | ||
{ | ||
"undef": true, | ||
"unused": true, | ||
"multistr": true, | ||
"trailing": true, | ||
"node": true, | ||
"curly": true, | ||
"quotmark": "double", | ||
"strict": true, | ||
"eqnull": true, | ||
"devel": 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 |
---|---|---|
@@ -1,77 +1,73 @@ | ||
/* | ||
* grunt-svg-sprites | ||
* dr-grunt-svg-sprites | ||
* | ||
* | ||
* Copyright (c) 2013 rafl | ||
* Copyright (c) 2013 rasmusfl0e | ||
* Licensed under the MIT license. | ||
*/ | ||
|
||
'use strict'; | ||
"use strict"; | ||
|
||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
/* | ||
jshint: { | ||
all: [ | ||
'Gruntfile.js', | ||
'tasks/*.js', | ||
'<%= nodeunit.tests %>', | ||
], | ||
options: { | ||
jshintrc: '.jshintrc', | ||
}, | ||
}, | ||
*/ | ||
// Before generating any new files, remove any previously-created files. | ||
/* | ||
clean: { | ||
tests: ['tmp'], | ||
}, | ||
*/ | ||
// Configuration to be run (and then tested). | ||
"svg-sprites": { | ||
/* | ||
default_options: { | ||
options: { | ||
}, | ||
files: { | ||
'tmp/default_options': ['test/fixtures/testing', 'test/fixtures/123'], | ||
}, | ||
}, | ||
custom_options: { | ||
options: { | ||
separator: ': ', | ||
punctuation: ' !!!', | ||
}, | ||
files: { | ||
'tmp/custom_options': ['test/fixtures/testing', 'test/fixtures/123'], | ||
}, | ||
}, | ||
*/ | ||
}, | ||
/* | ||
// Unit tests. | ||
nodeunit: { | ||
tests: ['test/*_test.js'], | ||
}, | ||
*/ | ||
}); | ||
// Project configuration. | ||
grunt.initConfig({ | ||
|
||
jshint: { | ||
all: [ | ||
"Gruntfile.js", | ||
"tasks/*.js", | ||
"<%= nodeunit.tests %>", | ||
], | ||
options: { | ||
jshintrc: ".jshintrc", | ||
}, | ||
}, | ||
|
||
// Before generating any new files, remove any previously-created files. | ||
|
||
clean: { | ||
tests: ["tmp"], | ||
}, | ||
|
||
// Actually load this plugin's task(s). | ||
grunt.loadTasks('tasks'); | ||
// Configuration to be run (and then tested). | ||
"svg-sprites": { | ||
options: { | ||
paths: { | ||
spriteElements: "test/sprite-elements", | ||
sprites: "tmp/sprites", | ||
css: "tmp/css" | ||
}, | ||
sizes: { | ||
small: 10, | ||
medium: 30, | ||
large: 50 | ||
}, | ||
refSize: "medium", | ||
unit: 10 | ||
} | ||
}, | ||
|
||
// These plugins provide necessary tasks. | ||
//grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
//grunt.loadNpmTasks('grunt-contrib-clean'); | ||
//grunt.loadNpmTasks('grunt-contrib-nodeunit'); | ||
// Unit tests. | ||
nodeunit: { | ||
tests: ["test/*_test.js"], | ||
}, | ||
|
||
// Whenever the "test" task is run, first clean the "tmp" dir, then run this | ||
// plugin's task(s), then test the result. | ||
//grunt.registerTask('test', ['clean', 'svg_sprites', 'nodeunit']); | ||
}); | ||
|
||
// Actually load this plugin"s task(s). | ||
grunt.loadTasks("tasks"); | ||
|
||
// By default, lint and run all tests. | ||
//grunt.registerTask('default', ['jshint', 'test']); | ||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks("grunt-contrib-jshint"); | ||
grunt.loadNpmTasks("grunt-contrib-clean"); | ||
grunt.loadNpmTasks("grunt-contrib-nodeunit"); | ||
|
||
// Whenever the "test" task is run, first clean the "tmp" dir, then run this | ||
// plugin"s task(s), then test the result. | ||
grunt.registerTask("test", ["clean", "svg-sprites"/*, "nodeunit"*/]); | ||
|
||
// By default, lint and run all tests. | ||
grunt.registerTask("default", ["jshint", "test"]); | ||
|
||
}; |
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
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
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
Empty file.
Oops, something went wrong.