Git Product home page Git Product logo

workflow's Introduction

Workflow

Join the community on Spectrum

An experiment in declarative windows management with an optional React frontend and an experimental Angular frontend.

What does it do?

Workflow turns declarative windows layouts defined in javascript files ...

export const flow = render(
  <Workspace name={'workflow-react-example'}>
    <SplitH percent={1}>
      <TextEditor percent={0.5} file={__filename} />
      <Browser
        percent={0.5}
        url={'https://github.com/havardh/workflow/tree/master/packages/workflow-cmd'}
      />
    </SplitH>
  </Workspace>,
);

... into open applications populated with arguments in the specified layout on the screen.

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.

npm install --global workflow

Running the command will by default resolve flow files relative to ~/.workflow/flows or by an absolute path.

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, windows, and linux using i3 or wmctrl.

Devlopment

The 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.

yarn            # setup all dependencies
yarn bootstrap  # bootstrap lerna
yarn build      # run rollup to build all packages

node ./packages/create-workflow-home/cli.js <workflow-home-dev>
WORKFLOW_DEV_MODE=true WORKFLOW_DEV_HOME=<workflow-home-dev> node ./packages/workflow/cli.js Example.js

Contributions

All contributions to workflow are welcome. Checkout the Contributions guide to get started.

Code of conduct

By making a contribution to this project you agree to abide by the Code of Conduct.

workflow's People

Contributors

haakondi avatar havardh avatar johnjacobkenny avatar relekang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.