Hotel Urbano Components Mobile Component
This repo is based on React CDK with some minor changes to be able to use this component as a dependency in other applications without publishing it to NPM.
This workflow depends on Node.js, so make sure you have installed
- Remove
.npmrc
from the main directory. - Run
npm install
. - Run
git checkout .npmrc
- Try to run tests with
npm run test
to see if it works. - Have fun!
While working in the component, you can pretty much follow the React CDK instructions, but if you want to use your component on another React application you should do this:
- Run project with
npm run storybook
ornpm start
as an alias.
- First follow the steps at sinopia to setup an account
- Then
npm version <newversion>
to bump a new version - Then
npm publish
to transpile and publish the package - Check the new version on sinopia and you are done
- Update the package version at cms-web's package.json
- Then deploy on Samson
- Update the package version at react-render's package.json
- Then deploy on Samson