2021-07-10 19:47:40 +08:00
|
|
|
# sakura-next
|
|
|
|
|
|
|
|
## Requirement
|
|
|
|
|
|
|
|
- PHP=7.4
|
|
|
|
- WordPress>=5.6.0
|
|
|
|
- Node.js>=14.17.1
|
|
|
|
- yarn>=1.22.10
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
|
```sh
|
|
|
|
composer install # install php dependencies
|
|
|
|
yarn install # install node dependencies
|
|
|
|
yarn dev # run dev server
|
|
|
|
yarn build # build assets
|
|
|
|
yarn test # Jest test
|
|
|
|
yarn lint # eslint
|
|
|
|
yarn format # auto format
|
|
|
|
yarn i18n # export i18n variables
|
|
|
|
yarn rsync # sync backend app with server, see docs/dev.md
|
|
|
|
yarn composer # run `composer install` on remote server
|
2021-07-20 17:58:34 +08:00
|
|
|
yarn icon # generate svg icon component
|
2021-07-10 19:47:40 +08:00
|
|
|
yarn remote-download:geoip2 # download GeoIP db on remote server
|
|
|
|
yarn local-download:geoip2 # download GeoIP db locally
|
2021-07-20 17:58:34 +08:00
|
|
|
yarn options # export node side admin options.ts to php side options.json
|
2021-07-09 18:28:29 +08:00
|
|
|
```
|