Skip to content
Snippets Groups Projects
Commit 2afdeac3 authored by Chris Hallberg's avatar Chris Hallberg Committed by Robert Lange
Browse files

Grunt Customization Template (#1535)

- Adds a mechanism for defining local Grunt tasks.
parent 9440a64a
Branches
Tags instance/fid/staging/20200618
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
.vagrant .vagrant
.vscode/* .vscode/*
/downloads /downloads
/Gruntfile.local.js
/solr/vendor /solr/vendor
/vendor /vendor
ChangeLog ChangeLog
......
module.exports = function(grunt) { module.exports = function(grunt) {
require('jit-grunt')(grunt); // Just in time library loading const fs = require("fs");
// Local custom tasks
if (fs.existsSync("./Gruntfile.local.js")) {
require("./Gruntfile.local.js")(grunt);
}
var fs = require('fs'); require('jit-grunt')(grunt); // Just in time library loading
/** /**
* @param {string} file * @param {string} file
......
module.exports = function(grunt) {
grunt.registerTask("custom", function customFunc() {
grunt.log.writeln("Hello world!");
});
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment