diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 655b5f2a..e23bc0b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,12 +39,12 @@ jobs: - run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD if: ${{ github.event_name == 'pull_request' }} - run: npm run report:package - - run: mv coverage/lcov-report build || true + - run: mv coverage/lcov-report dist || true - run: cat ./coverage/lcov.info | npx coveralls || true - uses: actions/configure-pages@v4 - uses: actions/upload-pages-artifact@v3 with: - path: build + path: dist - run: npx semantic-release if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} env: diff --git a/.gitignore b/.gitignore index 9b9bcd1a..972340c8 100644 --- a/.gitignore +++ b/.gitignore @@ -76,7 +76,6 @@ local.py # Generated files # ------------------------------------------------- dist -build /var/static/ /var/media/ /docs/_build/ diff --git a/.prettierignore b/.prettierignore index 878d7c95..d1c2e3f7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,3 @@ node_modules coverage/ dist/ *.bundle.js -build/ diff --git a/eslint.config.js b/eslint.config.js index 90824294..c9bed56e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -9,7 +9,6 @@ export default tseslint.config( "coverage", "docs", "dist", - "build", "es", "**/*.min.js", "**/*.bundle.js", diff --git a/package.json b/package.json index 6a9a8ee7..13a65cc2 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "test": "vitest run --coverage.enabled", "test:watch": "vitest watch", "report:coverage": "open coverage/lcov-report/index.html", - "report:package": "npm pack --dry-run --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' | tee build/package.txt", + "report:package": "npm pack --dry-run --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' | tee dist/package.txt", "lint": "eslint . --report-unused-disable-directives --max-warnings 0 && prettier --check '**/?(.)*.{md,css,scss,js,ts,tsx,json,yaml,yml,html}'", "format": "prettier --write '**/?(.)*.{md,css,scss,js,ts,tsx,json,yaml,yml,html}'", "test:ci": "npm run lint -s && npm run build -s && npm run test -- --coverage.thresholds.100", diff --git a/vite.config.ts b/vite.config.ts index 5ab51477..6df87c77 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,7 +13,6 @@ export default defineConfig({ provider: "v8", exclude: [ "./*.{js,mjs,ts}", - "build", "dist", "docs", "pasting",