0.0.1 • Published 11 years ago
alm-page-detail v0.0.1
Detail Page
This is a React-based version of the detail page. It also conforms to the contract laid out by the Core Page Framework. The page makes use of the following open source tools from facebook:
- React for view rendering
- Flux for one-directional data flow architecture
- Jest for painless unit testing
Development
cd ~/projects
git clone https://github.com/RallySoftware/alm-page-detail.git
npm install
npm linkThen in ~/projects/alm-webapp
npm link alm-page-detail
grunt webpack:viewportThe above commands will give alm-webapp the latest changes to this repository.
Note
grunt webpack:viewportdoes not watch the files in this repo. you can usegrunt webpack-dev-serverfor that.
Testing
- You'll probably want to have the Jest CLI installed globally - run npm install -g jest-cli
- Run all tests with jest
- Run individual specs with jest <specName>
Notes
- Jest searches for tests in
__tests__directories (should be a sibling of production code).- The argument to the jest command is a regular expression, so ... yeah, keep that in mind.
Deployment
When happy with the changes:
- Commit to alm-page-detail,
- unlink the project using npm unlink alm-page-detailin alm-webapp (if you're done developing),
- submit a pull request to this repository,
- update alm-page-detail dependency in alm-webapp/package.json and finally,
- submit a pull request to alm with the above change
0.0.1
11 years ago