Skip to content

Commit

Permalink
Fix import jquery e angular in index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrycz committed Apr 16, 2019
1 parent 5e2f043 commit c21c611
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@
"angular-mocks": "1.5.8"
},
"overrides": {
"jquery": {
"ignore": true
},
"angular": {
"dependencies": {
"jquery": "3.1.0"
}
},
"ignore": true
},
"angular-cache-buster": {
"dependencies": {
Expand Down
10 changes: 7 additions & 3 deletions gulp/inject.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var gulp = require('gulp'),
debug = require('gulp-debug'),
plumber = require('gulp-plumber'),
inject = require('gulp-inject'),
es = require('event-stream'),
Expand All @@ -21,7 +22,9 @@ module.exports = {

function app() {
return gulp.src(config.app + 'index.html')
.pipe(plumber({errorHandler: handleErrors}))
.pipe(inject(gulp.src(config.app + 'app/**/*.js')
.pipe(debug())
.pipe(naturalSort())
.pipe(angularFilesort()), {relative: true}))
.pipe(gulp.dest(config.app));
Expand All @@ -30,9 +33,10 @@ function app() {
function vendor() {
var stream = gulp.src(config.app + 'index.html')
.pipe(plumber({errorHandler: handleErrors}))
.pipe(inject(gulp.src(bowerFiles(), {read: false}), {
name: 'bower',
relative: true
.pipe(inject(gulp.src(bowerFiles(), {read: false})
.pipe(debug()), {
name: 'bower',
relative: true
}))
.pipe(gulp.dest(config.app));

Expand Down

0 comments on commit c21c611

Please sign in to comment.