Add support for operating modes ("dev" / "prod").
Opened this issue · 0 comments
mj4444ru commented
The new operating logic is as follows:
The composer.json has a "config-plugin-output-dir" parameter.
- When referring to
Builder::path
, we look, if this folder contains a subfolder 'prod', then we give the path to the config in this folder. If this folder does not have a 'prod' subfolder, return the config from the 'dev' subfolder. - The first time you use
Builder::path
from the 'dev' folder, runBuilder::rebuild();
.
The Builder should receive the following features:
class Builder {
...
public function buildProd() {
Builder::rebuild();
copyFolder('dev', 'prod');
}
public function clearProd() {
removeFolder('prod');
}
...
}