plum-e2e 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/plum.js +6 -2
- package/package.json +1 -1
package/bin/plum.js
CHANGED
|
@@ -113,11 +113,15 @@ switch (command) {
|
|
|
113
113
|
// Copy .env file from root to backend
|
|
114
114
|
copyEnvFile();
|
|
115
115
|
|
|
116
|
+
// Copy config from package root to user's project dir so Docker can mount it
|
|
117
|
+
const userConfigPath = path.join(process.cwd(), '.plum', 'config');
|
|
118
|
+
fse.copySync(path.join(plumRoot, 'backend', 'config'), userConfigPath);
|
|
119
|
+
|
|
116
120
|
// Convert Windows paths to safe format
|
|
117
121
|
const userTestsAbs = path.resolve(process.cwd(), 'tests').replace(/\\/g, '/');
|
|
118
122
|
const userModulesAbs = path.resolve(process.cwd(), 'node_modules').replace(/\\/g, '/');
|
|
119
123
|
const userReportsAbs = path.resolve(process.cwd(), 'reports').replace(/\\/g, '/');
|
|
120
|
-
const
|
|
124
|
+
const userConfigAbs = userConfigPath.replace(/\\/g, '/');
|
|
121
125
|
|
|
122
126
|
// Generate docker-compose.override.yml
|
|
123
127
|
const overrideYAML = [
|
|
@@ -125,7 +129,7 @@ switch (command) {
|
|
|
125
129
|
' backend:',
|
|
126
130
|
' volumes:',
|
|
127
131
|
` - "${userReportsAbs}:/app/reports"`,
|
|
128
|
-
` - "${
|
|
132
|
+
` - "${userConfigAbs}:/app/config"`,
|
|
129
133
|
` - "${userTestsAbs}:/app/tests"`,
|
|
130
134
|
` - "${userModulesAbs}:/app/tests/node_modules"`
|
|
131
135
|
].join('\n');
|