# 🛫 HotelRunner Design System

### Folder Structure

[🛡️ Bulletproof React](https://github.com/alan2207/bulletproof-react)

---

### Development

[📚 Storybook](https://storybook.js.org/docs/react/get-started/introduction)

[🐜 Ant Design](https://ant.design/components/overview)

[⚡️ Vite](https://vitejs.dev/)

[🤖 TypeScript](https://www.typescriptlang.org/play)

[💡 Plop](https://plopjs.com/documentation/)

[📦 Yarn](https://yarnpkg.com/getting-started/install)

[📦 Prettier](https://prettier.io/docs/en/install.html)

[📦 Eslint](https://eslint.org/docs/user-guide/getting-started)

[📦 Husky](https://typicode.github.io/husky/#/)

---

## 📦 Install the packages

> In this template `react@18.2.0` is being used and it might cause some peer dependency mismatches among the template dependencies
> If you prefer to use `npm`, you might need to call `npm i --legacy-peer-deps` to ignore resolution errors

- To use the design system, you should use the HotelRunnerProvider and HotelRunnerDesignProvider components.
- HotelRunnerProvider is a context provider for the design system. It provides the theme and the language context to the design system.
- HotelRunnerDesignProvider is a context provider for the design system. It provides the design system components to the application.

> :warning: **You should use the HotelRunnerDesignProvider under the HotelRunnerProvider.**

## ⚡️ Start the development server

```sh
yarn dev
```

## ⚡️ Start the test server

```sh
yarn dev:test
```

## ⚡️ For Storybook

```sh
yarn storybook
```

## 📝 Generate a new component

```sh
yarn generate component
# it will create a new component in the components folder
```

## 🚚 Build for production

```sh
yarn build
# it will create a dist folder and tgz file and set the version in the test-project package.json
# After that you can test it with `yarn dev:test`
```

```sh
yarn build-only
# if you want to get only build dist folder use:
```
