-
Notifications
You must be signed in to change notification settings - Fork 12
/
Gruntfile.js
47 lines (42 loc) · 1.75 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* This program is part of the OpenCms Apollo Template.
*
* Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
module.exports = function(grunt) {
oc = require('./grunt-opencms-modules.js');
oc.initGrunt(grunt, 'build/');
oc.loadModule('./apollo-src/jquery');
oc.loadModule('./apollo-src/bootstrap');
oc.loadModule('./apollo-src/font-awesome');
oc.loadModule('./apollo-src/plugins');
oc.loadModule('./apollo-src/js');
oc.loadModule('./apollo-src/scss');
oc.loadModule('./apollo-src/scss-themes');
oc.registerGruntTasks();
};
/**
* Available grunt targets:
*
* clean: Clean up the working directory.
* template: Build the minified template CSS from Sass.
* pluginCss: Build the minified CSS from the plugins.
* pluginJs: Build the uglified JavaScript from the plugins.
* plugins: Build both the minified CSS and JavaScript from the plugins.
* deploy: Copy created CSS and JavaScript as well as static resources to the configured deploy folder.
* watch: Watch for changes and rebuild output.
*
*/