Browse Source

- 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.
test-gpt-generated
Roman Axelrod 3 years ago
parent
commit
c1340f2035
  1. 5
      env.js
  2. 10
      test.js

5
env.js

@ -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
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.
*
*/
Loading…
Cancel
Save