commit cadce10c609d979197426164d37c797dae0b7cbe Author: Andrew Tomaka Date: Wed Sep 10 23:45:27 2014 -0400 Iniital commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d23fae8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# Created by https://www.gitignore.io + +### Node ### +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# Commenting this out is preferred by some people, see +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Users Environment Variables +.lock-wscript + diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..b987b34 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,20 @@ +module.exports = function(grunt) { + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + trimtrailingspaces: { + main: { + src: ['/tmp/test/*'], + options: { + filter: 'isFile', + encoding: 'utf8', + failIfTrimmed: false + } + } + } + }); + + grunt.loadNpmTasks('grunt-trimtrailingspaces'); + + grunt.registerTask('default', []); + grunt.registerTask('fixwhitespace', ['trimtrailingspaces']); +}; diff --git a/README.md b/README.md new file mode 100644 index 0000000..09a9233 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Global Runners + +## Usage + +grunt --gruntfile ~/grunt-test/Gruntfile.js TASK + +alias rt="grunt --gruntfile ~/grunt-test/Gruntfile.js TASK" diff --git a/package.json b/package.json new file mode 100644 index 0000000..abda37b --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "grunt-test", + "version": "0.0.1", + "description": "Grunt test global runners", + "main": "Grunfile.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Andrew Tomaka", + "license": "MIT", + "dependencies": { + "grunt": "^0.4.5", + "grunt-trimtrailingspaces": "^0.4.0" + } +}