Git Product home page Git Product logo

panda-9000's Introduction

Introducing The Panda-9000

The Panda-9000, or P9K for short, is a task and dependency tool, similar to Gulp, but based on the Fairmont functional reactive programming library.

Installation

npm install -g panda-9000

Usage

p9k [<task-name>...]

If no arguments are given, the default task name is used.

Task definitions should be placed in the tasks/index directory.

Defining Tasks

To define tasks, place a CoffeeScript or JavaScript file in your project's task/index.coffee or tasks/index.js file.

For example, here's a simple hello, world task.

{task} = require "panda-9000"

task "hello-world", ->
  console.log "Hello, World"

Run the task like this:

p9k hello-world

Helpers

Panda-9000 provides a variety of built-in helpers you can use in tasks. Helpers are designed to be used within reactive flows using the Fairmont FRP library.

For example, here's a simple task that will take a list of CoffeeScript files in the src directory, compile them, and then write them out to lib with a .js extension.

{go, async, map, glob} = require "fairmont"
{task, context, coffee, write} = require "panda-9000"

task "coffee", async ->
  go [
    glob "**/*.coffee", "src"
    map context
    tee coffee
    tee write "lib"
  ]

Run the task via the command-line, as before:

p9k coffee

See the API references for more details.

Reactive Programming

Panda-9000 tasks are typically defined as reactive flows using the Fairmont FRP library. You can read the Fairmont wiki to learn more.

Status

The Panda-9000 is currently alpha status, meaning it's under heavy development and not yet suitable for production use.

Documentation

See the Panda-9000 wiki to learn more.

panda-9000's People

Contributors

dyoder avatar freeformflow 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.