Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 80e04e9

Browse files
feat: add support for dependabot (#604)
1 parent 33817a8 commit 80e04e9

File tree

6 files changed

+675
-3
lines changed

6 files changed

+675
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ yarn create nuxt-app <my-project>
7474
1. Development tools
7575
- [jsconfig.json](https://code.visualstudio.com/docs/languages/jsconfig)
7676
- [Semantic PR](https://probot.github.io/apps/semantic-pull-requests/)
77+
- [Dependabot (for GitHub only)](https://dependabot.com/)
7778

7879
## CLI Options
7980

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: '00:00'
8+
open-pull-requests-limit: 99
9+
reviewers:
10+
- <%= gitUsername %>
11+
assignees:
12+
- <%= gitUsername %>
13+
labels:
14+
- dependencies
15+
commit-message:
16+
prefix: fix
17+
prefix-development: chore
18+
include: scope

packages/create-nuxt-app/lib/prompts.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,19 @@ module.exports = [
110110
type: 'checkbox',
111111
choices: [
112112
{ name: 'jsconfig.json (Recommended for VS Code if you\'re not using typescript)', value: 'jsconfig.json' },
113-
{ name: 'Semantic Pull Requests', value: 'semantic-pull-requests' }
113+
{ name: 'Semantic Pull Requests', value: 'semantic-pull-requests' },
114+
{ name: 'Dependabot (For auto-updating dependencies, GitHub only)', value: 'dependabot' }
114115
],
115116
default: []
116117
},
118+
{
119+
when: answers => answers.devTools.includes('dependabot'),
120+
name: 'gitUsername',
121+
message: 'What is your GitHub username?',
122+
default: '{gitUser.name}',
123+
filter: val => val.toLowerCase(),
124+
store: true
125+
},
117126
{
118127
name: 'vcs',
119128
message: 'Version control system:',

packages/create-nuxt-app/lib/saofile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ module.exports = {
8686
'tsconfig.json': 'language.includes("ts")',
8787
'semantic.yml': 'devTools.includes("semantic-pull-requests")',
8888
'_stylelint.config.js': 'linter.includes("stylelint")',
89-
'_commitlint.config.js': 'linter.includes("commitlint")'
89+
'_commitlint.config.js': 'linter.includes("commitlint")',
90+
'dependabot.yml': 'devTools.includes("dependabot")'
9091
},
9192
templateDir
9293
})
@@ -101,7 +102,8 @@ module.exports = {
101102
'_jsconfig.json': 'jsconfig.json',
102103
'_stylelint.config.js': 'stylelint.config.js',
103104
'_commitlint.config.js': 'commitlint.config.js',
104-
'semantic.yml': '.github/semantic.yml'
105+
'semantic.yml': '.github/semantic.yml',
106+
'dependabot.yml': '.github/dependabot.yml'
105107
}
106108
})
107109

0 commit comments

Comments
 (0)