![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@teambit/flows
Advanced tools
teambit.bit/flows
Run tasks on components and their dependents.
bit run
command to execute tasks on components in worksapce.compile
, test
and watch
.Inside a Bit project all components are linked to each other in a network according to their dependency graph. When you make a change, you can see the downstream effets when running component tasks. This means that all tasks run in the right order and if several components don't directly depend on each other, Flows parallelizes their tasks (and shows live console output in a readable order).
bit run <flow-name> [components...] [-v | --verbose] [--concurrency]
# runs 'build' flow on all components that have 'build' task defined.
bit run build
# runs 'build' flow for a specific component.
bit run build logo
# same as before with verbose output
bit run build logo --verbose
# setting concurrency
bit run build logo --concurrency 4 --verbose
Use bit.jsonc
configuration docs to understand how to configure bit.
// workspace configuration with default values for 'concurrency' and 'verbose'
{
"teambit.bit/flows": {
"concurrency": 4,
"verbose": false,
"tasks": {
// the structure of a module task id: = `\`#${PackageName}:${PathToModule}\``
"build": ["@bit/bit.evangalist.extensions.react-ts:transpile"],
}
}
}
You may also use the variants
configuring option to override tasks
of a specific component(s).
The structure allows only for the task entry in that use case.
{
"variants": {
"ui/*":{
"teambit.bit/flows": {
"tasks": {
"build": ["some_build_task"]
}
}
}
}
}
Consult with the docs to learn more about variants.
Flows API is document in flows.ts
module. Here are two examples:
import {Flows, flattenReplaySubject} from 'teambit.bit/flows'
const flows = new Flows(workspace)
const execution = flows.run(seeders)
// rxjs example
flattenReplaySubject(execution)
.subscribe((result) => console.log('result is:', result))
// promise example
const result = await flows.runToPromise(seeders)
console.log('result is', result)
Flows
Flows prefers convention over configuration for managing team's workflow to scale their development. It's philosophy is that when teams agree on the kind of actions they support it's easier to onboard developers to various projects in the organization. This is mainly becasue it helps developers avoid the details of each component build and treat it as the "same" action.
For example:
build
- run all compilation/testing/lintci
- flow to run bit CI systemdev
- compiling with source map and what not.personal
- personal workflow team doesn't know of, to test things.A task
is a module which exports a default function (or module.exports
) with the following signature:
export type Task = () => any | () => Promise<any>
devDependencies
for components consuming them.stdout
, stderr
is reported.The Flows API solves the problem of reporting the execution of dynamic activities across a graph of isolated components. The problem becomes complex in use cases like TypeScript API where dependent/dependency components build order needs to be respected.
Flows solves this problem by providing:
For each main term there is a module in the flows implementation.
~/Library/Caches/Bit/capsules
FAQs
Unknown package
The npm package @teambit/flows receives a total of 0 weekly downloads. As such, @teambit/flows popularity was classified as not popular.
We found that @teambit/flows demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.