pon-task-web

10.4.2 • Public • Published

pon-task-web

Build Status npm Version JS Standard

Task set for web

Installation

$ npm install pon-task-web --save

Usage

'use strict'

const pon = require('pon')
const { css, react, browser, map } = require('pon-task-web')

async function tryExample () {
  let run = pon({
    'ui:css': css('ui/stylesheets', 'public/css', { pattern: '*.css' }),
    'ui:react': react('ui', 'shim', { pattern: '+(components|wrappers)/**/*.jsx' }),
    'ui:browser': browser('ui/entrypoints', 'public/js'),
    'ui:map': map('public/js', 'public/js')
  })

  // Run all compile and then, start watching
  run('ui:*', 'ui:*/watch')
}

tryExample()

Sub Tasks

Signatures

define(options) -> function

Define task

Param type Description
options Object Optional settings
options.browser Array Args for pon-task-browser
options.react Array Args for pon-task-react
options.css Array Args for pon-task-css
options.map Array Args for pon-task-map
options.ccjs Array Args for pon-task-ccjs

License

This software is released under the Apache-2.0 License.

Links

Readme

Keywords

Package Sidebar

Install

npm i pon-task-web

Weekly Downloads

1

Version

10.4.2

License

Apache-2.0

Unpacked Size

29.9 kB

Total Files

29

Last publish

Collaborators

  • realglobe