Brak opisu

jit-grunt.js 523B

12345678910111213141516171819202122
  1. 'use strict';
  2. var jitGrunt = require('./lib/jit-grunt');
  3. var path = require('path');
  4. module.exports = function (grunt, mappings) {
  5. var jit = jitGrunt(grunt, mappings);
  6. return function (options) {
  7. options = options || {};
  8. if (options.loadTasks) {
  9. jit.customTasksDir = path.resolve(options.loadTasks);
  10. }
  11. if (options.customTasksDir) {
  12. jit.customTasksDir = path.resolve(options.customTasksDir);
  13. }
  14. if (options.pluginsRoot) {
  15. jit.pluginsRoot = options.pluginsRoot;
  16. }
  17. };
  18. };