- 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.
This commit is contained in:
2022-12-09 12:46:03 +02:00
parent b43a4d6b4f
commit c1340f2035
2 changed files with 10 additions and 5 deletions
-5
View File
@@ -21,11 +21,6 @@ export const BLOCK_NAME = process.env.BLOCK_NAME;
process.env.NODE_CONFIG_DIR = path.join(getProjectPath(), 'config'); process.env.NODE_CONFIG_DIR = path.join(getProjectPath(), 'config');
/**
* Private functions.
* Don't export these, export constants.
*/
export function getModulePath() { export function getModulePath() {
let modulePath = 'node_modules/block-dev-tool'; let modulePath = 'node_modules/block-dev-tool';
+10
View File
@@ -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.
*
*/