![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@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
.bit/command-history
(#6658)--internal
flag to see the private commands (#6725)--entire-lane
to get new components on a lane (#6661).
(#6757)latest
for checking-out the "tip" of component version history (#6619)toposort
components according to dependencies build order (#6701)--verbose
option (#6752)4.7.4
(#6603)teambit.react/react
to set allowJs: true
by default (#6734)false
by default (#6747)--json
output option for merge-lane flow (#6654)bit start
(#6634)bit dep set
when adding a missing dependency (#6702)graph
to ComponentGraph
for handle runtime edges correctly (#6833).bitmap
(#6828)MissingManuallyConfiguredPackages
(#6814)MissingManuallyConfiguredPackages
entries (#6812)import
didn't pay attention to current lane (#6801)usebox
(#6783)--scope
flag (#6627)bit rename --refactor
to change only packages that have an exact match (#6618).bitmap
record (#6655)bit status
should not show missing deps incorrectly (#6710)reset
when the component is diverged on lane and has no head on main (#6678)pnpUnpluggedFolder
to fix error on yarn install
(#6834)scope.repository
after bit-cc (#6718)EnvNotConfiguredForComponent
error to suggest running bit env set
(#6601)lane diff
performance (#6799)build-graph-from-fs
performance by not trying to import existing deps (#6612)rootComponents
(#6750, #6782, #6631, #6675, #6691, #6688)prodGraph
prop from get-flattened-dependencies
(#6728)VersionNotFound
(#6638)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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
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.