Commit e873f24 1 parent 21c7951 commit e873f24 Copy full SHA for e873f24
File tree 2 files changed +16
-3
lines changed
generators/application/templates
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 24
24
"packages" : {
25
25
"available" : [
26
26
],
27
- "baseDir" : " node_modules/"
27
+ "baseDir" : " node_modules/" ,
28
+ "bundles" : {
29
+ "metadata" : true ,
30
+ "i18n" : true
31
+ }
28
32
},
29
33
"general" : {
30
34
"environmentName" : " " ,
Original file line number Diff line number Diff line change 1
1
var localGulp = require ( 'gulp' ) ;
2
+ var configJson = require ( './config.json' ) ;
3
+
4
+ /** Bundles Global Variables */
5
+ var bundlePath = configJson . packages && configJson . packages . bundlePath || "bundles" ;
2
6
3
7
//place your config here
4
8
var ctx = {
5
9
packageName : '<%= package %>' ,
6
- baseDir : __dirname ,
10
+ baseDir : __dirname ,
7
11
libsFolder : 'node_modules/' ,
8
12
localLibsFolder : 'local_libs/' ,
9
13
tempFolder : 'temp/' ,
10
14
sourceFolder : 'src/' ,
11
15
project : '<%= package %>.csproj' ,
12
16
type : 'webApp' ,
13
17
defaultPort : 7000 ,
18
+ availablePackages : configJson . packages && configJson . packages . available ,
19
+ isBundleBuilderOn : true ,
20
+ isMetadataBundlerOn : configJson . packages && configJson . packages . bundles && configJson . packages . bundles . metadata ,
21
+ isi18nBundlerOn : configJson . packages && configJson . packages . bundles && configJson . packages . bundles . i18n ,
22
+ bundlePath : bundlePath
14
23
} ;
15
24
16
25
var gulpFunction = function ( parentGulp , prefix ) {
17
26
ctx . prefix = prefix ;
18
27
19
- var tasks = require ( '@criticalmanufacturing/dev-tasks' ) ( parentGulp , ctx ) ;
28
+ var tasks = require ( '@criticalmanufacturing/dev-tasks' ) ( parentGulp , ctx ) ;
20
29
21
30
tasks . tasks . web ( tasks . plugins . gulpWrapper , ctx ) ;
22
31
You can’t perform that action at this time.
0 commit comments