@azure-net/cli 2.1.1 → 2.1.3
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/azure-net.js
CHANGED
|
@@ -126,9 +126,4 @@ program
|
|
|
126
126
|
.description('Generate CRUD presenter for existing service')
|
|
127
127
|
.action(generateCrudPresenter);
|
|
128
128
|
|
|
129
|
-
program
|
|
130
|
-
.command('make:service-by-repo')
|
|
131
|
-
.description('Generate service from existing repository')
|
|
132
|
-
.action(generateServiceByRepo);
|
|
133
|
-
|
|
134
129
|
program.parse();
|
package/package.json
CHANGED
|
@@ -11,8 +11,7 @@ function generateAliases(config) {
|
|
|
11
11
|
return Object.fromEntries([
|
|
12
12
|
...contexts.map(c => [`$${c}`, `./src/app/contexts/${c}`]),
|
|
13
13
|
['$shared', './src/app/shared'],
|
|
14
|
-
['$core', './src/app/core']
|
|
15
|
-
['$lib', './src/lib']
|
|
14
|
+
['$core', './src/app/core']
|
|
16
15
|
]);
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { writeIfNotExists
|
|
1
|
+
import {updateCoreIndex, writeIfNotExists} from '../../utils/fileUtils.js';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
|
|
4
4
|
const presenterPath = path.join(process.cwd(), 'src/app/core/Presenter/AppPresenter.ts');
|
|
@@ -18,5 +18,8 @@ export default async function initPresenter() {
|
|
|
18
18
|
`export * from './AppPresenter';`
|
|
19
19
|
);
|
|
20
20
|
|
|
21
|
+
// Update core index
|
|
22
|
+
await updateCoreIndex();
|
|
23
|
+
|
|
21
24
|
console.log('✅ Presenter factory initialized');
|
|
22
25
|
}
|
|
@@ -64,7 +64,7 @@ export async function getApplicationProviderServices(context) {
|
|
|
64
64
|
export function toPascalCase(str) {
|
|
65
65
|
return str
|
|
66
66
|
.split(/[-_\s]+/)
|
|
67
|
-
.map(word => word.charAt(0).toUpperCase() + word.slice(1)
|
|
67
|
+
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
|
68
68
|
.join('');
|
|
69
69
|
}
|
|
70
70
|
|