-
Notifications
You must be signed in to change notification settings - Fork 2k
Feaure(grunt): Wiredep task for grunt #1402
Conversation
remove explicit grunt task loading for `grunt-protactor-coverage` as `load-grunt-tasks` handles it
Automatically update bower dependencies.
Remove trailing comma from assets configuration generated by wiredep
Remove trailing comma from asset configurations generated by wiredep
@@ -51,6 +51,9 @@ | |||
"glob": "~7.0.0", | |||
"grunt": "~1.0.1", | |||
"grunt-cli": "~1.2.0", | |||
"grunt-rtc": "^0.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~ please
No. |
@lirantal I think you were working on something with grunt-wiredep, can you take a look at this too? |
@ilanbiala indeed, thanks for the heads up. |
@shanavas786 first of all I sincerely appreciate the effort in your PRs. Both As to the trailing commas, it sounds like we have some bug there that needs to get resolved. It doesn't make sense that we need a package to remove trailing commas. So getting back to the point - can you update this PR to take my comments above into consideration and this way to solve both #1360 as well as #1398 |
@lirantal sounds cool. For handling trailing commas, it needs a little parsing using |
You totally understood my points, great :) As for the commas, why does it even happen? do other projects need to forcely remove the trailing commas in their build process? This sounds like something we aren't doing right in the build process. |
@lirantal ok, let me explain, basically
with something like
The replacement template, though it is customizable, is uniform for all dependencies (in this case The trailing comma is necessary in replacement as it ends up as an array element, and since the replacement template is uniform, There comes need for a |
@lirantal Just one more thought. |
So to be honest I think that the trailing comma here is still just a symptom of the project not managing correctly the assets to wire. I suggest we do the following in this order too:
If we're still not in agreement on this then let's start with a PR on (1) to resolve the security issue and figure out how to solve (3) in a later PR. |
👍 for 1. 3 would only be a temporary fix. The proper solution would be to wire the template file directly and remove the bower dependencies from asset files. That will fix 2 too. |
Great. So let's proceed with a PR for (1) and I'll be happy to review your proposed solution for (3) in another PR. |
SGTM too. |
cd5dca7
to
5cdf216
Compare
@@ -228,7 +257,6 @@ module.exports = function (grunt) { | |||
|
|||
// Load NPM tasks | |||
require('load-grunt-tasks')(grunt); | |||
grunt.loadNpmTasks('grunt-protractor-coverage'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shanavas786 why are we removing this?
@shanavas786 looks like we're done there? just see my comment on the protractor task removal. |
@lirantal |
Update dependencies and remove trailing comma from asset files.
Fixes #1360