feat: shareable preset configs (#658)
This PR implements eslint-inspired shareable configs. With this feature, we: - Add new config option "extends" * This is an array of preset config names that the current config or preset extends/inherits from - Add new config option "description" * Each preset config should include a description of its functionality that is human-readable - Provide a set of commonly use configs called "preset defaults" - Provide two "full" preset configs: "app" and "library" * Almost the same but app pins *all* version numbers while library only pins devdependencies - Replace regular config in onboarding with one of these two presets - Generate human-readable description of config in Onboarding PR - Support npm for hosting configs (both scoped and non-scoped) Closes #657, Closes #671, Closes #647
Showing
- docs/shareable-configs.md 114 additions, 0 deletionsdocs/shareable-configs.md
- lib/api/npm.js 2 additions, 0 deletionslib/api/npm.js
- lib/config/definitions.js 21 additions, 1 deletionlib/config/definitions.js
- lib/config/index.js 10 additions, 14 deletionslib/config/index.js
- lib/config/presets.js 193 additions, 0 deletionslib/config/presets.js
- lib/workers/repository/index.js 11 additions, 2 deletionslib/workers/repository/index.js
- lib/workers/repository/onboarding.js 36 additions, 12 deletionslib/workers/repository/onboarding.js
- test/_fixtures/npm/renovate-config-default.json 1 addition, 0 deletionstest/_fixtures/npm/renovate-config-default.json
- test/_fixtures/npm/renovate-config-packages.json 1 addition, 0 deletionstest/_fixtures/npm/renovate-config-packages.json
- test/api/__snapshots__/npm.spec.js.snap 16 additions, 4 deletionstest/api/__snapshots__/npm.spec.js.snap
- test/api/npm.spec.js 3 additions, 0 deletionstest/api/npm.spec.js
- test/config/__snapshots__/presets.spec.js.snap 446 additions, 0 deletionstest/config/__snapshots__/presets.spec.js.snap
- test/config/presets.spec.js 255 additions, 0 deletionstest/config/presets.spec.js
- test/workers/package/__snapshots__/index.spec.js.snap 3 additions, 0 deletionstest/workers/package/__snapshots__/index.spec.js.snap
- test/workers/repository/__snapshots__/onboarding.spec.js.snap 93 additions, 12 deletions.../workers/repository/__snapshots__/onboarding.spec.js.snap
- test/workers/repository/onboarding.spec.js 23 additions, 2 deletionstest/workers/repository/onboarding.spec.js
Loading
Please register or sign in to comment