reyesoft/ci
Composer 安装命令:
composer require reyesoft/ci
包简介
Library to fix common errors in php and keep a clean code
README 文档
README
yarn add --dev reyesoft-ci composer require-dev reyesoft/ci
Backend
Tools
- cs-fixer
Install
composer.json
{
"scripts": {
"ci-double-spaces": [
"sh vendor/reyesoft/ci/tools/find-double-spaces.sh app",
"sh vendor/reyesoft/ci/tools/find-double-spaces.sh tests"
],
"ci-php-cs-fixer": "sh vendor/reyesoft/ci/php/scripts/php-cs-fixer.sh",
"phpstan": [
"@phpstan-src",
"@phpstan-tests"
],
"phpstan-src": "./vendor/bin/phpstan analyse -l 7 -c resources/rules/phpstan.src.neon app ./bootstrap/*.php config",
"phpstan-tests": "./vendor/bin/phpstan analyse -l 7 -c resources/rules/phpstan.tests.neon tests",
"coverage": [
"ulimit -Sn 50000 && phpdbg -d memory_limit=-1 -qrr ./vendor/bin/phpunit",
"php ./vendor/reyesoft/ci/tools/coverage-checker.php"
]
},
"extra": {
"coverage": {
"file": "./bootstrap/cache/clover.xml",
"thresholds": {
"global": {
"lines": 46
},
"/app/Boxer": {
"lines": 78
}
}
}
}
}
Front End
Tools
- tslint
- sass-lint
- prettier (ts, md and json files)
Install
NX with Angular
package.json
Npm
{
"sasslintConfig": "resources/.sass-lint.yml",
"scripts": {
"lint": "npm run affected:lint && npm run lint:style",
"lint:style": "npm run stylelint \"apps/*/**/*.{css,scss,sass}\"",
"fix": "npm run affected:lint --fix && npm run prettier:fix && npm run lint:style --fix",
"prettier:fix": "prettier apps/*/**/*.{ts,sass,scss,md} libs/*/**/*.{ts,sass,scss,md} --write",
"prettier:check": "bash node_modules/reyesoft-ci/parallel.bash -s \"npm run prettier apps/**/*.{sass,scss,md} libs/**/*.{sass,scss,md} -l\" \"npm run prettier apps/*/src/**/*.ts libs/**/*.ts -l\"",
"precommit": "lint-staged",
},
"lint-staged": {
"*.ts": [
"npm run eslint --fix",
"git add"
],
"*.{ts,md,scss,sass}": [
"npm run prettier:fix",
"git add"
]
}
}
Only Angular
Npm
{
"sasslintConfig": "resources/.sass-lint.yml",
"scripts": {
"lint": "npm run lint && npm run lint:style",
"lint:style": "npm run stylelint \**/*.{css,scss,sass}\"",
"fix": "npm run affected:lint --fix && npm run prettier:fix && npm run lint:style --fix",
"prettier:fix": "prettier **/*.{ts,sass,scss,md} --write",
"prettier:check": "bash node_modules/reyesoft-ci/parallel.bash -s \"yarn prettier **/*.{sass,scss,md} -l\" \"yarn prettier **/*.ts -l\"",
"precommit": "lint-staged",
},
"lint-staged": {
"*.ts": [
"npm run eslint --fix",
"git add"
],
"*.{ts,md,scss,sass}": [
"npm run prettier:fix",
"git add"
]
}
}
In case of using yarn you can use:
"lint-staged": { "*.ts": [ "yarn eslint --fix", "git add" ], "*.{ts,md,scss,sass}": [ "yarn prettier:fix", "git add" ], "package.json": [ "node ./node_modules/reyesoft-ci/js/scripts/yarn-install.js", "git add yarn.lock" ] }
yarn fix for various projects: ng lint project1 --fix && ng lint project2 --fix && yarn prettier:fix
reyesoft/ci 适用场景与选型建议
reyesoft/ci 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47.26k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 06 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ci」 「reyesoft」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 reyesoft/ci 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 reyesoft/ci 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 reyesoft/ci 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
统计信息
- 总下载量: 47.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-06-03