forked from loedeman/AutoMapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp.config.js
72 lines (61 loc) · 2.76 KB
/
gulp.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
68
69
70
71
72
'use strict';
var GulpConfig = (function () {
function gulpConfig() {
this.libraryVersion = '1.2.0';
// folder definitions
this.baseFolder = './';
this.sourceFolder = this.baseFolder + 'src/';
this.samplesFolder = this.baseFolder + 'samples/';
this.testFolder = this.baseFolder + 'test/';
this.typingsFolder = this.baseFolder + 'tools/typings/';
// TypeScript source definitions
this.libraryTypeScriptDefinitions = this.typingsFolder + '**/*d.ts';
this.allAppTsFiles = this.sourceFolder + 'ts/**/*.ts';
this.allSampleTsFiles = this.samplesFolder + 'ts/**/*.ts';
this.allTestTsFiles = this.testFolder + 'tests/ts/**/*.ts';
this.allPerformanceTestTsFiles = this.testFolder + 'performance-tests/ts/**/*.ts';
// JavaScript output definitions
this.appJsOutputFolder = this.sourceFolder + 'js/';
this.samplesJsOutputFolder = this.samplesFolder + 'js/';
this.testJsOutputFolder = this.testFolder + 'tests/js/';
this.performanceTestsJsOutputFolder = this.testFolder + 'performance-tests/js/';
this.testCoverageOutputFolder = this.testFolder + 'coverage/app-src/';
// Output bundle definitions
this.bundleFolder = this.baseFolder + 'dist/';
this.appBundleName = 'automapper.js';
this.appBundleNameMinified = 'automapper.min.js';
this.allAppDefinitionFiles = [
this.typingsFolder + 'arcady-automapper-classes.d.ts',
this.typingsFolder + 'arcady-automapper-interfaces.d.ts',
this.typingsFolder + 'arcady-automapper-declaration.d.ts'
];
this.appDefinitionBundleName = 'arcady-automapper.d.ts';
this.allAppJsFiles = [
this.appJsOutputFolder + '**/*.js',
'!' + this.samplesJsOutputFolder + '**/*.js'
];
this.allTestFiles = [
this.testCoverageOutputFolder + '**/*.js',
this.testFolder + 'scripts/jasmine-utils.js',
this.testJsOutputFolder + '**/*.js'
];
// TypeScript compiler options
this.tscOptions = {
noImplicitAny: true
};
this.libraryHeaderTemplate = '/*!\n\
* TypeScript / Javascript AutoMapper Library v${version}\n\
* ${url}\n\
*\n\
* Copyright 2015 ${organization} and other contributors\n\
* Released under the ${license} license\n\
*\n\
* Date: ${currentDate}\n\
*/\n',
this.libraryOrganization = 'Arcady BV',
this.libraryUrl = 'https://github.com/ArcadyIT/AutoMapper',
this.libraryLicense = 'MIT'
}
return gulpConfig;
})();
module.exports = GulpConfig;