Skip to content
Task set for web
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
doc
example
lib
test
.LICENSE.bud
.README.md.bud
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.