Skip to content

Commit bf61971

Browse files
committed
Added support for JQ_PATH to specify where to load the config file from.
1 parent ac06c6b commit bf61971

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
var path = require( "path" ),
2-
config = require( "../config" );
2+
config = require( process.env.JQ_PATH ?
3+
process.env.JQ_PATH + "/plugins.jquery.com" :
4+
"../config" );
35

6+
console.log( config.test );
47
function resolvePath( key, _default ) {
58
config[ key ] = path.resolve( __dirname, "..", config[ key ] || _default );
69
}

0 commit comments

Comments
 (0)