|
4 | 4 |
|
5 | 5 | process.title = 'grunt'; |
6 | 6 |
|
7 | | -var Liftup = require('liftup'); |
| 7 | +var Liftoff = require('liftoff'); |
8 | 8 | var v8flags = require('v8flags'); |
9 | 9 | var extensions = require('interpret').jsVariants; |
10 | 10 | var nopt = require('nopt'); |
@@ -35,37 +35,35 @@ if ('completion' in options) { |
35 | 35 | } |
36 | 36 |
|
37 | 37 | v8flags(function (err, v8flags) { |
38 | | - var Grunt = new Liftup({ |
| 38 | + var Grunt = new Liftoff({ |
39 | 39 | name: 'grunt', |
40 | 40 | configName: 'Gruntfile', |
41 | 41 | // Support a number of languages based on file extension |
42 | 42 | extensions: extensions, |
43 | 43 | // Flags that are v8 flags will be loaded into node instead of Gruntfile |
44 | 44 | v8flags: v8flags |
45 | 45 | }); |
46 | | - Grunt.prepare({ |
| 46 | + Grunt.launch({ |
47 | 47 | cwd: options.base, |
48 | 48 | configPath: options.gruntfile, |
49 | 49 | require: options.require, |
50 | 50 | verbose: options.verbose |
51 | 51 | }, function (env) { |
52 | | - Grunt.execute(env, function(env) { |
53 | | - var tasks = options.argv.remain; |
54 | | - delete options.argv; |
55 | | - // No grunt install found! |
56 | | - if (!env.modulePath) { |
57 | | - if (options.version) { |
58 | | - process.exit(); |
59 | | - } |
60 | | - if (options.help) { |
61 | | - info.help(); |
62 | | - } |
63 | | - info.fatal('Unable to find local grunt.', 99); |
64 | | - } else { |
65 | | - options.gruntfile = env.configPath; |
66 | | - var grunt = require(env.modulePath); |
67 | | - grunt.tasks(tasks, options); |
| 52 | + var tasks = options.argv.remain; |
| 53 | + delete options.argv; |
| 54 | + // No grunt install found! |
| 55 | + if (!env.modulePath) { |
| 56 | + if (options.version) { |
| 57 | + process.exit(); |
68 | 58 | } |
69 | | - }); |
| 59 | + if (options.help) { |
| 60 | + info.help(); |
| 61 | + } |
| 62 | + info.fatal('Unable to find local grunt.', 99); |
| 63 | + } else { |
| 64 | + options.gruntfile = env.configPath; |
| 65 | + var grunt = require(env.modulePath); |
| 66 | + grunt.tasks(tasks, options); |
| 67 | + } |
70 | 68 | }); |
71 | 69 | }); |
0 commit comments