Skip to content

Commit

Permalink
Merge pull request #28 from drekbour/lodash-fix
Browse files Browse the repository at this point in the history
Fix build broken by lodash upgrade
  • Loading branch information
drewnoakes authored Jan 1, 2020
2 parents 9e38ebc + 7cc2e2a commit 5c97054
Show file tree
Hide file tree
Showing 5 changed files with 2,110 additions and 564 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
node_modules/
dist/
package-lock.json

4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ gulp.task('lib', function() {
return gulp.src(
[
'node_modules/jquery/dist/jquery.min.js',
'node_modules/lodash/dist/lodash.min.js',
'node_modules/lodash/lodash.min.js',
'node_modules/handlebars/dist/handlebars.min.js'
])
.pipe(gulp.dest('dist/scripts/lib'))
Expand Down Expand Up @@ -53,4 +53,4 @@ gulp.task('img', function() {
.pipe(gulp.dest('dist/img'))
});

gulp.task('default', ['app', 'lib', 'lib-min', 'styles', 'index', 'img']);
gulp.task('default', gulp.parallel('app', 'lib', 'lib-min', 'styles', 'index', 'img'));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"requirejs": "2.1.11"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp": "^4.0.2",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^2.1.2"
}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/app/FixParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ define(

var classes = [];

if (_.contains(data.systemFieldIds, fieldId)) {
if (_.includes(data.systemFieldIds, fieldId)) {
classes.push("system-field");
}

Expand Down
Loading

0 comments on commit 5c97054

Please sign in to comment.