-
Notifications
You must be signed in to change notification settings - Fork 4
/
gulp.config.js
82 lines (76 loc) · 3.36 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
73
74
75
76
77
78
79
80
81
82
'use strict';
const path = require('path');
var config = {
coreBundleName: 'lvm/core',
tsconfig: './tsconfig.json',
sources: {
injectables: [
'dist/scripts/vendor.js',
'dist/styles/bundle.css',
'dist/styles/app.min.css'
],
vendorStyles: 'vendor/styles/**/*',
appStyles: './src/styles/**/*.css',
wizardRootJSX: './src-wizard-app/app/root.jsx',
rootFolder: 'src',
coreSourceFolder: 'src-core',
wizardRootFolder: 'src-wizard-app',
samplePdf: './src/*.pdf'
},
targets: {
coreRootFolder: 'dist-core',
rootFolder: 'dist',
vendorJs: 'vendor.js',
wizardBundle: 'bundle.js'
},
globs: {}
};
config.sources.indexHtml = [
path.join(config.sources.rootFolder, 'index.html'),
path.join(config.sources.rootFolder, 'loading.html')
];
config.sources.appFolder = path.join(config.sources.rootFolder, 'app');
config.targets.wizardBundleFolder = path.join(config.sources.wizardRootFolder,'dist');
config.targets.appFolder = path.join(config.targets.rootFolder, 'app');
config.targets.scriptsFolder = path.join(config.targets.rootFolder, 'scripts');
config.targets.fontsFolder = path.join(config.targets.rootFolder, 'fonts');
config.targets.stylesFolder = path.join(config.targets.rootFolder, 'styles');
config.targets.imagesFolder = path.join(config.targets.rootFolder, 'images');
config.globs.allFromSource = [
path.join(config.sources.rootFolder, '**/*'),
path.join(config.sources.coreSourceFolder, '**/*')
];
config.globs.appTemplates = path.join(config.sources.appFolder, '**/*.html');
config.globs.allFromDist = path.join(config.targets.rootFolder, '**/*');
config.globs.allFromCoreDist = path.join(config.targets.coreRootFolder, '**/*');
config.globs.allCoreSourceFiles = path.join(config.sources.coreSourceFolder, "**/*.ts");
config.globs.vendorFonts = [
'vendor/fonts/**/*',
'node_modules/bootstrap/dist/fonts/**/*'
];
config.globs.allImages = path.join('images', '**/*');
config.globs.vendorScripts = [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/es6-shim/s6-shim.js',
'node_modules/systemjs/dist/system-polyfills.js',
'node_modules/angular2/bundles/angular2-polyfills.js',
'node_modules/systemjs/dist/system.js',
'node_modules/rxjs/bundles/Rx.min.js',
'node_modules/angular2/bundles/angular2.js',
'node_modules/angular2/bundles/http.js',
'node_modules/angular2/bundles/router.js',
'vendor/bootstrap-datepicker.min.js',
'vendor/bootstrap-datepicker.de.min.js'
];
config.coreSystemConfig = path.join(config.sources.coreSourceFolder, 'system.config.js');
config.coreTsconfig = path.join(config.sources.coreSourceFolder, 'tsconfig.json');
config.coreBundleFile = path.join(config.targets.coreRootFolder, 'lvm/bundles/lvm/core.js');
config.coreEs5DistFolder = path.join(config.targets.coreRootFolder, 'lvm/es5');
config.coreSymlinkTarget = path.join('node_modules', 'lvm');
config.coreContractTarget = path.join('src-contract-app', 'lvm');
config.coreJobSearchTarget = path.join('src-job-search-app', 'lvm');
config.coreWizardTarget = path.join('src-wizard-app', 'lvm');
config.coreSchufaTarget = path.join('src-schufa-app', 'lvm');
config.coreSymlinkSource = path.join(config.targets.coreRootFolder, 'lvm', '**','*');
module.exports = config;