Skip to content

add --rename option to rename declarations and references #46

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

Closed
wants to merge 1 commit into from

Conversation

frapontillo
Copy link
Contributor

The --rename option takes a string as input, treating every couple, separated by a space, as a find-replace option.
For example, --rename "$theService $myService "theFactory myFactory" will replace $theService with $myService and theFactory with myFactory in both the declaration and in any annotation that will be added by ng-annotate. The actual use of the provider won't be changed.

Also, a couple of JS grammar fixes here and there.

Closes #44

The `--rename` option takes a string as input, treating every couple, separated by a space,
as a find-replace option.
For example,  `--rename "$theService $myService "theFactory myFactory"`will replace
`$theService` with `$myService` and `theFactory` with `myFactory` in both the declaration
and in any annotation that will be added by ng-annotate. The actual use of the provider
won't be changed.

Also, a couple of JS grammar fixes here and there.

Closes olov#44
@olov
Copy link
Owner

olov commented Jul 16, 2014

Can you kindly redo the PR without any formatting changes? They make reviewing it much harder. Feel free to open up another PR for semicolon fixes later on, but not for removing trailing commas though because they are a feature, not a bug.

@frapontillo
Copy link
Contributor Author

Would you prefer if I update this PR or redo it entirely?

@olov
Copy link
Owner

olov commented Jul 16, 2014

Whichever you prefer - I just need a clean diff to look at.

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.

Way to change a service name/reference
2 participants