Skip to content

Commit

Permalink
Merge pull request #361 from datamade/feature/dependency-auto-update
Browse files Browse the repository at this point in the history
Automatically update cookiecutter dependencies
  • Loading branch information
xmedr authored Apr 12, 2024
2 parents 4a24569 + ef2ff7c commit 68cce3f
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 67 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check for dependency upgrades

on:
schedule:
- cron: '30 5 * * 0'

jobs:
upgrade-dependencies:
name: Check for dependency upgrades
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Activate a virtual environment
run: python -m venv .venv && source .venv/bin/activate
- name: Install pip-upgrader
run: pip install pip-upgrader
- name: Update python dependencies
run: |
find ./docker -name requirements.txt -exec pip-upgrade {} --skip-package-installation -p all \;
- name: Update node dependencies
run: |
source .venv/bin/activate && \
pip install nodeenv && \
nodeenv -p && \
npm install -g npm-check-updates && \
find ./docker -name package.json -exec ncu --packageFile {} -u \;
- name: Push to main branch
run: |
git config --global user.name "xmedr"
git config --global user.email "[email protected]"
git add .
git commit -m "Update pypi and node dependencies"
git push origin ${{ github.ref_name }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.venv
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,39 @@
"version": "0.0.0",
"description": "JavaScript development setup for {{cookiecutter.app_verbose_name}}",
"dependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/preset-react": "^7.23.3",
"babel-preset-env": "^1.7.0",
"babelify": "^10.0.0",
"bootstrap": "^5.2.3",
"bootstrap": "^5.3.3",
"browserify": "^17.0.0",
"core-js": "^3.8.3",
"core-js": "^3.36.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.57.1"
"sass": "^1.72.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"@babel/eslint-parser": "^7.19.1",
"babel-loader": "^9.1.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@babel/eslint-parser": "^7.23.10",
"babel-loader": "^9.1.3",
"browserify-css": "^0.15.0",
"css-loader": "^6.7.2",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.7.0",
"css-loader": "^6.10.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"style-loader": "^3.3.1",
"webpack": "^5.75.0",
"webpack-bundle-tracker": "^1.7.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.11.1"
"style-loader": "^3.3.4",
"webpack": "^5.90.3",
"webpack-bundle-tracker": "^3.0.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.3"
},
"scripts": {
"develop": "sass --watch /app/{{ cookiecutter.module_name }}/static/scss/custom.scss:/app/{{ cookiecutter.module_name }}/static/css/bootstrap.custom.css",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@
"version": "0.1.0",
"author": "DataMade",
"dependencies": {
"@babel/core": "^7.21.3",
"@babel/eslint-parser": "^7.21.3",
"@babel/plugin-syntax-flow": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.9",
"@babel/core": "^7.24.0",
"@babel/eslint-parser": "^7.23.10",
"@babel/plugin-syntax-flow": "^7.23.3",
"@babel/plugin-transform-react-jsx": "^7.23.4",
"@gatsbyjs/reach-router": "^2.0.1",
"@popperjs/core": "^2.11.6",
"@sentry/gatsby": "^7.44.2",
"@popperjs/core": "^2.11.8",
"@sentry/gatsby": "^7.107.0",
"babel-eslint": "^10.0.0",
"bootstrap": "^5.2.3",
"bootstrap": "^5.3.3",
"common-tags": "^1.8.2",
"eslint": "^8.36.0",
"eslint": "^8.57.0",
"eslint-config-react-app": "^7.0.1",
"gatsby": "^5.8.0",
"gatsby-plugin-google-analytics": "^5.8.0",
"gatsby-plugin-image": "^3.8.0",
"gatsby-plugin-manifest": "^5.8.0",
"gatsby-plugin-react-helmet": "^6.8.0",
"gatsby-plugin-sharp": "^5.8.0",
"gatsby-source-filesystem": "^5.8.0",
"gatsby-transformer-sharp": "^5.8.0",
"gatsby": "^5.13.3",
"gatsby-plugin-google-analytics": "^5.13.1",
"gatsby-plugin-image": "^3.13.1",
"gatsby-plugin-manifest": "^5.13.1",
"gatsby-plugin-react-helmet": "^6.13.1",
"gatsby-plugin-sharp": "^5.13.1",
"gatsby-source-filesystem": "^5.13.1",
"gatsby-transformer-sharp": "^5.13.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-bootstrap": "^2.7.2",
"react-bootstrap": "^2.10.1",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"typescript": "^5.0.2"
"typescript": "^5.4.2"
},
"devDependencies": {
"prettier": "^2.8.6"
"prettier": "^3.2.5"
},
"keywords": [
"gatsby"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"version": "0.0.0",
"description": "{{cookiecutter.app_description}}",
"dependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.15.2",
"core-js": "^3.36.0",
"watchify": "^4.0.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@
"version": "0.0.0",
"description": "JavaScript development setup for {{ cookiecutter.module_name }}",
"dependencies": {
"@babel/cli": "^7.17.10",
"@babel/core": "^7.17.12",
"@babel/preset-env": "^7.17.12",
"@babel/preset-react": "^7.17.12",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/preset-react": "^7.23.3",
"babel-preset-env": "^1.7.0",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"bootstrap": "^5.2.3",
"leaflet": "^1.8.0",
"bootstrap": "^5.3.3",
"leaflet": "^1.9.4",
"leaflet-loading": "^0.1.24",
"object-hash": "^3.0.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-dropdown-select": "^4.7.4",
"react-leaflet": "^4.0.0",
"react-select": "^5.1.0",
"sass": "^1.57.1",
"typed.js": "^2.0.12"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dropdown-select": "^4.11.2",
"react-leaflet": "^4.2.1",
"react-select": "^5.8.0",
"sass": "^1.72.0",
"typed.js": "^2.1.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"@babel/eslint-parser": "^7.17.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.7.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@babel/eslint-parser": "^7.23.10",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0"
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0"
},
"scripts": {
"develop": "sass --watch /app/{{ cookiecutter.module_name }}/static/scss/custom.scss:/app/{{ cookiecutter.module_name }}/static/css/bootstrap.custom.css"
Expand Down

0 comments on commit 68cce3f

Please sign in to comment.