Anue FE SDK Wiki
Cross project API library in TypeScript
.
TOC
[TOC]
Structure
@packages
)
src/packages (For application development
Modules containing individual business logic, concerning application bundle size each package can be imported separately.
import auth from '@anue/fe-sdk/Auth'
auth.comsumProviderToken(...)
For development and debugging
The package folder alias is @packages
, packages should not coupling with each other
@libraries
)
src/libraries (Containing modules like infrastructure and basic mechanisms, like networking, and storage accessing
- Network
- Storage
@utils
)
src/utils (Util functions are located here
- obfuscator
- getty (SafeGet)
src/defines (automatically imported)
TypeScript definitions are located here
- Auth (Auth package defines)
- Payloads (API request format defines)
- Response (API response format defines)
- Keys (Constant keys defines)
- Endpoints (API endpoints defines)
Development
$ yarn start
# or
$ yarn run dev
Testing
$ yarn test
Build
$ yarn run build