From 67159809c2986941610729029273ebcc4c956417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Catriel=20M=C3=BCller?= Date: Tue, 20 Sep 2016 09:14:08 -0300 Subject: [PATCH] Added packsConfig in the archetype and the default config --- archetype/config/main.js | 7 +++++++ lib/trails.js | 1 + 2 files changed, 8 insertions(+) diff --git a/archetype/config/main.js b/archetype/config/main.js index e2c184f..69966cf 100644 --- a/archetype/config/main.js +++ b/archetype/config/main.js @@ -22,6 +22,13 @@ module.exports = { require('<%- trailpacks %>') ], + /** + * Override trailspacks configurations for modify based on custom requirements + */ + packsConfig: { + + }, + /** * Define application paths here. "root" is the only required path. */ diff --git a/lib/trails.js b/lib/trails.js index 88ac845..e25cd05 100644 --- a/lib/trails.js +++ b/lib/trails.js @@ -41,6 +41,7 @@ module.exports = { main: { maxListeners: 128, packs: (config.main || { }).packs || [ ], + packsConfig: (config.main || { }).packsConfig || {}, paths: { root: path.resolve(path.dirname(require.main.filename)), temp: path.resolve(path.dirname(require.main.filename), '.tmp')