二氮嗪 / 纳德凡
纳德凡
1.0
2019-09-18 13:33 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-pdo: *
This package is auto-updated.
Last update: 2024-09-11 21:43:00 UTC
README
安装
安装命令。
- 下载并安装包
composer global require diazoxide/nardivan:dev-master
如果您需要将纳德凡作为全局bash命令使用,则应将composer/vendor/bin目录添加到您的用户PATH
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
- 在项目根目录下创建
nardivan.json
文件{ "directory": "public_html", "use-symlink-method":true, "scripts": { "pre-update": [], "post-update": [], "pre-install": [], "post-install": [] }, "environments-scripts": { "pre-update": [ "echo 'Start global'" ], "post-update": [ "if [ -f \"composer.json\" ]; then composer update; fi;", "if [ -f \"package.json\" ]; then npm install; fi;" ] }, "environments": [ { "target": "wp-content/themes/my-theme", "name": "my-repo-name", "git": { "url": "git@gitlab.com:my/custom/repo.git", "branch": "master" }, "scripts": { "pre-update": [ "echo 'you custom command'" ], "post-update": [ "echo 'your custom command'" ] } } ] }
- 运行安装命令
nardivan install
- 运行更新命令
nardivan update