Start
Private packages
Các packages
@xotiny/react
: những thứ liên quan tới ui, hook react@xotiny/preact
: những thứ liên quan tới ui, dùng chung cho frontend@xotiny/utils
: các hàm hỗ trợ mọi nơi
Cài đặt
Đăng ký tài khoản
npm adduser --registry https://pkg.xotiny.com/
Login
npm login --registry https://pkg.xotiny.com/
pnpm login --registry https://pkg.xotiny.com/
Install
pnpm add @xotiny/utils --registry https://pkg.xotiny.com/
hoặc có thể set registry để dùng mặc định qua registry pkg.xotiny.com:
pnpm set registry https://pkg.xotiny.com/
Repo
1. Clone turbo repo
git clone ssh://git@git.awe7.com:2201/xo-apps/builder/turbo.git
2. Init project
Chạy lệnh sau để init các project cần thiết
pnpm run all:init
Nếu cần pull hết các apps,services về, chạy:
pnpm run all:pull
Build tất cả các apps, packages, services
pnpm run all:pkgbuild
Các lệnh cơ bản
1. Build packages
Lệnh sau sẽ build hết packages cho turbo
pnpm run build:pkg
2. Reinstall
Một số trường hợp bị cache phiên bản package dẫn đến lỗi type, chạy:
pnpm run reinstall