Use flow with the Preact CLI
npm install preact-cli-plugin-flowUse flow with the Preact CLI
Install it via npm:
``shell`
npm install preact-cli-plugin-flow --save-dev
This will install:
- flow-bin
- flow-typed
- babel-plugin-transform-flow-strip-types
After install this plugin will run 3 commands:
- flow init to create your .flowconfig
- install flow-bin so you can run the flow binary in your folder
- run flow-typed update to get all the definitions from libs installed
After this just include it in your project by creating a preact.config.js
`javascript
const preactCliFlow = require('preact-cli-plugin-flow');
export default function (config) {
preactCliFlow(config);
}
``
Now you can use flow all you want 🎉
MIT