π Putout plugin for removing simple static file based feature toggles
Taotie Proof of concept plugin for static toggles removal.
Install static toggle removal plugin putout-plugin-taotie-remove-static-toggles
:
yarn add -D putout-plugin-taotie-remove-static-toggles
Specify the toggle name when running plugins TAOTIE_FEATURE_TOGGLE_NAME
Run the following to test with the test/fixtures
,
TAOTIE_FEATURE_TOGGLE_NAME="featureFlag" putout test/fixtures/remove-simple-if-flags.ts --rulesdir packages/plugin-taotie-remove-static-toggles/lib --fix