Skip to content

ws-globals 0.3.0

Install from the command line:
Learn more about npm packages
$ npm install @websublime/ws-globals@0.3.0
Install via package.json:
"@websublime/ws-globals": "0.3.0"

About this version

Globals

Globals create and initiate essential redux, register environement on store and creates a registry for packages/components.

Table of contents

Usage

Two main entries are added to the essential store: Environment and Registry. The links IDS are:

Environment: EnvironmentLinkID
Registry: RegistryLinkID

They are export on package to be consumed as npm if you need to subscribe. Environment is initiated and search on global scope (window) for the entries in window.environment.

interface Window {
  environment: {
    apiUrl: string;
    env: string;
  };
}

Provide this values if you want or defaults will be used.

(Back to top)

Installation

(Back to top)

Mandatory dependencies: NodeJS >= 16 and Yarn

Contributing

(Back to top)

Your contributions are always welcome! Please have a look at the contribution guidelines first. 🎉

Create branch, work on it and before submit run:

  • git add .
  • git commit -m "feat: title" -m "Description"
  • git add .
  • git commit --amend
  • git push origin feat/... -f

License

(Back to top)

The MIT License (MIT) 2022 - websublime. Please have a look at the LICENSE.md for more details.

Details


Assets

  • ws-globals-0.3.0.tgz

Download activity

  • Total downloads 16
  • Last 30 days 0
  • Last week 0
  • Today 0