Skip to content
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

Line transformation #9

Open
yj7o5 opened this issue Sep 6, 2017 · 4 comments
Open

Line transformation #9

yj7o5 opened this issue Sep 6, 2017 · 4 comments

Comments

@yj7o5
Copy link

yj7o5 commented Sep 6, 2017

Hey Man,

Wouldn't be nice to also have a way to transform a particular line or each of the lines that are being copied.

so for ex:

copy_part_of_files: {
     options: {},
     transform: (line:string) => [transformed] line
}

this could be useful in cases where lets say we have a Constants file in our backend proj. and another constants.js file in the frontend wanted to keep them in sync. Now if it were to be a .cs file we may need to transform the line that is "parse-able" in js.
like

public const string SomethingAsFoo = "SomethingAsFoo"
-
SomethingAsFoo: "SomethingAsFoo" 

but, nevertheless there are many possibilities.

@dehru
Copy link
Owner

dehru commented Sep 6, 2017

Yeah, that's a nice idea. You have any interest in adding that? I'm not using grunt much anymore, I've switched to gulp on new projects.

@yj7o5
Copy link
Author

yj7o5 commented Sep 18, 2017

Sorry been busy quite a while.

ok yea ... will send you a PR soon ... once I get some time from school and work.

@yj7o5
Copy link
Author

yj7o5 commented Oct 14, 2017

Alright have a look on the PR ..

@dehru
Copy link
Owner

dehru commented Oct 19, 2017

Sorry, I’ve been sick. I will try to take a look ASAP.

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

No branches or pull requests

2 participants