2018-08-31 01:11:09 +02:00
|
|
|
import * as plugins from './npmextra.plugins';
|
2016-07-17 01:23:22 +02:00
|
|
|
|
|
|
|
// directories
|
2018-08-31 01:11:09 +02:00
|
|
|
export let cwd = process.cwd();
|
|
|
|
export let packageDir = plugins.path.join(__dirname, '../');
|
2016-07-17 01:23:22 +02:00
|
|
|
|
2017-03-18 16:23:47 +01:00
|
|
|
// ----------------------
|
2016-09-24 21:49:53 +02:00
|
|
|
// keyValueStore specific
|
2017-03-18 16:23:47 +01:00
|
|
|
// ----------------------
|
|
|
|
|
2018-08-31 01:11:09 +02:00
|
|
|
export let home = plugins.smartpath.get.home();
|
2017-07-12 17:13:29 +02:00
|
|
|
|
2017-03-18 16:23:47 +01:00
|
|
|
/**
|
|
|
|
* keyValue base path
|
|
|
|
*/
|
2018-08-31 01:11:09 +02:00
|
|
|
export let kvBase = plugins.path.join(home, '.npmextra/kv');
|
2017-03-18 16:23:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* the base directory for custom string based key value store
|
|
|
|
*/
|
2018-08-31 01:11:09 +02:00
|
|
|
export let kvCustomDir = plugins.path.join(kvBase, 'custom');
|
2017-03-18 16:23:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* the subdir for git based keyValue
|
|
|
|
*/
|
2018-08-31 01:11:09 +02:00
|
|
|
export let kvGitDir = plugins.path.join(kvBase, 'git');
|
2017-03-18 16:23:47 +01:00
|
|
|
|
|
|
|
/**
|
2017-07-09 19:05:03 +02:00
|
|
|
* keyValue for path based keyValue store
|
2017-03-18 16:23:47 +01:00
|
|
|
*/
|
2018-08-31 01:11:09 +02:00
|
|
|
export let kvPathDir = plugins.path.join(kvBase, 'path');
|
2016-09-24 21:49:53 +02:00
|
|
|
|
2016-09-16 22:28:38 +02:00
|
|
|
// files
|
2018-08-31 01:11:09 +02:00
|
|
|
export let configFile = plugins.path.join(cwd, 'npmextra.json');
|