forked from winjs/winjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
67 lines (56 loc) · 2.6 KB
/
config.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
(function () {
"use strict";
var config = {};
module.exports = config;
config.version = "2.1";
config.buildDate = new Date();
config.month = config.buildDate.getMonth() + 1;
config.buildDateString = config.buildDate.getFullYear() + "." + config.month + "." + config.buildDate.getDate();
config.localeFolder = "en-US";
config.outputFolder = "bin/";
config.copyright = '/* Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. */';
config.testsOutput = "";
if (process.env._NTTREE) {
config.inRazzle = true;
config.outputFolder = process.env._NTTREE + "/Corsica/";
config.testsOutput = config.outputFolder + "other." + config.version + ".debug/tests/unittests/";
} else {
config.testsOutput = config.outputFolder + "tests/";
config.inRazzle = false;
}
config.targetName = "WinJS." + config.version;
config.desktopFramework = "Microsoft." + config.targetName;
config.phoneFramework = "Microsoft.Phone." + config.targetName;
config.desktopOutput = config.outputFolder + config.desktopFramework + "/";
config.phoneOutput = config.outputFolder + config.phoneFramework + "/";
config.modulesOutput = config.outputFolder + "modules/";
config.baseStringsFiles = [
"src/js/build/Copyright.js",
"src/js/library/stringsHeader.js",
"src/js/library/stringsBlockHeader.js",
"src/js/" + config.localeFolder + "/base.prefix.js",
"src/js/" + config.localeFolder + "/base.resjson",
"src/js/library/stringsBlockFooter.js",
"src/js/library/stringsFooter.js"
];
config.uiStringsFiles = [
"src/js/build/Copyright.js",
"src/js/library/stringsHeader.js",
"src/js/library/stringsBlockHeader.js",
"src/js/" + config.localeFolder + "/ui.prefix.js",
"src/js/" + config.localeFolder + "/ui.resjson",
"src/js/library/stringsBlockFooter.js",
"src/js/library/stringsFooter.js"
];
config.lint = {
srcFiles: ["src/**/*.js"],
buildFiles: ["gruntfile.js", "config.js", "tasks/**/*.js"]
};
// Object that aggregates the saucelabs test results that we report through our automation
config.tests_results = {
"date": new Date(),
"environment": [],
"results": []
};
})();