加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
phecho 提交于 2016-09-29 20:23 . Move cs check to Makefile
.PHONY: all update-repo dependency-install file-permission migration seed assets-dev assets-production
install: dependency-install dump-autoload file-permission migration seed install-gulp assets-production cache-config
install-dev: dependency-install dump-autoload file-permission migration seed install-gulp assets-dev
update: update-repo dependency-install dump-autoload migration assets-production cache-config
update-dev: update-repo dependency-install dump-autoload migration assets-dev
help:
@echo 'make install -- download dependencies and install'
@echo 'make install-dev -- download dependencies and install without minifing assets'
@echo 'make update-dev -- pull repo and rebuild assets'
@echo 'make update -- pull repo and rebuild assets without minifing'
update-repo:
git reset --hard
git pull origin master
dependency-install:
composer update
file-permission:
chmod -R 777 storage/
chmod -R 777 bootstrap/cache/
chmod -R 777 public/upload
migration:
php artisan migrate --force
seed:
php artisan db:seed
install-gulp:
npm install --g gulp
npm install
assets-production:
gulp --production
assets_dev:
gulp
cs:
vendor/bin/phpcs -p --standard=PSR2 --ignore="app/Helpers/Helpers.php,app/Presenters" app/
vendor/bin/phpdoccheck --directory=app
dump-autoload:
php artisan clear-compiled
cache-config:
php artisan config:cache
php artisan optimize
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化