forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
55 lines (49 loc) · 2.06 KB
/
gulpfile.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
//
// See https://github.com/tfennelly/jenkins-js-builder
//
var builder = require('jenkins-js-builder');
//
// Bundle the page init script.
// See https://github.com/jenkinsci/js-builder#bundling
//
builder.bundle('src/main/js/page-init.js')
.withExternalModuleMapping('jquery-detached', 'core-assets/jquery-detached:jquery2')
.inDir('src/main/webapp/jsbundles');
//
// Bundle the Install Wizard.
// See https://github.com/jenkinsci/js-builder#bundling
//
builder.bundle('src/main/js/pluginSetupWizard.js')
.withExternalModuleMapping('jquery-detached', 'core-assets/jquery-detached:jquery2')
.withExternalModuleMapping('bootstrap', 'core-assets/bootstrap:bootstrap3', {addDefaultCSS: true})
.withExternalModuleMapping('handlebars', 'core-assets/handlebars:handlebars3')
.less('src/main/less/pluginSetupWizard.less')
.inDir('src/main/webapp/jsbundles');
//
// Bundle the Upgrade Wizard.
//
builder.bundle('src/main/js/upgradeWizard.js')
.withExternalModuleMapping('jquery-detached', 'core-assets/jquery-detached:jquery2')
.withExternalModuleMapping('bootstrap', 'core-assets/bootstrap:bootstrap3')
.withExternalModuleMapping('handlebars', 'core-assets/handlebars:handlebars3')
.inDir('src/main/webapp/jsbundles');
//
// Bundle the Config Tab Bar.
// See https://github.com/jenkinsci/js-builder#bundling
//
builder.bundle('src/main/js/config-tabbar.js')
.withExternalModuleMapping('jquery-detached', 'core-assets/jquery-detached:jquery2')
.less('src/main/js/config-tabbar.less')
.inDir('src/main/webapp/jsbundles');
//
// Bundle the Config Scrollspy.
// See https://github.com/jenkinsci/js-builder#bundling
//
builder.bundle('src/main/js/config-scrollspy.js')
.withExternalModuleMapping('jquery-detached', 'core-assets/jquery-detached:jquery2')
.less('src/main/js/config-scrollspy.less')
.inDir('src/main/webapp/jsbundles');
builder.bundle('src/main/js/add-item.js')
.withExternalModuleMapping('jquery-detached', 'core-assets/jquery-detached:jquery2')
.less('src/main/js/add-item.less')
.inDir('src/main/webapp/jsbundles');