smartnginx/ts/smartnginx.paths.ts

10 lines
439 B
TypeScript
Raw Permalink Normal View History

2023-07-26 14:05:53 +00:00
import * as plugins from './smartnginx.plugins.js';
2016-07-06 04:33:31 +00:00
2016-07-24 23:54:36 +00:00
// directories
2023-07-26 14:05:53 +00:00
export const packageBase = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
2019-01-09 11:15:28 +00:00
export const nginxConfigDirPath = plugins.path.join(packageBase, 'nginxconfig');
export const nginxHostDirPath = plugins.path.join(nginxConfigDirPath, 'hosts');
2016-07-24 23:54:36 +00:00
// files
2019-08-20 20:30:31 +00:00
export const nginxConfFile = plugins.path.join(nginxConfigDirPath, 'nginx.conf');