gruntjs / gruntjs/grunt-init

Control destpath

Open
#102 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
195
Forks
57
PR merge metrics
No merged PRs in 30d

Description

### Actual

``` js
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

``` js
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);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.