Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 24d627ed0c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (11 sloc) 0.428 kb
#!/usr/bin/env node
// Nodejs lib.
var path = require('path');
// Badass internal grunt lib.
var findup = require('../lib/util/findup');
// Where might a locally-installed grunt live?
var dir = path.resolve(findup(process.cwd(), 'grunt.js'), '../node_modules/grunt');
// If grunt is installed locally, use it. Otherwise use this grunt.
if (!path.existsSync(dir)) { dir = '../lib/grunt'; }
// Run grunt.
require(dir).cli();
Jump to Line
Something went wrong with that request. Please try again.