Skip to content

Commit

Permalink
chore: updates to dev-deps and QOL improvements (#918)
Browse files Browse the repository at this point in the history
* chore: updates to dev-deps and QOL improvements

* chore: update to build config
  • Loading branch information
edodusi authored Jan 10, 2025
1 parent 25bb1d0 commit efcc797
Show file tree
Hide file tree
Showing 10 changed files with 596 additions and 126 deletions.
41 changes: 20 additions & 21 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: daily
# Raise pull requests for version updates
# to pip against the `develop` branch
target-branch: fix/update-package-json-INT-122
# Labels on pull requests for version updates only
labels:
- pip dependencies

- package-ecosystem: npm
directory: /
schedule:
interval: weekly
# Check for npm updates on Sundays
day: sunday
# Labels on pull requests for security and version updates
interval: daily
time: '04:00'
commit-message:
prefix: fix
prefix-development: chore
include: scope
labels:
- npm dependencies
- dependabot
groups:
security-updates:
patterns:
- '*'
exclude-patterns:
- 'storyblok*'
update-types:
- patch
ignore:
- dependency-name: '*'
update-types:
- version-update:semver-minor
- version-update:semver-major
28 changes: 28 additions & 0 deletions .github/workflows/dependabot-autoapprove.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Dependabot auto-approve
on: pull_request

permissions:
pull-requests: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'storyblok/storyblok-js-client'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
alert-lookup: true
- uses: actions/checkout@v4
- name: Approve a PR if not already approved
run: |
gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ];
then gh pr review --approve "$PR_URL"
else echo "PR already approved, skipping additional approvals to minimize emails/notification noise.";
fi
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Run Unit tests
run: pnpm run test
run: pnpm run test:unit:ci
- name: Run E2E tests
env:
VITE_ACCESS_TOKEN: ${{ secrets.VITE_ACCESS_TOKEN }}
Expand Down
31 changes: 18 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "storyblok-js-client",
"version": "6.10.1",
"packageManager": "[email protected].0",
"version": "6.10.6",
"packageManager": "[email protected].2",
"description": "Universal JavaScript SDK for Storyblok's API",
"author": "Alexander Feiglstorfer <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -48,35 +48,37 @@
"tests"
],
"scripts": {
"lint": "eslint --max-warnings=0 './src/**/*.{ts,js}'",
"build": "node vite.build.mjs && tsc",
"dev": "vite build --watch",
"build": "node vite.build.mjs",
"test": "pnpm run test:unit:ci && pnpm run test:e2e",
"test:unit": "vitest",
"test:unit:ci": "vitest run",
"test:unit:ui": "vitest --ui",
"test:e2e": "vitest run -c vitest.config.e2e.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"playground": "pnpm run --filter ./playground/vanilla dev",
"playground:svelte": "pnpm run --filter ./playground/svelte dev",
"playground:next": "pnpm run --filter ./playground/nextjs dev",
"dev:umd": "npx serve ./",
"test": "vitest run",
"test:e2e": "vitest run -c vitest.config.e2e.ts",
"test:ui": "vitest --ui --coverage.enabled=true",
"coverage": "vitest run --coverage",
"prepare": "npm run build"
"prepare": "pnpm simple-git-hooks",
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@storyblok/eslint-config": "^0.3.0",
"@tsconfig/recommended": "^1.0.8",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/ui": "^2.1.8",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"isomorphic-fetch": "^3.0.0",
"kolorist": "^1.8.0",
"prettier": "^3.4.2",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite": "^6.0.6",
"vite-plugin-banner": "^0.8.0",
"vite-plugin-dts": "^4.4.0",
"vitest": "^2.1.8"
Expand All @@ -100,7 +102,10 @@
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
],
"rules": {
"body-max-line-length": [2, "always", 200]
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint",
Expand Down
Loading

0 comments on commit efcc797

Please sign in to comment.