Gathering detailed insights and metrics for flow-status-webpack-plugin
Gathering detailed insights and metrics for flow-status-webpack-plugin
Gathering detailed insights and metrics for flow-status-webpack-plugin
Gathering detailed insights and metrics for flow-status-webpack-plugin
npm install flow-status-webpack-plugin
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
98 Stars
39 Commits
16 Forks
2 Watchers
1 Branches
6 Contributors
Updated on Oct 03, 2024
Latest Version
0.1.8
Package Id
flow-status-webpack-plugin@0.1.8
Unpacked Size
8.59 kB
Size
3.37 kB
File Count
11
NPM Version
8.18.0
Node Version
18.8.0
Published on
Oct 03, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
This webpack plugin will automatically start a Flow server (or restart if one is running) when webpack starts up, and run flow status
after each webpack build. Still experimental.
If you have any idea on how to get it better, you're welcome to contribute!
You need to have Flow installed. To do that, follow these steps.
npm install flow-status-webpack-plugin --save-dev
1var FlowStatusWebpackPlugin = require('flow-status-webpack-plugin'); 2 3module.exports = { 4 ... 5 plugins: [ 6 new FlowStatusWebpackPlugin() 7 ] 8}
If you want to pass additional command-line arguments to flow start
, you can pass a flowArgs
option to the plugin:
1var FlowStatusWebpackPlugin = require('flow-status-webpack-plugin'); 2 3module.exports = { 4 ... 5 plugins: [ 6 new FlowStatusWebpackPlugin({ 7 flowArgs: '--lib path/to/interfaces/directory' 8 }) 9 ] 10}
If you don't want the plugin to automatically restart any running Flow server, pass restartFlow: false
:
1var FlowStatusWebpackPlugin = require('flow-status-webpack-plugin'); 2 3module.exports = { 4 ... 5 plugins: [ 6 new FlowStatusWebpackPlugin({ 7 restartFlow: false 8 }) 9 ] 10}
If provided a binary path, will run Flow from this path instead of running it from any global installation.
1var FlowStatusWebpackPlugin = require('flow-status-webpack-plugin'); 2 3module.exports = { 4 ... 5 plugins: [ 6 new FlowStatusWebpackPlugin({ 7 binaryPath: '/path/to/your/flow/installation' 8 }) 9 ] 10}
If you want the plugin to fail the build if the code doesn't type check, pass failOnError = true
, and include the NoErrorsPlugin
:
1var FlowStatusWebpackPlugin = require('flow-status-webpack-plugin'); 2 3module.exports = { 4 ... 5 plugins: [ 6 new webpack.NoErrorsPlugin(), 7 new FlowStatusWebpackPlugin({ 8 failOnError: true 9 }) 10 ] 11}
If you want to perform an action on successful/failed Flow checks, use the onSucess
/onError
callbacks:
1var FlowStatusWebpackPlugin = require('flow-status-webpack-plugin'); 2var notifier = require('node-notifier'); 3 4module.exports = { 5 ... 6 plugins: [ 7 new webpack.NoErrorsPlugin(), 8 new FlowStatusWebpackPlugin({ 9 onSuccess: function(stdout) { notifier.notify({ title: 'Flow', message: 'Flow is happy!' }); }, 10 onError: function(stdout) { notifier.notify({ title: 'Flow', message: 'Flow is sad!' }); } 11 }) 12 ] 13}
This plugin is released under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 6/18 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More