Skip to content

realglobe-Inc/pon-runner

Repository files navigation

Title Banner

Build Status npm Version JS Standard

Runner for pon

Table of Contents

Installation

$ npm install pon-runner --save

Usage

Create runner with tasks and pass task names to run

'use strict'

const ponRunner = require('pon-runner')

const css = require('pon-task-css')
const browser = require('pon-task-browser')

async function tryExample () {
  let runner = ponRunner({
    'ui:style': css('ui/stylesheets', 'public'),
    'ui:browser': browser('shim/entrypoints', 'public/js')
  })

  // Execute task by names
  await runner.run('ui:style', 'ui:bundle')
}

tryExample()

License

This software is released under the Apache-2.0 License.

Links