@ima/gulp-tasks
Default gulp tasks for IMA.js applications.
Last updated 6 days ago by filipoliko .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ima/gulp-tasks 
SYNC missed versions from official npm registry.

@ima/gulp-tasks

Build Status dependencies Status Known Vulnerabilities code style: prettier

This repository houses the default build tasks implementation for IMA.js applications, see imajs.io for more info about the whole project.

Watch task notifications

By default the watch task is used to run specific gulp tasks depends on source files change.

From version 0.16.4 the watch task can be configured to run native DGRAM/UDP4 server. This server is waiting for messages and runs assigned gulp tasks if any message matches the configured jobs key/regex.

The configuration can be set in gulp config:

// gulpConfig.js in project
let defaultConfig = require('@ima/gulp-tasks/gulpConfig');

defaultConfig.notifyServer.enable = true; /* this is only one required option to enable this feature. Disabled by default */
/* Default settings: */
defaultConfig.notifyServer.jobRunTimeout = 200, /* this timeout specify how long to wait before task run after first message is received, should be set to higher time than the same type of messages can be sent from client within one link process */
defaultConfig.notifyServer.server = 'localhost',
defaultConfig.notifyServer.port = 4445,
defaultConfig.notifyServer.messageJobs = {
        '(js|ejs|jsx)': ['vendor:build'], /* value declares gulp tasks to run when the message matches the regex represented by the key */
        '(css|sass|less)': ['less:build']
    }
}

Current Tags

  • 17.7.2                                ...           latest (6 days ago)

12 Versions

  • 17.7.2                                ...           6 days ago
  • 17.6.0                                ...           3 months ago
  • 17.5.2                                ...           5 months ago
  • 17.5.1                                ...           5 months ago
  • 17.4.0                                ...           7 months ago
  • 17.1.1                                ...           7 months ago
  • 17.0.1                                ...           8 months ago
  • 17.0.0-rc.9                                ...           8 months ago
  • 17.0.0-rc.8                                ...           8 months ago
  • 17.0.0-rc.7                                ...           8 months ago
  • 17.0.0-rc.5                                ...           8 months ago
  • 17.0.0-rc.3                                ...           9 months ago

Copyright 2014 - 2016 © taobao.org |