Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit deda4dd

Browse files
Merge pull request #37 from amclin/feat/dependabot
feat(ci): add Dependabot support in generated projects
2 parents b9c86bc + 890261d commit deda4dd

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

create-app.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ const createApp = async ({ appPath, useNpm, noGit = false, example }) => {
133133
})
134134
log()
135135

136-
await cpy('**', root, {
136+
await cpy([
137+
'**',
138+
'.dependabot/**'
139+
], root, {
137140
parents: true,
138141
cwd: path.join(__dirname, 'templates', 'default'),
139142
rename: name => {
@@ -189,14 +192,25 @@ const createApp = async ({ appPath, useNpm, noGit = false, example }) => {
189192
log()
190193
log()
191194
if (!noGit) {
192-
log(`-----------------------------------------------
195+
log(`-GitHub----------------------------------------
193196
A git repo is created, but changes have not been pushed to the
194197
remote git server. Make sure an empy repo exists at:
195198
${chalk.cyan(gitRemote)}
196199
and then run the onetime command:
197200
${chalk.cyan('git push --follow-tags push')}`)
198201
log(`-----------------------------------------------`)
199202
}
203+
log()
204+
log(`-Dependabot------------------------------------
205+
Your project is prepared with Dependabot support
206+
for automated management of updating dependencies
207+
with bugfixes and security updates. To enable it,
208+
you needto visit:
209+
${chalk.cyan(`https://dependabot.com `)}
210+
and grant Dependabot access to your GitHub
211+
repository.
212+
`)
213+
log(`-----------------------------------------------`)
200214
}
201215

202216
module.exports = {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@
107107
"global": {
108108
"branches": 0,
109109
"functions": 20,
110-
"lines": 9.1,
111-
"statements": 9.3
110+
"lines": 9,
111+
"statements": 9.2
112112
}
113113
},
114114
"testPathIgnorePatterns": [
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot is a service that automates the
2+
# process of keeping your dependencies up
3+
# to date with the latest security and bug
4+
# fixes. To enable it for this repo, visit
5+
# https://dependabot.com
6+
version: 1
7+
update_configs:
8+
- package_manager: "javascript"
9+
directory: "/"
10+
update_schedule: "daily"
11+
commit_message:
12+
prefix: "fix"
13+
prefix_development: "chore"
14+
include_scope: true

0 commit comments

Comments
 (0)