mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
b8357b77bf
This commit introduces a feature where users can specify which files should be removed as part of Embark's `reset` command. This is done by specifying the `options.reset` section in a project's `embark.json`. The possible options are `defaults: bool` and `files: Array<String>`: ``` // embark.json { ... "options": { "reset": { "defaults": true, "files": ["some.file", "some/other.file"] } } } ``` `defaults` tells Embark whether or not it should remove the default files that are defined by the `reset` command. Setting it to `false` will prevent Embark from removing any of these (mostly files located inside `.embark`). This gives users fine control as they now can re-add subsets or those file paths in the `files` property. If `options.reset` doesn't exist Embark will do the default behaviour, which is is simply resetting/removing the files it has always removed. It now also honors `generationDir` and `buildDir` as part of the defaults.