A starter template for Ionic + Capacitor with Tailwind in TypeScript with an opinionated modular project structure.
Use degit
to download the repository locally.
❓ What is degit?
degit downloads a copy of git repository with downloading its entire git history.
Install degit globally.
npm install -g degit
Download the latest version
degit utsavdotpro/starter-ionic-capacitor-tailwind-ts
Prepare development environment
pnpm install # install node dependencies & sync the assets with native projects
pnpm start # start the development server
pnpm build # generate the production build
pnpm ios # start the project in simulator
pnpm build:ios # generate the production build & open in Xcode
pnpm android # start the project in emulator
pnpm build:android # generate the production build & open in Android Studio
|-- android ℹ️ generated android project
|-- ios ℹ️ generated ios project
|-- public ℹ️ keep your static resource files
|-- src
| |-- common
| | |-- components
| | | |-- elements ℹ️ keep your state-less components
| | | | ℹ️ keep your state-full components
| | |-- hoc
| | |-- hooks
| | |-- layouts
| | |-- sections ℹ️ keep your common sections
| |-- core
| | |-- config ℹ️ keep your configuration files
| | |-- constants
| | |-- interfaces
| | |-- utils
| |-- lib
| |-- pages ℹ️ pages & their components
| |-- theme
resources/
npx @capacitor/assets generate