Skip to content

Commit e820858

Browse files
authoredMar 25, 2021
Revert liftoff changes due to gruntjs/grunt#1725 (#143)
1 parent 2293dc5 commit e820858

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed
 

‎bin/grunt

+18-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
process.title = 'grunt';
66

7-
var Liftup = require('liftup');
7+
var Liftoff = require('liftoff');
88
var v8flags = require('v8flags');
99
var extensions = require('interpret').jsVariants;
1010
var nopt = require('nopt');
@@ -35,37 +35,35 @@ if ('completion' in options) {
3535
}
3636

3737
v8flags(function (err, v8flags) {
38-
var Grunt = new Liftup({
38+
var Grunt = new Liftoff({
3939
name: 'grunt',
4040
configName: 'Gruntfile',
4141
// Support a number of languages based on file extension
4242
extensions: extensions,
4343
// Flags that are v8 flags will be loaded into node instead of Gruntfile
4444
v8flags: v8flags
4545
});
46-
Grunt.prepare({
46+
Grunt.launch({
4747
cwd: options.base,
4848
configPath: options.gruntfile,
4949
require: options.require,
5050
verbose: options.verbose
5151
}, 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();
6858
}
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+
}
7068
});
7169
});

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"grunt-known-options": "~1.1.1",
1919
"interpret": "~1.1.0",
20-
"liftup": "~3.0.1",
20+
"liftoff": "~2.5.0",
2121
"nopt": "~4.0.1",
2222
"v8flags": "~3.2.0"
2323
},

0 commit comments

Comments
 (0)
Please sign in to comment.