@@ -12,15 +12,15 @@ var bowerDir = config.bowerDir;
12
12
/*******************************************************************************
13
13
14
14
...Few words about vendor files
15
-
15
+
16
16
For not including all scripts manually we use plugin
17
- called main-bower-files.
17
+ called main-bower-files.
18
18
19
19
It returns glob of files based on "main" field in vendor packages "bower.json".
20
20
Orders of files will be as per our bower.json, so if you have some libraries
21
21
that should be loaded on first, just move them upwards in project "bower.json".
22
22
23
- If any of files that you want to access is not listed in vendor package, you can
23
+ If any of files that you want to access is not listed in vendor package, you can
24
24
define files for that package manually in bower.json "overrides" field.
25
25
26
26
For more docs visit.
@@ -29,7 +29,7 @@ var bowerDir = config.bowerDir;
29
29
If for any reasons you don't like this approach, and want list your files
30
30
manually, you can just pass manual glob string or array to "src" option
31
31
32
- eg.
32
+ eg.
33
33
34
34
export.scripts: [
35
35
bowerDir + "jquery/dist/jquery.js",
@@ -43,16 +43,32 @@ var bowerDir = config.bowerDir;
43
43
/***********************************************
44
44
* Vendor script files
45
45
************************************************/
46
-
47
46
48
- exports . scripts = mainBowerFiles ( {
47
+ var npmScripts = [
48
+ config . npmDir + '/jquery/dist/jquery.js' ,
49
+ config . npmDir + '/jquery-flot/jquery.flot.js' ,
50
+ config . npmDir + '/jquery-flot/jquery.flot.resize.js' ,
51
+ config . npmDir + '/jquery-flot/jquery.flot.pie.js' ,
52
+ config . npmDir + '/jquery-flot/jquery.flot.time.js' ,
53
+ config . npmDir + '/jquery.flot.tooltip/js/jquery.flot.tooltip.js' ,
54
+ ] ;
55
+
56
+ var bowerScripts = mainBowerFiles ( {
49
57
filter : [
50
58
'**/*.js' ,
51
59
'!**/*.min.js'
52
60
] ,
53
61
paths : rootDir
54
62
} ) ;
55
63
64
+ bowerScripts . splice ( 0 , npmScripts . length ) ;
65
+
66
+ var scripts = [ ] . concat ( npmScripts , bowerScripts ) ;
67
+
68
+ console . log ( scripts ) ;
69
+
70
+ exports . scripts = scripts ;
71
+
56
72
57
73
/***********************************************
58
74
* Vendor style files
@@ -83,7 +99,7 @@ var bowerDir = config.bowerDir;
83
99
'!**/*.less' ,
84
100
85
101
// Ingore fonts
86
-
102
+
87
103
'!**/*.otf' ,
88
104
'!**/*.eot' ,
89
105
'!**/*.ttf' ,
@@ -108,4 +124,4 @@ var bowerDir = config.bowerDir;
108
124
'**/*.svg'
109
125
] ,
110
126
paths : rootDir
111
- } ) ;
127
+ } ) ;
0 commit comments