mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-10 04:22:01 +10:00
Update all packages to the latest version
This commit is contained in:
@ -1 +1,3 @@
|
|||||||
|
*.cjs
|
||||||
|
*.mjs
|
||||||
*.js
|
*.js
|
||||||
@ -5,7 +5,7 @@ const createJestConfig = nextJest({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const customJestConfig = {
|
const customJestConfig = {
|
||||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
setupFilesAfterEnv: ['<rootDir>/jest.setup.cjs'],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^@/components/(.*)$': '<rootDir>/components/$1',
|
'^@/components/(.*)$': '<rootDir>/components/$1',
|
||||||
'^@/pages/(.*)$': '<rootDir>/pages/$1',
|
'^@/pages/(.*)$': '<rootDir>/pages/$1',
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import '@testing-library/jest-dom/extend-expect';
|
import '@testing-library/jest-dom';
|
||||||
|
|
||||||
const { getComputedStyle } = window;
|
const { getComputedStyle } = window;
|
||||||
window.getComputedStyle = (elt) => getComputedStyle(elt);
|
window.getComputedStyle = (elt) => getComputedStyle(elt);
|
||||||
@ -1,8 +1,10 @@
|
|||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
import bundleAnalyzer from '@next/bundle-analyzer';
|
||||||
|
|
||||||
|
const withBundleAnalyzer = bundleAnalyzer({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = withBundleAnalyzer({
|
export default withBundleAnalyzer({
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
eslint: {
|
eslint: {
|
||||||
ignoreDuringBuilds: true,
|
ignoreDuringBuilds: true,
|
||||||
56
package.json
56
package.json
@ -20,49 +20,49 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mantine/core": "7.1.7",
|
"@mantine/core": "7.1.7",
|
||||||
"@mantine/hooks": "7.1.7",
|
"@mantine/hooks": "7.1.7",
|
||||||
"@next/bundle-analyzer": "^13.5.3",
|
"@next/bundle-analyzer": "^14.0.1",
|
||||||
"@tabler/icons-react": "^2.20.0",
|
"@tabler/icons-react": "^2.40.0",
|
||||||
"next": "13.5.3",
|
"next": "14.0.1",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0"
|
"react-dom": "18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.22.1",
|
"@babel/core": "^7.23.2",
|
||||||
"@next/eslint-plugin-next": "^13.5.3",
|
"@next/eslint-plugin-next": "^14.0.1",
|
||||||
"@storybook/addon-essentials": "^7.5.2",
|
"@storybook/addon-essentials": "^7.5.2",
|
||||||
"@storybook/addon-styling-webpack": "^0.0.5",
|
"@storybook/addon-styling-webpack": "^0.0.5",
|
||||||
"@storybook/blocks": "^7.5.2",
|
"@storybook/blocks": "^7.5.2",
|
||||||
"@storybook/nextjs": "^7.5.2",
|
"@storybook/nextjs": "^7.5.2",
|
||||||
"@storybook/react": "^7.5.2",
|
"@storybook/react": "^7.5.2",
|
||||||
"@testing-library/dom": "^9.3.0",
|
"@testing-library/dom": "^9.3.3",
|
||||||
"@testing-library/jest-dom": "^5.16.5",
|
"@testing-library/jest-dom": "^6.1.4",
|
||||||
"@testing-library/react": "^14.0.0",
|
"@testing-library/react": "^14.0.0",
|
||||||
"@testing-library/user-event": "^14.4.3",
|
"@testing-library/user-event": "^14.5.1",
|
||||||
"@types/jest": "^29.5.1",
|
"@types/jest": "^29.5.7",
|
||||||
"@types/node": "^20.2.5",
|
"@types/node": "^20.8.10",
|
||||||
"@types/react": "18.2.7",
|
"@types/react": "18.2.34",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
||||||
"@typescript-eslint/parser": "^5.59.7",
|
"@typescript-eslint/parser": "^6.9.1",
|
||||||
"babel-loader": "^9.1.2",
|
"babel-loader": "^9.1.3",
|
||||||
"eslint": "^8.41.0",
|
"eslint": "^8.53.0",
|
||||||
"eslint-config-airbnb": "19.0.4",
|
"eslint-config-airbnb": "19.0.4",
|
||||||
"eslint-config-airbnb-typescript": "^17.0.0",
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
||||||
"eslint-config-mantine": "2.0.0",
|
"eslint-config-mantine": "3.0.0",
|
||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.29.0",
|
||||||
"eslint-plugin-jest": "^27.2.1",
|
"eslint-plugin-jest": "^27.6.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||||
"eslint-plugin-react": "^7.32.2",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-testing-library": "^5.11.0",
|
"eslint-plugin-testing-library": "^6.1.0",
|
||||||
"jest": "^29.5.0",
|
"jest": "^29.7.0",
|
||||||
"jest-environment-jsdom": "^29.5.0",
|
"jest-environment-jsdom": "^29.7.0",
|
||||||
"postcss": "^8.4.23",
|
"postcss": "^8.4.31",
|
||||||
"postcss-preset-mantine": "1.9.0",
|
"postcss-preset-mantine": "1.9.1",
|
||||||
"postcss-simple-vars": "^7.0.1",
|
"postcss-simple-vars": "^7.0.1",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^3.0.3",
|
||||||
"storybook": "^7.5.2",
|
"storybook": "^7.5.2",
|
||||||
"storybook-dark-mode": "^3.0.1",
|
"storybook-dark-mode": "^3.0.1",
|
||||||
"ts-jest": "^29.1.0",
|
"ts-jest": "^29.1.1",
|
||||||
"typescript": "5.2.2"
|
"typescript": "5.2.2"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.0.1"
|
"packageManager": "yarn@4.0.1"
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"types": ["node", "jest", "@testing-library/jest-dom"],
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"lib": [
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
@ -19,23 +16,10 @@
|
|||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": [
|
"@/*": ["./*"]
|
||||||
"./*"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [{ "name": "next" }]
|
||||||
{
|
|
||||||
"name": "next"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
"next-env.d.ts",
|
"exclude": ["node_modules"]
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx",
|
|
||||||
".next/types/**/*.ts"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user