File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 77 < meta name ="viewport " content ="width=device-width ">
88 <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
99
10- < % if (props.ui.key !== 'none') { %>
1110 <!-- build:css({<%= props.paths.tmp %>/serve,<%= props.paths.src %>}) styles/vendor.css -->
1211< % if (isVendorStylesPreprocessed) { %>
1312 < link rel ="stylesheet " href ="app/vendor.css ">
1413< % } else if (props.ui.key === 'bootstrap') { %>
1514 < link rel ="stylesheet " href ="<%= computedPaths.appToBower %>/bower_components/bootstrap/dist/css/bootstrap.css ">
1615< % } %>
1716 <!-- bower:css -->
18- <!-- run `gulp wiredep ` to automaticaly populate bower styles dependencies -->
17+ <!-- run `gulp inject ` to automaticaly populate bower styles dependencies -->
1918 <!-- endbower -->
2019 <!-- endbuild -->
21- < % } %>
2220
2321 <!-- build:css({<%= props.paths.tmp %>/serve,<%= props.paths.src %>}) styles/app.css -->
2422 <!-- inject:css -->
5149
5250 <!-- build:js(<%= props.paths.src %>) scripts/vendor.js -->
5351 <!-- bower:js -->
54- <!-- run `gulp wiredep ` to automaticaly populate bower script dependencies -->
52+ <!-- run `gulp inject ` to automaticaly populate bower script dependencies -->
5553 <!-- endbower -->
5654 <!-- endbuild -->
5755
Original file line number Diff line number Diff line change @@ -31,18 +31,12 @@ describe('gulp-angular index js template', function () {
3131 } ) ;
3232
3333 it ( 'should insert the vendor build block depending of data' , function ( ) {
34- model . props . ui . key = 'none ' ;
34+ model . props . ui . key = 'bootstrap ' ;
3535 model . props . paths . src = 'src' ;
3636 model . props . paths . tmp = 'tmp' ;
3737 model . computedPaths . appToBower = 'appToBower' ;
3838 model . isVendorStylesPreprocessed = false ;
39-
4039 var result = indexHtml ( model ) ;
41- result . should . not . match ( / < ! - - b u i l d : c s s \( .* ?\) s t y l e s \/ v e n d o r \. c s s - - > / ) ;
42- result . should . not . match ( / < ! - - b o w e r : c s s / ) ;
43-
44- model . props . ui . key = 'bootstrap' ;
45- result = indexHtml ( model ) ;
4640 result . should . match ( / < ! - - b u i l d : c s s \( { tmp\/ s e r v e , s r c } \) s t y l e s \/ v e n d o r \. c s s - - > / ) ;
4741 result . should . match ( / < ! - - b o w e r : c s s / ) ;
4842 result . should . match ( / h r e f = " a p p T o B o w e r \/ b o w e r _ c o m p o n e n t s / ) ;
You can’t perform that action at this time.
0 commit comments