Permalink
Browse files

[dist] new Gruntfile

  • Loading branch information...
1 parent b9b67e2 commit 761725bdd4ee61fadabe0b782c30ae3c599ec637 @rma4ok committed Feb 24, 2013
Showing with 24 additions and 31 deletions.
  1. +24 −0 Gruntfile.coffee
  2. +0 −31 grunt.js
View
@@ -0,0 +1,24 @@
+module.exports = (grunt) ->
+ "use strict"
+
+ require('./tasks/bg-shell') grunt
+
+ grunt.initConfig
+ bgShell:
+ _defaults:
+ execOpts: null
+ stdout: true
+ stderr: true
+ bg: false
+ fail: false
+ done: (err, stdout, stderr) ->
+
+ testAsync:
+ cmd: 'ls'
+
+ testSync:
+ cmd: 'ls -la'
+ bg: false
+
+
+ grunt.registerTask 'default', 'bgShell'
View
@@ -1,31 +0,0 @@
-module.exports = function (grunt) {
- "use strict";
-
- grunt.loadNpmTasks('grunt-bg-shell');
-
-
- grunt.initConfig({
- bgShell: {
- _defaults: {
- execOpts: null,
- stdout: true,
- stderr: true,
- bg: false,
- fail: false,
- done: function (err, stdout, stderr) {
- }
- },
- coffeeCompile: {
- cmd: './node_modules/coffee-script/bin/coffee -b -o ./tasks -c ./src'
- },
- coffeeWatch: {
- cmd: './node_modules/coffee-script/bin/coffee -bw -o ./tasks -c ./src',
- bg: false
- }
- }
- });
-
-
- grunt.registerTask('default', 'bgShell:coffeeWatch');
-
-};

0 comments on commit 761725b

Please sign in to comment.