workflow
所属分类:智慧办公
开发工具:JavaScript
文件大小:5128KB
下载次数:0
上传日期:2022-12-10 17:03:34
上 传 者:
sh-1993
说明: 以工作流为中心的工作空间管理器
(Workflow-centric workspace manager)
文件列表:
.babelrc (586, 2021-01-04)
.circleci (0, 2021-01-04)
.circleci\config.yml (2154, 2021-01-04)
.eslintignore (34, 2021-01-04)
.eslintrc (367, 2021-01-04)
.prettierignore (5, 2021-01-04)
.prettierrc.yml (54, 2021-01-04)
.travis.yml (1348, 2021-01-04)
.yarn (0, 2021-01-04)
.yarn\releases (0, 2021-01-04)
.yarn\releases\yarn-1.22.10.cjs (5098061, 2021-01-04)
.yarnrc (130, 2021-01-04)
appveyor.yml (1237, 2021-01-04)
code-of-conduct.md (3251, 2021-01-04)
contributions.md (2566, 2021-01-04)
docker (0, 2021-01-04)
docker\Dockerfile (293, 2021-01-04)
docker\src (0, 2021-01-04)
docker\src\.i3 (0, 2021-01-04)
docker\src\.i3\config (6106, 2021-01-04)
github (0, 2021-01-04)
lerna.json (339, 2021-01-04)
package.json (2601, 2021-01-04)
packages (0, 2021-01-04)
packages\create-workflow-app (0, 2021-01-04)
packages\create-workflow-app\CHANGELOG.md (3914, 2021-01-04)
packages\create-workflow-app\files (0, 2021-01-04)
packages\create-workflow-app\files\static (0, 2021-01-04)
packages\create-workflow-app\files\static\cli.js (1805, 2021-01-04)
packages\create-workflow-app\files\static\index.js (243, 2021-01-04)
packages\create-workflow-app\files\static\src (0, 2021-01-04)
packages\create-workflow-app\files\static\src\index.js (213, 2021-01-04)
packages\create-workflow-app\files\templates (0, 2021-01-04)
packages\create-workflow-app\files\templates\flows (0, 2021-01-04)
... ...
# Workflow
[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/workflow)
An experiment in declarative windows management with an optional [React](packages/workflow-react)
frontend and an experimental [Angular](packages/workflow-angular) frontend.
## What does it do?
Workflow turns declarative windows layouts defined in javascript files ...
```javascript
export const flow = render(
,
);
```
... into open applications populated with arguments in the specified layout on the screen.
![](github/readme-example.png)
## Usage
Workflow is a command line tool written for node.
Installing it globally with `npm` will set up the `workflow` command. On the first run, a home directory
will be set up. The default location is at `~/.workflow`. This is overridable with the ``WORKFLOW_HOME`
environment variable.
```bash
npm install --global workflow
```
Running the command will by default resolve flow files relative to `~/.workflow/flows` or by
an absolute path.
```bash
workflow Example.js # resolves to ~/.workflow/flows/Example.js
workflow /path/to/file.js # resolves the file directly
```
## Cross platform
Workflow is written in a modular way to allow for extension. There are currently experimental support
for [osx](packages/workflow-wm-osx), [windows](packages/workflow-wm-windows), and linux using
[i3](packages/workflow-wm-i3) or [wmctrl](packages/workflow-wm-wmctrl).
## Devlopment
The [`cli.js`](packages/workflow/src/cli.js) can be executed in development mode. By default
it will use the standard workflow-home directory, which is overridable by `WORKFLOW_DEV_HOME`.
Development mode is activated by setting the environment variable `WORKFLOW_DEV_MODE` to `true`.
Note, you can set up an additional for dev with the create-workflow-home package.
```bash
yarn # setup all dependencies
yarn bootstrap # bootstrap lerna
yarn build # run rollup to build all packages
node ./packages/create-workflow-home/cli.js
WORKFLOW_DEV_MODE=true WORKFLOW_DEV_HOME= node ./packages/workflow/cli.js Example.js
```
## Contributions
All contributions to `workflow` are welcome. Checkout the [Contributions](contributions.md) guide to get started.
## Code of conduct
By making a contribution to this project you agree to abide by the
[Code of Conduct](code-of-conduct.md).
近期下载者:
相关文件:
收藏者: