- 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:
@@ -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';
|
||||
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
*/
|
||||
Reference in New Issue
Block a user