From 8b3f8e1e0d5b25cb5e721d85a6cae75b1579219b Mon Sep 17 00:00:00 2001 From: Cokaps Date: Wed, 23 Jun 2021 10:27:21 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20auto=20approve=20for=20d?= =?UTF-8?q?ependabot=20if=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 12 ++++++------ .github/workflows/approve.yml | 15 +++++++++++++++ .prettierrc.js | 1 + package.json | 11 ++++++----- yarn.lock | 15 ++++++++++++++- 5 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/approve.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index be60a86..2b42512 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,9 +17,9 @@ updates: interval: daily time: '08:00' timezone: Asia/Ho_Chi_Minh - - package-ecosystem: gitsubmodule - directory: / - schedule: - interval: daily - time: '08:00' - timezone: Asia/Ho_Chi_Minh + # - package-ecosystem: gitsubmodule + # directory: / + # schedule: + # interval: daily + # time: '08:00' + # timezone: Asia/Ho_Chi_Minh diff --git a/.github/workflows/approve.yml b/.github/workflows/approve.yml new file mode 100644 index 0000000..0fbedfe --- /dev/null +++ b/.github/workflows/approve.yml @@ -0,0 +1,15 @@ +name: Auto approve dependabot + +on: + pull_request: + types: + - opened + +jobs: + approve: + if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' + runs-on: ubuntu-latest + steps: + - uses: hmarr/auto-approve-action@v2 + with: + github-token: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.prettierrc.js b/.prettierrc.js index fd9ca2c..76e25d6 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -3,4 +3,5 @@ module.exports = { tabWidth: 4, semi: true, singleQuote: true, + endOfLine: 'lf', }; diff --git a/package.json b/package.json index f3f7049..e90675b 100644 --- a/package.json +++ b/package.json @@ -39,13 +39,13 @@ "lint": "concurrently \"yarn:lint-*\"", "format": "concurrently \"yarn:format-*\" && echo Please apply the diff", "debug": "run-script-os", - "debug:win32": "set DEBUG=Eleventy* & npx @11ty/eleventy --dryrun", + "debug:windows": "set DEBUG=Eleventy* & npx @11ty/eleventy --dryrun", "debug:default": "DEBUG=Eleventy* npx @11ty/eleventy --dryrun", - "build-11ty": "npx @11ty/eleventy", "clean": "rimraf public", "start": "snowpack dev", "build": "snowpack build", - "dev": "yarn clean && snowpack dev" + "dev": "yarn clean && snowpack dev", + "folder": "tree -I \"node_modules\"" }, "devDependencies": { "@11ty/eleventy": "^0.12.1", @@ -85,11 +85,13 @@ "postcss-preset-env": "^6.7.0", "prettier": "2.3.1", "rimraf": "^3.0.2", + "run-script-os": "^1.1.6", "snowpack": "^3.5.9", "stylelint": "13.13.1", "stylelint-config-prettier": "^8.0.2", "stylelint-config-standard": "22.0.0", - "tailwindcss": "^2.2.2" + "tailwindcss": "^2.2.2", + "tree-node-cli": "^1.4.0" }, "dependencies": { "@11ty/eleventy-navigation": "^0.3.2", @@ -106,7 +108,6 @@ "markdown-it-attrs": "^4.0.0", "markdown-it-emoji": "^2.0.0", "overlayscrollbars": "^1.13.1", - "run-script-os": "^1.1.6", "theme-change": "^2.0.2" } } diff --git a/yarn.lock b/yarn.lock index d62d7f7..fd701e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5106,7 +5106,7 @@ __metadata: languageName: node linkType: hard -"commander@npm:^5.1.0": +"commander@npm:^5.0.0, commander@npm:^5.1.0": version: 5.1.0 resolution: "commander@npm:5.1.0" checksum: d16141ea7f580945156fb8a06de2834c4647c7d9d3732ebd4534ab8e0b7c64747db301e18f2b840f28ea8fef51f7a8d6178e674b45a21931f0b65ff1c7f476b3 @@ -8251,6 +8251,7 @@ __metadata: stylelint-config-standard: 22.0.0 tailwindcss: ^2.2.2 theme-change: ^2.0.2 + tree-node-cli: ^1.4.0 languageName: unknown linkType: soft @@ -18015,6 +18016,18 @@ fsevents@~2.1.2: languageName: node linkType: hard +"tree-node-cli@npm:^1.4.0": + version: 1.4.0 + resolution: "tree-node-cli@npm:1.4.0" + dependencies: + commander: ^5.0.0 + bin: + tree: ./bin/tree.js + treee: ./bin/tree.js + checksum: 22c168ad3b1cac0a98fc99d3ecaaf927e32a30fba4a29fa8b6b6c5fc92dda17fb74a12aca8c0f502d349ff4fc5ae6d3a27de9433d2f5816916cd9037969200a9 + languageName: node + linkType: hard + "trim-newlines@npm:^1.0.0": version: 1.0.0 resolution: "trim-newlines@npm:1.0.0"