Skip to content

Commit 17c8af4

Browse files
committed
feat: Update CI configuration, enhance SDK imports, and migrate PostRestMvcService with tests
1 parent 0eead31 commit 17c8af4

File tree

11 files changed

+57
-16
lines changed

11 files changed

+57
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
package: [apis, base, shared]
14+
package: [api, base, config, database, file, navigation, shared, template, user]
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: pnpm/action-setup@v2

packages/api/src/createMixcoreSdk.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// SDK bootstrap entrypoint for Mixcore JavaScript SDK
22
// Usage: import { createMixcoreSdk } from '@mixcore/apis';
3-
import { UserServices } from './user/user-services';
4-
import { TemplateService } from './template/template-service';
5-
import { FileServices } from './file/file-services';
6-
import { ConfigurationServices } from './config/configuration-services';
3+
import { UserServices } from '@mixcore/user';
4+
import { TemplateService } from '@mixcore/template';
5+
import { FileServices } from '@mixcore/file';
6+
import { ConfigurationServices } from '@mixcore/config';
77
// ...import other domain services as needed
88

99
export interface MixcoreSdkConfig {

packages/api/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './api-services';
2+
export { ApiResult, RestApiResult, ApiService } from './api-services';
23
export * from './createMixcoreSdk';

packages/config/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["src"],
8+
"exclude": ["dist", "node_modules"]
9+
}
File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { PostRestMvcService } from '../src/post-rest-mvc-service';
2+
3+
describe('PostRestMvcService', () => {
4+
it('should instantiate with correct endpoint', () => {
5+
const service = new PostRestMvcService({});
6+
expect((service as any).endpoint).toBe('mix-post/mvc');
7+
});
8+
});

packages/file/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["src"],
8+
"exclude": ["dist", "node_modules"]
9+
}

packages/template/tests/post-rest-mvc-service.test.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/template/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["src"],
8+
"exclude": ["dist", "node_modules"]
9+
}

packages/user/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "./src"
6+
},
7+
"include": ["src"],
8+
"exclude": ["dist", "node_modules"]
9+
}

0 commit comments

Comments
 (0)