build-workflow
Advanced tools
Comparing version 0.0.32 to 0.0.33
@@ -8,6 +8,13 @@ module.exports = function ( grunt, opts, pkg, helperOptions ) { | ||
var baseTasksConfigs = grunt.file.expand( path.join( __dirname, './configs/**/*.js' )); | ||
var tryCatch = require( './utils/try-catch' ); | ||
baseTasksConfigs.forEach(function ( entry ) { | ||
var entryName = path.basename( entry, '.js' ); | ||
baseConfigs[ entryName ] = require( entry )( grunt, pkg, helperOptions ); | ||
tryCatch(function () { | ||
baseConfigs[ entryName ] = require( entry )( grunt, pkg, helperOptions ); | ||
}, function ( err ) { | ||
console.err( 'err loading a base configuration... some of the tasks might not work' ); | ||
console.err( '>>> ', err ); | ||
} ); | ||
} ); | ||
@@ -14,0 +21,0 @@ |
{ | ||
"name": "build-workflow", | ||
"version": "0.0.32", | ||
"version": "0.0.33", | ||
"description": "Simple gruntfile helper to define build workflows", | ||
@@ -5,0 +5,0 @@ "main": "config-loader.js", |
@@ -8,4 +8,2 @@ module.exports = function ( grunt, pkg, options ) { | ||
var lib = require( 'grunt-ez-frontend/lib/lib.js' ); | ||
gruntTaskUtils.registerTasks( { | ||
@@ -15,2 +13,5 @@ 'changelog': { | ||
multiTask: function () { | ||
var lib = require( 'grunt-ez-frontend/lib/lib.js' ); | ||
var me = this, | ||
@@ -17,0 +18,0 @@ done = me.async(); |
@@ -7,3 +7,2 @@ module.exports = function ( grunt, pkg, options ) { | ||
var path = require( 'path' ); | ||
var lib = require( 'grunt-ez-frontend/lib/lib.js' ); | ||
@@ -14,2 +13,5 @@ gruntTaskUtils.registerTasks( { | ||
multiTask: function () { | ||
var lib = require( 'grunt-ez-frontend/lib/lib.js' ); | ||
var me = this; | ||
@@ -16,0 +18,0 @@ //var data = me.data || {}; |
@@ -7,7 +7,2 @@ module.exports = function ( grunt, pkg, options ) { | ||
// **lib module** | ||
// | ||
// this module include some utilities, like `lib.format`, `lib.isNullOrEmpty`, `lib.isNull`, `lib.extend`, etc | ||
var lib = require( 'grunt-ez-frontend/lib/lib.js' ); | ||
gruntTaskUtils.registerTasks( { | ||
@@ -17,2 +12,5 @@ 'install-hooks': { | ||
multiTask: function () { | ||
var lib = require( 'grunt-ez-frontend/lib/lib.js' ); | ||
var me = this; | ||
@@ -19,0 +17,0 @@ var gruntWorkingDirectory = process.cwd(); |
module.exports = function ( grunt, pkg ) { | ||
'use strict'; | ||
var gruntTaskUtils = require( 'grunt-ez-frontend/lib/grunt-task-utils' )( grunt ); | ||
var lib = require( 'grunt-ez-frontend/lib/lib' ); | ||
var path = require( 'path' ); | ||
var Twig = require( 'twig' ); | ||
var twig = Twig.twig; | ||
@@ -13,2 +9,8 @@ gruntTaskUtils.registerTasks( { | ||
multiTask: function () { | ||
var lib = require( 'grunt-ez-frontend/lib/lib' ); | ||
var path = require( 'path' ); | ||
var Twig = require( 'twig' ); | ||
var twig = Twig.twig; | ||
var me = this; | ||
@@ -15,0 +17,0 @@ var opts = me.options( { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167611
2443