-
Notifications
You must be signed in to change notification settings - Fork 95
/
Gruntfile.js
29 lines (22 loc) · 942 Bytes
/
Gruntfile.js
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
29
/**
* Copyright (c) Ajay Sreedhar. All rights reserved.
*
* Licensed under the MIT License.
* Please see LICENSE file located in the project root for more information.
*/
'use strict';
const loadTasks = require('load-grunt-tasks');
const {copyConfig, babelConfig} = require('./build/grunt-config');
const {cleanBuild, startRenderer, makeRelease} = require('./build/grunt-task');
module.exports = function (grunt) {
loadTasks(grunt, {pattern: ['grunt-contrib-copy', 'grunt-babel']});
grunt.initConfig({
copy: copyConfig,
babel: babelConfig
});
grunt.registerTask('clean', 'Cleans up the output files.', cleanBuild);
grunt.registerTask('render', 'Starts the electron renderer.', startRenderer);
grunt.registerTask('dist', 'Makes a distributable release.', makeRelease);
grunt.registerTask('compile', ['clean', 'babel', 'copy']);
grunt.registerTask('start', ['compile', 'render']);
};