Skip to content

Commit

Permalink
chore(deps): upgrade project tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jul 21, 2024
1 parent 34f2f3f commit 31cb697
Show file tree
Hide file tree
Showing 58 changed files with 10,799 additions and 41,647 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
SKIP_PREFLIGHT_CHECK=true
17 changes: 16 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
module.exports = {
extends: "react-app",
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
}
3 changes: 0 additions & 3 deletions .githooks/pre-push

This file was deleted.

112 changes: 0 additions & 112 deletions .github/renovate.json5

This file was deleted.

24 changes: 9 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main
- "renovate/**"
pull_request:
jobs:
test:
Expand Down Expand Up @@ -39,18 +38,13 @@ jobs:
- run: DRAFTJS_VERSION=0.10 npm run test
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
if: ${{ github.event_name == 'pull_request' }}
- run: npx danger ci --verbose
if: ${{ github.event_name == 'pull_request' }}
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run report:package
- run: mv coverage/lcov-report build || true
- run: cat ./coverage/lcov.info | npx coveralls || true
- uses: actions/upload-artifact@v3
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
name: build
path: build
retention-days: 1
- run: npx semantic-release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
env:
Expand All @@ -59,14 +53,14 @@ jobs:
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
clean: true
- uses: actions/deploy-pages@v4
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ pids
*.pyc
*.pyo
*.pot
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# -------------------------------------------------
# Instrumentation and tooling
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
21
104 changes: 0 additions & 104 deletions dangerfile.js

This file was deleted.

20 changes: 13 additions & 7 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@
content="Filter Draft.js content to preserve only the formatting you allow. Built for Draftail and Wagtail"
/>

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="shortcut icon" href="/draftjs-filters/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="%PUBLIC_URL%/apple-touch-icon.png"
href="/draftjs-filters/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="%PUBLIC_URL%/favicon-32x32.png"
href="/draftjs-filters/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="%PUBLIC_URL%/favicon-16x16.png"
href="/draftjs-filters/favicon-16x16.png"
/>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="/draftjs-filters/manifest.json" />
<link
rel="mask-icon"
href="%PUBLIC_URL%/safari-pinned-tab.svg"
href="/draftjs-filters/safari-pinned-tab.svg"
color="#007d7e"
/>
<meta name="theme-color" content="#ffffff" />
Expand Down Expand Up @@ -103,7 +103,7 @@

<div class="page-wrapper">
<header class="page-header">
<a href="%PUBLIC_URL%" class="u-block"
<a href="" class="u-block"
><h1 class="page-title">Draft.js filters</h1></a
>
<p class="page-description">
Expand Down Expand Up @@ -158,5 +158,11 @@
</p>
</footer>
</div>
<script>
if (global === undefined) {
var global = window
}
</script>
<script type="module" src="src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit 31cb697

Please sign in to comment.