forked from adaptlearning/adapt_framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
executable file
·28 lines (24 loc) · 812 Bytes
/
Copy pathGruntfile.js
File metadata and controls
executable file
·28 lines (24 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const path = require('path');
module.exports = function(grunt) {
const helpers = require('./grunt/helpers')(grunt);
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
data: helpers.generateConfigData(),
configPath: path.join(__dirname, 'grunt', 'config'),
jitGrunt: {
customTasksDir: path.join(__dirname, 'grunt', 'tasks'),
staticMappings: {
bower: 'grunt-bower-requirejs'
}
}
});
grunt.config('helpers', helpers);
grunt.registerTask('default', ['help']);
};
// guard against ECONNRESET issues https://github.com/adaptlearning/adapt-cli/issues/169
process.on('uncaughtException', (error, origin) => {
if (error?.code === 'ECONNRESET') return;
console.error('UNCAUGHT EXCEPTION');
console.error(error);
console.error(origin);
});