-
Notifications
You must be signed in to change notification settings - Fork 12
/
Gruntfile.js
31 lines (25 loc) · 1.05 KB
/
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
30
/*
** ComponentJS -- Component System for JavaScript <http://componentjs.com>
** Copyright (c) 2009-2018 Ralf S. Engelschall <http://engelschall.com>
**
** This Source Code Form is subject to the terms of the Mozilla Public
** License (MPL), version 2.0. If a copy of the MPL was not distributed
** with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* global module: true */
/* global require: true */
module.exports = function (grunt) {
/* initial task configuration */
grunt.initConfig({
version: grunt.file.readYAML("VERSION"),
version_string: "<%= version.major %>.<%= version.minor %>.<%= version.micro %>"
});
/* common task aliasing */
grunt.registerTask("default", [ "build" ]);
grunt.registerTask("build", [ "env-build", "src-build", "doc-build" ]);
grunt.registerTask("cleanup", [ "doc-clean", "src-clean", "env-clean" ]);
/* load foreign tasks */
require("load-grunt-tasks")(grunt, { pattern: "grunt-*" });
/* load own tasks */
grunt.loadTasks("env");
};