-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): migrate interfaces from server package to backend libra…
…ry (#9)
- Loading branch information
1 parent
b6db2c7
commit 6966451
Showing
906 changed files
with
1,475 additions
and
1,298 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# bigcapital-libs-backend | ||
# mylib | ||
|
||
This library was generated with [Nx](https://nx.dev). | ||
This library was generated with [@nx-bun/nx](https://github.com/jordan-hall/nx-bun) | ||
|
||
## Building | ||
|
||
Run `nx build bigcapital-libs-backend` to build the library. | ||
Run `nx build mylib` to build the library. | ||
|
||
## Running unit tests | ||
|
||
Run `nx test bigcapital-libs-backend` to execute the unit tests via [Jest](https://jestjs.io). | ||
Run `nx test mylib` to execute the unit tests via [bun test](https://bun.sh/docs/cli/test). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json", | ||
"extends": ["../../biome.json"], | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"style": { | ||
"useImportType": "error" | ||
}, | ||
"correctness": { | ||
"noUnusedImports": "error" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './lib/interfaces'; | ||
export * from './lib/backend'; | ||
export * from './lib/models'; | ||
export * from './lib/enums'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { edgeSharedDomain } from './bigcapital-libs-backend'; | ||
import { mylib } from './mylib'; | ||
|
||
describe('edgeSharedDomain', () => { | ||
it('should work', () => { | ||
expect(edgeSharedDomain()).toEqual('bigcapital-libs-backend'); | ||
import { describe, expect, test } from 'bun:test'; | ||
|
||
describe('mylib', () => { | ||
test('should work', () => { | ||
expect(mylib()).toEqual('mylib'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
/** | ||
* | ||
*/ | ||
export function edgeSharedDomain(): string { | ||
return 'bigcapital-libs-backend'; | ||
export function mylib(): string { | ||
return 'mylib'; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/server/src/interfaces/Contact.ts → libs/backend/src/lib/interfaces/Contact.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/server/src/interfaces/CreditNote.ts → .../backend/src/lib/interfaces/CreditNote.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ver/src/interfaces/InventoryCostMethod.ts → ...src/lib/interfaces/InventoryCostMethod.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
interface IInventoryCostMethod { | ||
export interface IInventoryCostMethod { | ||
computeItemsCost(fromDate: Date): void; | ||
storeInventoryLotsCost(transactions: any[]): void; | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.