ta-app-config
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "ta-app-config", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "TA platform utils for node.js and the browser", | ||
@@ -10,3 +10,6 @@ "main": "dist/index.js", | ||
"lint": "eslint ./", | ||
"lint:fix": "eslint ./ --fix" | ||
"lint:fix": "eslint ./ --fix", | ||
"release:major": "ta-script npm/release major", | ||
"release:minor": "ta-script npm/release minor", | ||
"release:patch": "ta-script npm/release patch" | ||
}, | ||
@@ -13,0 +16,0 @@ "repository": { |
@@ -8,3 +8,3 @@ # ta-app-config | ||
```shell | ||
npm i ta-app-config | ||
npm i ta-app-config --save | ||
``` | ||
@@ -15,4 +15,5 @@ | ||
- Names / abbreviations | ||
- Env specific location info (protocol, host, port, href) | ||
- Logos / Favicons | ||
- URLs (staging, production) | ||
- ...`/src/index.js` for more | ||
@@ -28,3 +29,3 @@ ### Usage | ||
// other env urls | ||
// apps.unity.locations[NODE_ENV] | ||
console.log(apps.unity.locations[NODE_ENV]) | ||
//=> { protocol: '', host: '', port: '', href: '' } | ||
@@ -35,1 +36,15 @@ | ||
``` | ||
## Contribute | ||
1. Clone this repo | ||
1. Create a branch | ||
1. Make changes, push | ||
1. Open a PR | ||
### Releasing | ||
On the latest clean `master`: | ||
npm run release:major | ||
npm run release:minor | ||
npm run release:patch |
@@ -17,4 +17,4 @@ // ------------------------------------ | ||
config.unity = { | ||
name: 'Unity', | ||
config.auth = { | ||
name: 'TA Auth', | ||
} | ||
@@ -26,2 +26,6 @@ | ||
config.unity = { | ||
name: 'Unity', | ||
} | ||
// ------------------------------------ | ||
@@ -65,4 +69,5 @@ // Location | ||
addLocation(config.unity, 3000) | ||
addLocation(config.funnelAdvice, 4000) | ||
addLocation(config.auth, 3000) | ||
addLocation(config.funnelAdvice, 3010) | ||
addLocation(config.unity, 3020) | ||
@@ -73,5 +78,6 @@ // ------------------------------------ | ||
config.auth.favicon = `${config.auth.location.href}/favicon.png` | ||
config.funnelAdvice.favicon = `${config.funnelAdvice.location.href}/favicon.png` | ||
config.unity.favicon = `${config.unity.location.href}/favicon.png` | ||
config.funnelAdvice.favicon = `${config.funnelAdvice.location.href}/favicon.png` | ||
export default config |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4119
65
47