@appaflytech/wappa-client
v0.0.7
Published
Wappa platform client SDK
Downloads
832
Readme
@appaflytech/wappa-client
Wappa platform için tek paket halinde birleştirilmiş istemci SDK'sı.
Constants, Services ve Core modüllerini tek bir bağımlılık olarak sunar.
Kurulum
npm install @appaflytech/wappa-client
# ya da
yarn add @appaflytech/wappa-clientKullanım
Tek import (tüm modüller)
import { Environment, configService, PageComponent } from '@appaflytech/wappa-client'Alt yollar ile (önerilen)
// Sabitler
import { NodeEnv } from '@appaflytech/wappa-client/constants/enums'
import { PageComponent } from '@appaflytech/wappa-client/constants/types'
import { definitions } from '@appaflytech/wappa-client/constants/definitions'
// Servisler
import { configService, pageService, siteService } from '@appaflytech/wappa-client/services'
// Core — sınıflar
import { Environment } from '@appaflytech/wappa-client/core/classes'
// Core — bileşen tipleri
import type { ArrayRepeaterProps, ErrorProps } from '@appaflytech/wappa-client/core/components'
// Core — context tipleri
import type { AppContextProps } from '@appaflytech/wappa-client/core/contexts'
// Core — hook'lar
import { useClone, useMounted, useMobile } from '@appaflytech/wappa-client/core/hooks'
// Core — yardımcılar
import { color, path, string } from '@appaflytech/wappa-client/core/utils'Paket Yapısı
@appaflytech/wappa-client
├── /constants → Sabitler, enum'lar, tipler, regex, tanımlar
│ ├── /enums
│ ├── /types
│ ├── /definitions
│ └── /regex
├── /services → HTTP servisleri (config, page, query, site)
└── /core
├── /classes → Environment sınıfı
├── /components → Bileşen prop tipleri (ArrayRepeater, Error, vb.)
├── /contexts → AppContext tipleri
├── /hooks → useClone, useMounted, useMobile, useVar, vb.
└── /utils → color, path, string, functions yardımcılarıBuild
npm run build # tsup ile derleme (ESM + CJS + .d.ts)
npm run dev # watch modunda derleme
npm run clean # dist klasörünü temizleGereksinimler
- Node.js ≥ 16
- React ≥ 17 (peer dependency)
Lisans
MIT
