|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| templates | %!s(int64=2) %!d(string=hai) anos | |
| History.md | %!s(int64=2) %!d(string=hai) anos | |
| LICENSE | %!s(int64=2) %!d(string=hai) anos | |
| README.md | %!s(int64=2) %!d(string=hai) anos | |
| README.zh-CN.md | %!s(int64=2) %!d(string=hai) anos | |
| install.js | %!s(int64=2) %!d(string=hai) anos | |
| package.json | %!s(int64=2) %!d(string=hai) anos | |
Auto gen ci config file.
$ npm i egg-ci --save-dev
Add ci property to your package.json:
"ci": {
"type": "github", // default ci env type is 'travis, appveyor', also support 'github, azure-pipelines'
"os": {
"travis": "linux", // travis support 'linux', 'osx' and 'windows' operation system, default is 'linux'
"azure-pipelines": "linux, windows, macos", // azure-pipelines support 'linux, windows, macos', default is 'linux, windows, macos'
"github": "linux, windows, macos"
},
"npminstall": true, // use `npminstall` or `npm install`, default is true
"version": "12, 14, 16", // test LTS node version by default
// npm ci command
"command": {
"travis": "ci",
"appveyor": "test",
"azure-pipelines": "ci",
"github": "ci"
},
"services": "redis-server, mysql", // custom service
"license": false // generate license
}
Use npm postinstall hook to create the *.yml after each npm install run.