-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
36 lines (29 loc) · 918 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
30
31
32
33
34
35
36
/*
* grunt-cubx-webpackage-upload
*
*
* Copyright (c) 2015 Hd Böhlau
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
// Project configuration.
const workspacePath = 'test/webpackages/';
const workspaceConfigPath = workspacePath + '.workspace';
let activeWebpackage;
try {
activeWebpackage = grunt.file.readJSON(workspaceConfigPath).activeWebpackage;
} catch (err) {
}
const manifestWebpackagePath = workspacePath + activeWebpackage + '/manifest.webpackage';
grunt.initConfig({
// the option used within the devtools to load the workspace-config
workspacePath: workspacePath,
workspaceConfigPath: workspaceConfigPath,
activeWebpackage: activeWebpackage,
manifestWebpackagePath: manifestWebpackagePath
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
};