Skip to content

fix(cli-service): inspect --rules (close #3334) #3378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 5, 2019

Conversation

LinusBorg
Copy link
Member

@LinusBorg LinusBorg commented Jan 28, 2019

should only return rules that actually have a name
(= which were added with the chainWebpack API)

close #3334

Alternative: Instead of filtering these cases, we could add a default name to inform the user that there are rules not included in this list?

should only return rules that actually have a name 
(= which were added with the chainWebpack API)

close #3334
@haoqunjiang
Copy link
Member

I think we need a default / placeholder name for such rules, otherwise the result might be misleading.

@LinusBorg
Copy link
Member Author

Agreed. We would then also need to mark those rules with e..g an asterisk and explain belog the list that entries marked with an asterisk can't be accessed with inspect --rule [ruleName]

Will make changes accordingly.

@LinusBorg LinusBorg self-assigned this Jan 30, 2019
@LinusBorg
Copy link
Member Author

LinusBorg commented Jan 31, 2019

@sodatea I made the changes. Also noticed we didn't really have tests for the inspect command (unless I failed to find them?)

I tested the changes and they work, but i could take the opportunity and come up with a few tests for inspect.

Might take me a while though

… into LinusBorg-patch-issue-3334

* 'LinusBorg-patch-issue-3334' of github.com:vuejs/vue-cli:
  fix: conditional

# Conflicts:
#	packages/@vue/cli-service/lib/commands/inspect.js
@LinusBorg LinusBorg changed the title [WIP] fix(cli-service): inspect --rules (close #3334) fix(cli-service): inspect --rules (close #3334) Mar 3, 2019
@LinusBorg LinusBorg requested a review from haoqunjiang March 4, 2019 09:48
@LinusBorg LinusBorg removed their assignment Mar 4, 2019
@haoqunjiang haoqunjiang merged commit 6f93bfe into dev Mar 5, 2019
@LinusBorg LinusBorg deleted the LinusBorg-patch-issue-3334 branch May 3, 2019 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vue inspect rules error
2 participants