Iniital commit
This commit is contained in:
commit
cadce10c60
4 changed files with 74 additions and 0 deletions
32
.gitignore
vendored
Normal file
32
.gitignore
vendored
Normal file
|
@ -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
|
||||
|
20
Gruntfile.js
Normal file
20
Gruntfile.js
Normal file
|
@ -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']);
|
||||
};
|
7
README.md
Normal file
7
README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Global Runners
|
||||
|
||||
## Usage
|
||||
|
||||
grunt --gruntfile ~/grunt-test/Gruntfile.js TASK
|
||||
|
||||
alias rt="grunt --gruntfile ~/grunt-test/Gruntfile.js TASK"
|
15
package.json
Normal file
15
package.json
Normal file
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue