@times-components/utils

6.20.2 • Public • Published

Utils

This package contains shared utilities for other packages, such as string utils, screen size utils, and schema updater.

Fetching the latest schema

In order to fetch the latest graphql schema, follow these steps:

  1. export GRAPHQL_ENDPOINT=https://api.thetimes.co.uk/graphql (Omit this step to use local server instead)
  2. yarn make-schema

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test

Future

Some of the test specific utilities should be moved to the test-utils package.

Readme

Keywords

Package Sidebar

Install

npm i @times-components/utils

Weekly Downloads

11,638

Version

6.20.2

License

BSD-3-Clause

Unpacked Size

157 kB

Total Files

32

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools