# @tibergroup/groundctrl-global

> Global files that support groundCTRL Micro Frontends

Latest version **0.2.6** (published 2021-10-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @tibergroup/groundctrl-global
pnpm add @tibergroup/groundctrl-global
yarn add @tibergroup/groundctrl-global
bun add @tibergroup/groundctrl-global
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2021-10-07 |
| First published | 2021-05-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jackbarger, ashrnglr |

## Links

- npm: https://www.npmjs.com/package/@tibergroup/groundctrl-global
- npm.io page: https://npm.io/package/@tibergroup/groundctrl-global

## Recent versions

- 0.2.6 (latest) — 2021-10-07
- 0.2.5 — 2021-08-02
- 0.2.4 — 2021-06-01
- 0.2.3 — 2021-06-01
- 0.2.2 — 2021-06-01
- 0.2.1 — 2021-06-01
- 0.1.9 — 2021-05-04

## README

## GroundCTRL Global Files

Global files are used across all the groundCTRL Micro Frontend interfaces and are provided in this npm package to prevent duplicate code across the codebase.

# Updating
To update the package, run the build command and then the publish:npm command.  Note, on Windows you will need to use Git Bash to run the publish command successfully.

# Installation

To install:
`npm i @tibergroup/groundctrl-global`

# Styles

Import into the file where the ThemeProvider and Router are:
`import { globalStyles, theme } from "@tibergroup/groundctrl-global";`

The ThemeProvider should be set up like:
`<ThemeProvider theme={props.theme || theme}>`

GlobalStyles are set up using styled-component's createGlobalStyle method:
`const GlobalStyle = createGlobalStyle`${globalStyles}`;`

and are added just inside the Router:

```
<Router>
{window.location.hostname.includes("localhost") && <GlobalStyle />}
...routes
</Router>
```

We only want to use the GlobalStyle when we are in development. The styles are applied by the parent-container in production.

---
_Source: https://npm.io/package/@tibergroup/groundctrl-global · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
