Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed May 17, 2024
1 parent 9800fc7 commit b4b9ad5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1,020 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5
with:
static_site_generator: next

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
8 changes: 1 addition & 7 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const hq = require('alias-hq');
const nextJest = require('next/jest.js');
const nextJest = require('next/jest');

const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
Expand All @@ -13,11 +12,6 @@ const createJestConfig = nextJest({

module.exports = createJestConfig({
testEnvironment: 'jest-environment-jsdom',
moduleNameMapper: {
...hq.get('jest'),
'\\.(gif|ttf|eot|svg|png)$': 'identity-obj-proxy',
'\\.css$': 'identity-obj-proxy',
},
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
modulePathIgnorePatterns: ['<rootDir>/templates/'],
});
20 changes: 8 additions & 12 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
distDir: 'build',
output: 'export',
basePath: '/ts-redux-next',
};

/* Enable bundle analysis. Run `yarn analyze:build` to get report */
/* Enable bundle analysis. Run `pnpm run analyze:build` to get report */
/* eslint-disable-next-line import/no-extraneous-dependencies, @typescript-eslint/no-var-requires */
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer(nextConfig);

// module.exports = nextConfig
/** @type {import('next').NextConfig} */
module.exports = withBundleAnalyzer({
reactStrictMode: true,
swcMinify: true,
distDir: 'build',
cleanDistDir: true,
});
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@types/uniqid": "5.3.4",
"@typescript-eslint/eslint-plugin": "7.9.0",
"@typescript-eslint/parser": "7.9.0",
"alias-hq": "6.2.3",
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
"eslint-config-prettier": "9.1.0",
Expand Down
Loading

0 comments on commit b4b9ad5

Please sign in to comment.