initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
; This file is for unifying the coding style for different editors and IDEs
|
||||||
|
; editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
|
||||||
|
; default settings for all files
|
||||||
|
[*]
|
||||||
|
end_of_line = crlf ; this is git standard, so it won't convert it anymore
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
|
insert_final_newline = false
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
tmp
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"curly": true,
|
||||||
|
"eqeqeq": true,
|
||||||
|
"immed": true,
|
||||||
|
"latedef": true,
|
||||||
|
"newcap": true,
|
||||||
|
"noarg": true,
|
||||||
|
"sub": true,
|
||||||
|
"undef": true,
|
||||||
|
"boss": true,
|
||||||
|
"eqnull": true,
|
||||||
|
"node": true,
|
||||||
|
"es5": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
.npmignore
|
||||||
|
.editorconfig
|
||||||
|
test
|
||||||
|
Grunfile.js
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* grunt-base64
|
||||||
|
* https://github.com/ceee/grunt-base64
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013 Tobias Klika
|
||||||
|
* Licensed under the MIT license.
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function (grunt) {
|
||||||
|
grunt.initConfig({
|
||||||
|
jshint: {
|
||||||
|
all: [
|
||||||
|
'Gruntfile.js',
|
||||||
|
'tasks/*.js',
|
||||||
|
'<%= nodeunit.tests %>'
|
||||||
|
],
|
||||||
|
options: {
|
||||||
|
jshintrc: '.jshintrc'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clean: {
|
||||||
|
test: ['tmp']
|
||||||
|
},
|
||||||
|
nodeunit: {
|
||||||
|
tasks: ['test/*_test.js']
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadTasks('tasks');
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-internal');
|
||||||
|
grunt.loadNpmTasks('grunt-base64');
|
||||||
|
|
||||||
|
grunt.registerTask('mkdir', grunt.file.mkdir);
|
||||||
|
|
||||||
|
grunt.registerTask('test', [ 'clean', 'mkdir:tmp', 'nodeunit', 'clean' ]);
|
||||||
|
|
||||||
|
grunt.registerTask('default', [ 'test', 'base64' ]);
|
||||||
|
};
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
Copyright (c) 2013 Tobias Klika
|
||||||
|
|
||||||
|
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.
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# grunt-base64
|
||||||
|
|
||||||
|
> create base64 encoded data-uris for css from images
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
This plugin requires Grunt `~0.4.0`
|
||||||
|
|
||||||
|
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm install grunt-base64 --save-dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
|
||||||
|
|
||||||
|
```js
|
||||||
|
grunt.loadNpmTasks('grunt-base64');
|
||||||
|
```
|
||||||
|
|
||||||
|
## Release History
|
||||||
|
* 2013-05-15 v0.1.0 please wait :P
|
||||||
|
|
||||||
|
|
||||||
|
## Contributors
|
||||||
|
* [@ceee](https://github.com/ceee) Tobias Klika
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"name": "grunt-base64",
|
||||||
|
"description": "create base64 encoded data-uris for css from images",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"homepage": "https://github.com/ceee/grunt-base64",
|
||||||
|
"author": {
|
||||||
|
"name": "Tobias Klika",
|
||||||
|
"url": "http://ceecore.com"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git://github.com/ceee/grunt-base64.git"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/ceee/grunt-base64/issues"
|
||||||
|
},
|
||||||
|
"licenses": [
|
||||||
|
{
|
||||||
|
"type": "MIT",
|
||||||
|
"url": "https://github.com/ceee/grunt-base64/blob/master/LICENSE-MIT"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"main": "Gruntfile.js",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.8.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "grunt test"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"filesize": "~1.7.9"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"grunt-contrib-internal": "~0.4.3",
|
||||||
|
"grunt-contrib-clean": "~0.4.0",
|
||||||
|
"grunt-contrib-jshint": "~0.2.0",
|
||||||
|
"grunt-contrib-nodeunit": "~0.1.2",
|
||||||
|
"grunt": "~0.4.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"grunt": "~0.4.0"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"gruntplugin",
|
||||||
|
"image",
|
||||||
|
"img",
|
||||||
|
"base64",
|
||||||
|
"datauri",
|
||||||
|
"png",
|
||||||
|
"jpg",
|
||||||
|
"jpeg",
|
||||||
|
"gif",
|
||||||
|
"css",
|
||||||
|
"convert"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* grunt-base64
|
||||||
|
* https://github.com/ceee/grunt-base64
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013 Tobias Klika
|
||||||
|
* Licensed under the MIT license.
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = function (grunt)
|
||||||
|
{
|
||||||
|
var path = require('path');
|
||||||
|
var fs = require('fs');
|
||||||
|
var childProcess = require('child_process');
|
||||||
|
var filesize = require('filesize');
|
||||||
|
|
||||||
|
grunt.registerMultiTask('base64', 'create base64 encoded data-uris for css from images', function ()
|
||||||
|
{
|
||||||
|
var options = this.options();
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
'use strict';
|
||||||
|
var grunt = require('grunt');
|
||||||
|
var fs = require('fs');
|
||||||
|
|
||||||
|
exports.imagemin = {
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user