From c1340f203570ea7f147a40695a30207f21511a55 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Fri, 9 Dec 2022 12:46:03 +0200 Subject: [PATCH] - Added notes for future tests. - Make sure we can overwrite MODULE_PATH and PROJECT_PATH. - Simplify the process of env variables setup. Provide default values. - Include env.js in package.json Organized all env in env.js file. It allows us to overwrite these values. --- env.js | 5 ----- test.js | 10 ++++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 test.js diff --git a/env.js b/env.js index 7055e47..6921469 100644 --- a/env.js +++ b/env.js @@ -21,11 +21,6 @@ export const BLOCK_NAME = process.env.BLOCK_NAME; process.env.NODE_CONFIG_DIR = path.join(getProjectPath(), 'config'); -/** - * Private functions. - * Don't export these, export constants. - */ - export function getModulePath() { let modulePath = 'node_modules/block-dev-tool'; diff --git a/test.js b/test.js new file mode 100644 index 0000000..8a8afcc --- /dev/null +++ b/test.js @@ -0,0 +1,10 @@ +/** + * FUTURE TESTS. + * + * # ENV + * In `blocks-builder` service, we update MODULE_PATH and PROJECT_PATH environment variables before we run platform + * bundle build process. Actually before we call buildExportFiles(). + * + * We have to make sure that this logic is working properly and stable. + * + */