Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
A anue-fe-sdk
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • share
  • anue-fe-sdk
  • Wiki
  • Home

Last edited by benhsieh0404 Dec 06, 2018
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Home

Anue FE SDK Wiki

Cross project API library in TypeScript.

Structure

src/packages (@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

  • Auth

src/libraries (@libraries)

Containing modules like infrastructure and basic mechanisms, like networking, and storage accessing

  • Network
  • Storage

src/utils (@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
Clone repository
  • Auth
  • Home