Skip to content

ws-globals 0.5.0-SNAPSHOT-ac0dfbd

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

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 on global scope (Sublime) for the entries:

type Environment = {
  apiUrl: string;
  env: string;
};

Globals are intiated calling the function:

import { bootGlobals } from '@websublime/ws-globals';

bootGlobals({
  apiUrl: 'http://localhost',
  env: import.meta.env.MODE
  // or any new things you want on the environment link and sublime context
});

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.5.0-SNAPSHOT-ac0dfbd.tgz

Download activity

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