ta-app-config
v3.0.1
Published
TA platform utils for node.js and the browser
Downloads
24
Maintainers
Keywords
Readme
ta-app-config
Centralized web app config.
Install
npm i ta-app-config --save
What's Included
- App names
- Env specific location info (protocol, host, port, href)
Usage
import taAppConfig from 'ta-app-config'
const unityConfig = taAppConfig.unity
// env specific location info
console.log(unityConfig.locations[NODE_ENV])
//=> { protocol: '', host: '', port: '', href: '' }
// favicons
const icon = <img src={unityConfig.favicon} />
Contribute
- Clone this repo
- Create a branch
- Make changes, push
- Open a PR
Releasing
On the latest clean master
:
npm run release:major
npm run release:minor
npm run release:patch