# product-admin
Contains the EA Configuration Uapp product admin screens  
## How do I get this component to be included in `config_uApp`?  
* Do development stuff  
* Create a branch  
* Test component using dist  
* Change bower in `config_uApp` to reference your development branch e.g., `your-dev-branch`  
* `bower update`, build and test `config_uApp`  
* PR `product-admin` component `your-dev-branch` to `master`  
* `npm publish` from `product-admin` component `master`  
* Change bower in `config_uApp` to use the new `product-admin` component version (probably patch +1)  
## Development  

### Building & Test
For local development,
```
npm test
npm run dist
cd dist
node app.js
# or to use a different environment (default is QA)
# node app.js DEBUG_ENV=[qa-client|dev-client|mock|real]
```
### Publishing  
Publish a new bower component using standard processes. Do this from `master` branch once development is complete. 
`npm publish` will run the necessary tasks to version and push a new tag to this component's repo. Change config_uApp's `bower.json` to reference the new git tag—created in this step—and push config_uApp to master with updated `bower.json`  
TODO: Integrate babel / transpiler with `publish`, and publish the actual artifact rather than `src`.
