sports-util
v1.0.31
Published
A helper library that contains the sports functions, hardcoded data and its constants.
Downloads
20
Readme
Sports Utils
A helper library that contains the sports functions, hardcoded data and its constants.
-It's writen in typescript so we can typecheck the data coming from the API. We then build the exported functions and transpile typescript into javascript in the folder dist. Any configuration of next generation module(for now we use ES6), can be found on the tsconfig.json.
Getting started
Install dependencies
run yarn
Tests
run yarn test
Workspace structure
├── README.md
├── dist
├── src
│ ├── constants
│ ├── helpers
│ ├── services
│ └── types
│ └── index.ts
├── package.json
└── yarn.lock
Publish new version
First run yarn build
to build the dist, and commit it. Then if no error occurs, run:
$ yarn npm:patch
$ yarn npm:publish
If an error occurs, try running npm publish
directly.