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

Commit 5239f18

Browse files
feat(ci): remove dependabot support in generated projects
BREAKIING CHANGE: Dependabot now is natively available with GitHub and easy to setup using GitHub's UI. Since the standalone Dependabot will be turned off in 8/20 there's no reason to still have it in this project.
1 parent 40e833b commit 5239f18

File tree

4 files changed

+15
-43
lines changed

4 files changed

+15
-43
lines changed

create-app.js

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const createApp = async ({
2727
gitRemote,
2828
isStatic,
2929
noGit = false,
30-
useNpm
30+
useNpm,
3131
}) => {
3232
const root = path.resolve(appPath)
3333
const appName = path.basename(root)
@@ -90,7 +90,7 @@ const createApp = async ({
9090
await install({
9191
root,
9292
useYarn,
93-
isOnline
93+
isOnline,
9494
})
9595
log()
9696
} else {
@@ -103,12 +103,12 @@ const createApp = async ({
103103
private: true,
104104
repository: {
105105
type: 'git',
106-
url: gitRemote
106+
url: gitRemote,
107107
},
108108
homepage,
109109
bugs: {
110-
url: `${homepage}/issues`
111-
}
110+
url: `${homepage}/issues`,
111+
},
112112
},
113113
isStatic ? staticTemplateSettings.package : ssrTemplateSettings.package
114114
)
@@ -119,7 +119,7 @@ const createApp = async ({
119119
)
120120

121121
log(`Installing runtime dependencies using ${displayedCommand}:`)
122-
templateSettings.dependencies.forEach(dep => {
122+
templateSettings.dependencies.forEach((dep) => {
123123
log(` * ${chalk.cyan(dep)}`)
124124
})
125125
log()
@@ -128,12 +128,12 @@ const createApp = async ({
128128
root,
129129
dependencies: templateSettings.dependencies,
130130
useYarn,
131-
isOnline
131+
isOnline,
132132
})
133133
log()
134134

135135
log(`Installing dev dependencies using ${displayedCommand}:`)
136-
templateSettings.devDependencies.forEach(dep => {
136+
templateSettings.devDependencies.forEach((dep) => {
137137
log(` * ${chalk.cyan(dep)}`)
138138
})
139139
log()
@@ -143,7 +143,7 @@ const createApp = async ({
143143
dependencies: templateSettings.devDependencies,
144144
useYarn,
145145
isOnline,
146-
devDependencies: true
146+
devDependencies: true,
147147
})
148148
log()
149149

@@ -201,18 +201,8 @@ and then run the onetime command:
201201
${chalk.cyan('git push --follow-tags push')}`)
202202
log(`-----------------------------------------------`)
203203
}
204-
log()
205-
log(`-Dependabot------------------------------------
206-
Your project is prepared with Dependabot support
207-
for automated management of updating dependencies
208-
with bugfixes and security updates. To enable it,
209-
you need to visit:
210-
${chalk.cyan(`https://dependabot.com `)}
211-
and grant Dependabot access to your GitHub
212-
repository.`)
213-
log(`-----------------------------------------------`)
214204
}
215205

216206
module.exports = {
217-
createApp
207+
createApp,
218208
}

helpers/copy-template-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const cpy = require('cpy')
22
const path = require('path')
33

44
const copyTemplateFiles = (root, dir) =>
5-
cpy(['**', '.dependabot/**', '.husky/**'], root, {
5+
cpy(['**', '.husky/**'], root, {
66
parents: true,
77
cwd: path.join(__dirname, '..', 'templates', dir),
88
rename: (name) => {

templates/default/.dependabot/config.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

templates/default/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!-- //TODO: Wire this up to the project-specific build status path for Gitlab? -->
22
<!-- [![npm version](https://badge.fury.io/js/%40amclin%2Fcreate-react-app.svg)](https://www.npmjs.com/@amclin/create-react-app) -->
33
<!-- [![Build Status](https://travis-ci.org/amclin/react-project-boilerplate.svg?branch=master)](https://travis-ci.org/amclin/react-project-boilerplate) -->
4-
<!-- [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=amclin/react-project-boilerplate)](https://dependabot.com) -->
54

65
![Branch Code Coverage](./coverage/badge-branches.svg) ![Functions Code Coverage](./coverage/badge-functions.svg) ![Lines Code Coverage](./coverage/badge-lines.svg) ![Statements Code Coverage](./coverage/badge-statements.svg)
76

@@ -26,16 +25,19 @@ After checking out this repo, run `npm install` to install dependencies
2625
Run `npm run dev` to launch a NextJS development webserver at `http://localhost:3000`
2726

2827
### Running in Production Mode
28+
2929
For convenience and consistency, the preferred method of running in produciton mode is to use Docker. This will best match how an application is running on a shared environment.
3030

3131
#### Build a Docker image
32+
3233
Create a Docker image from your current source code by running:
3334

3435
`npm run docker`
3536

3637
**Warning** You must have Docker Desktop or similar Docker daemon installed and running or the script will fail.
3738

3839
#### Run a Docker Container
40+
3941
Once the Docker image exists in your registry of choice (local or remote), you can then run the app and specify what port it should run on:
4042

4143
```
@@ -45,6 +47,7 @@ docker run -p 0.0.0.0:3000:3000 %%APPNAME%%:latest
4547
If you'd like to run on a different port, replace the first `3000` with the desired port.
4648

4749
#### Alternative "local" production mode
50+
4851
Alternatively the application can be run locally without using Docker. See [NextJS documentation for more details](https://nextjs.org/docs#production-deployment).
4952

5053
## Contributing

0 commit comments

Comments
 (0)