Skip to content

Commit

Permalink
Issue #386 [Enhancement][WIP] Override TargetConfig.basePath and .con…
Browse files Browse the repository at this point in the history
…figPath for robustness
  • Loading branch information
t2ym committed Sep 10, 2020
1 parent cf98e90 commit fd907ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo-config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const path = require('path');
const { GulpDefaultRegistry, Configurable } = require('target-configurator');

class TargetConfig extends Configurable(GulpDefaultRegistry, 'thin-hook') {
static basePath = module.parent.path; // module.parent is gulpfile.js in the base directory
static configPath = module.path; // Overriding configPath is safe and robust
// configure itself step by step
_configure() {
super._configure();
Expand Down

0 comments on commit fd907ca

Please sign in to comment.