Exemplo n.º 1
0
module.exports = tasks

var glob = require('glob')
  , createConfigury = require('configury')
  , configury = createConfigury('./config.json')
  , config = configury(process.env.NODE_ENV)

function tasks(pliers) {

  // Load pliers plugins
  glob.sync(__dirname + '/pliers/*.js').forEach(function (file) {
    require(file)(pliers, config)
  })

  // Load filesets
  glob.sync(__dirname + '/pliers/filesets/*.js').forEach(function (file) {
    require(file)(pliers, config)
  })

}
Exemplo n.º 2
0
module.exports = tasks

var glob = require('glob')
  , createConfigury = require('configury')
  , config = createConfigury(__dirname + '/../config.json')(process.env.NODE_ENV)

function tasks (pliers) {

  // Load pliers plugins
  glob.sync(__dirname + '/pliers/*.js').forEach(function (file) {
    require(file)(pliers, config)
  })

  // Load filesets
  glob.sync(__dirname + '/pliers/filesets/*.js').forEach(function (file) {
    require(file)(pliers, config)
  })

}
module.exports = tasks

var path = require('path')
  , join = path.join
  , child
  , Notification = require('node-notifier')
  , notifier = new Notification()
  , glob = require('glob')
  , createConfigury = require('configury')
  , configury = createConfigury(__dirname + '/../config.json')
  , config = configury(process.NODE_ENV)
  , pliersModernizr = require('pliers-modernizr')

function tasks(pliers) {

  pliersModernizr(pliers, join(__dirname, 'assets', 'js', 'lib', 'vendor'))

  function notify(message, title) {
    title = title || config.projectName
    notifier.notify(
      { title: title
      , message: message
      })
    pliers.logger.info(message)
  }

  // Load pliers plugins
  glob.sync(__dirname + '/pliers/*.js').forEach(function (file) {
    require(file)(pliers, config)
  })