0.0.1 • Published 10 years ago
standalone-grunt-runner v0.0.1
standalone-grunt-runner
A method of running Grunt tasks without a Gruntfile.js
.
Installation
npm install standalone-grunt-runner
Usage
Install the Grunt task you wish to use standalone as you usually would. Then, include standalone-grunt-runner and execute the task through that.
For instance, with grunt-download-atom-shell:
var standaloneGruntRunner = require('standalone-grunt-runner');
standaloneGruntRunner('download-atom-shell', {
config: {
version: '0.12.2',
outputDir: './cache'
},
npm: 'grunt-download-atom-shell'
});
Options
base
- The directory for Grunt works in. By default it is set to the current working directory the process was started in.config
- The configuration for the task which mimics the typical configuration used for any ordinary Grunt task.npm
- The name of the npm package for the Grunt task.