Skip to content

Commit 4d691e2

Browse files
authoredApr 4, 2021
Revert liftoff (#144)
* 1.4.1 * Revert "Revert liftoff changes due to gruntjs/grunt#1725 (#143)" This reverts commit e820858.
1 parent e820858 commit 4d691e2

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed
 

‎bin/grunt

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

55
process.title = 'grunt';
66

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

3737
v8flags(function (err, v8flags) {
38-
var Grunt = new Liftoff({
38+
var Grunt = new Liftup({
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.launch({
46+
Grunt.prepare({
4747
cwd: options.base,
4848
configPath: options.gruntfile,
4949
require: options.require,
5050
verbose: options.verbose
5151
}, function (env) {
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();
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);
5868
}
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-
}
69+
});
6870
});
6971
});

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-cli",
33
"description": "The grunt command line interface",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"author": "Grunt Development Team (http://gruntjs.com/development-team)",
66
"repository": "gruntjs/grunt-cli",
77
"license": "MIT",
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"grunt-known-options": "~1.1.1",
1919
"interpret": "~1.1.0",
20-
"liftoff": "~2.5.0",
20+
"liftup": "~3.0.1",
2121
"nopt": "~4.0.1",
2222
"v8flags": "~3.2.0"
2323
},

0 commit comments

Comments
 (0)
Please sign in to comment.