netcore-blueprint 0.0.45 → 0.0.47
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/copy-module.js +5 -5
- package/bin/create-module.js +1 -1
- package/package.json +1 -1
package/bin/copy-module.js
CHANGED
|
@@ -23,7 +23,7 @@ if (!sourceModuleName) {
|
|
|
23
23
|
const modulesPath = process.cwd();
|
|
24
24
|
|
|
25
25
|
const templateRoot = path.join(modulesPath, sourceModuleName);
|
|
26
|
-
const targetModuleRoot = path.join(modulesPath, '..', 'BlueprintTemplate', 'Modules', `${sourceModuleName}
|
|
26
|
+
const targetModuleRoot = path.join(modulesPath, '..', 'BlueprintTemplate', 'Modules', `${sourceModuleName}`);
|
|
27
27
|
|
|
28
28
|
const solutionFile = findSolutionFileFixed(modulesPath);
|
|
29
29
|
|
|
@@ -64,9 +64,9 @@ fs.mkdirSync(targetModuleRoot, { recursive: true });
|
|
|
64
64
|
// =====================================================
|
|
65
65
|
|
|
66
66
|
const projects = [
|
|
67
|
-
{ name: `${sourceModuleName}
|
|
68
|
-
{ name: `${sourceModuleName}
|
|
69
|
-
{ name: `${sourceModuleName}
|
|
67
|
+
{ name: `${sourceModuleName}.API`, type: 'classlib' },
|
|
68
|
+
{ name: `${sourceModuleName}.Core`, type: 'classlib' },
|
|
69
|
+
{ name: `${sourceModuleName}.Infrastructure`, type: 'classlib' },
|
|
70
70
|
];
|
|
71
71
|
|
|
72
72
|
projects.forEach(p => {
|
|
@@ -111,7 +111,7 @@ projects.forEach(p => {
|
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
console.log(`🎉 Module "${sourceModuleName}
|
|
114
|
+
console.log(`🎉 Module "${sourceModuleName}" created successfully!`);
|
|
115
115
|
|
|
116
116
|
// =====================================================
|
|
117
117
|
// Helpers
|
package/bin/create-module.js
CHANGED
|
@@ -34,7 +34,7 @@ const sourceModulePath = path.join(modulesTemplateRoot, `${sourceModuleName}Modu
|
|
|
34
34
|
// =======================
|
|
35
35
|
|
|
36
36
|
const destinationRoot = process.cwd();
|
|
37
|
-
const destinationModulePath = path.join(destinationRoot, `${newModuleName}
|
|
37
|
+
const destinationModulePath = path.join(destinationRoot, `${newModuleName}`);
|
|
38
38
|
|
|
39
39
|
// =======================
|
|
40
40
|
// Guards
|