Skip to content

Commit

Permalink
Revert liftoff changes due to gruntjs/grunt#1725
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Mar 25, 2021
1 parent 2293dc5 commit e5102fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
38 changes: 18 additions & 20 deletions bin/grunt
Expand Up @@ -4,7 +4,7 @@

process.title = 'grunt';

var Liftup = require('liftup');
var Liftoff = require('liftoff');
var v8flags = require('v8flags');
var extensions = require('interpret').jsVariants;
var nopt = require('nopt');
Expand Down Expand Up @@ -35,37 +35,35 @@ if ('completion' in options) {
}

v8flags(function (err, v8flags) {
var Grunt = new Liftup({
var Grunt = new Liftoff({
name: 'grunt',
configName: 'Gruntfile',
// Support a number of languages based on file extension
extensions: extensions,
// Flags that are v8 flags will be loaded into node instead of Gruntfile
v8flags: v8flags
});
Grunt.prepare({
Grunt.launch({
cwd: options.base,
configPath: options.gruntfile,
require: options.require,
verbose: options.verbose
}, function (env) {
Grunt.execute(env, function(env) {
var tasks = options.argv.remain;
delete options.argv;
// No grunt install found!
if (!env.modulePath) {
if (options.version) {
process.exit();
}
if (options.help) {
info.help();
}
info.fatal('Unable to find local grunt.', 99);
} else {
options.gruntfile = env.configPath;
var grunt = require(env.modulePath);
grunt.tasks(tasks, options);
var tasks = options.argv.remain;
delete options.argv;
// No grunt install found!
if (!env.modulePath) {
if (options.version) {
process.exit();
}
});
if (options.help) {
info.help();
}
info.fatal('Unable to find local grunt.', 99);
} else {
options.gruntfile = env.configPath;
var grunt = require(env.modulePath);
grunt.tasks(tasks, options);
}
});
});
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"grunt-known-options": "~1.1.1",
"interpret": "~1.1.0",
"liftup": "~3.0.1",
"liftoff": "~2.5.0",
"nopt": "~4.0.1",
"v8flags": "~3.2.0"
},
Expand Down

0 comments on commit e5102fa

Please sign in to comment.