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

feat(ci): add Dependabot support in generated projects #37

Merged
merged 2 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions create-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ const createApp = async ({ appPath, useNpm, noGit = false, example }) => {
})
log()

await cpy('**', root, {
await cpy([
'**',
'.dependabot/**'
], root, {
parents: true,
cwd: path.join(__dirname, 'templates', 'default'),
rename: name => {
Expand Down Expand Up @@ -189,14 +192,25 @@ const createApp = async ({ appPath, useNpm, noGit = false, example }) => {
log()
log()
if (!noGit) {
log(`-----------------------------------------------
log(`-GitHub----------------------------------------
A git repo is created, but changes have not been pushed to the
remote git server. Make sure an empy repo exists at:
${chalk.cyan(gitRemote)}
and then run the onetime command:
${chalk.cyan('git push --follow-tags push')}`)
log(`-----------------------------------------------`)
}
log()
log(`-Dependabot------------------------------------
Your project is prepared with Dependabot support
for automated management of updating dependencies
with bugfixes and security updates. To enable it,
you needto visit:
${chalk.cyan(`https://dependabot.com `)}
and grant Dependabot access to your GitHub
repository.
`)
log(`-----------------------------------------------`)
}

module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
"global": {
"branches": 0,
"functions": 20,
"lines": 9.1,
"statements": 9.3
"lines": 9,
"statements": 9.2
}
},
"testPathIgnorePatterns": [
Expand Down
14 changes: 14 additions & 0 deletions templates/default/.dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Dependabot is a service that automates the
# process of keeping your dependencies up
# to date with the latest security and bug
# fixes. To enable it for this repo, visit
# https://dependabot.com
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "daily"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true