You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
751 B
18 lines
751 B
import path from 'path';
|
|
|
|
/**
|
|
* Since this file overwrites environment variables from `config` lib.
|
|
* It's important to "import" this file before all scripts in entry point file, especially before `config`.
|
|
*/
|
|
|
|
process.env.NODE_CONFIG_DIR = path.join(process.env.PROJECT_PATH ?? '', process.env.BLOCK_NAME ?? '', 'config');
|
|
|
|
/**
|
|
* Export constant variables
|
|
*/
|
|
|
|
export const PRODUCTION_REGISTRY_URL = 'https://blocks-registery.axe-web.com';
|
|
export const IS_DEV = process.env.NODE_ENV === 'development';
|
|
export const BLOCK_NAME = process.env.BLOCK_NAME;
|
|
export const MODULE_PATH = process.env.MODULE_PATH ?? 'node_modules/block-dev-tool';
|
|
export const PROJECT_PATH = process.env.PROJECT_PATH ? path.join(process.env.PROJECT_PATH, BLOCK_NAME) : '';
|
|
|