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

Control destpath #102

Open
monolithed opened this issue Aug 13, 2016 · 0 comments
Open

Control destpath #102

monolithed opened this issue Aug 13, 2016 · 0 comments

Comments

@monolithed
Copy link

monolithed commented Aug 13, 2016

Actual

var files = init.filesToCopy(properties); // {  "foo.js": "project/root/foo.js" }

for (let file in files) {
    let to = path.join('MY_CUSTOM_DIRECTORY', file);
    let from = files[file];

    delete files[file];
    files[to] = from;
}

init.copyAndProcess(files, properties);

It's real pain to understand how it works.....

Expected

var files = init.filesToCopy(properties, { 
    dest: 'MY_CUSTOM_DIRECTORY' // or something else...
}); 
// {  "MY_CUSTOM_DIRECTORY/foo.js": "project/root/foo.js" }

init.copyAndProcess(files, properties);
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

1 participant