mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-10 04:22:01 +10:00
Compare commits
123 Commits
mantine-te
...
06460f0009
| Author | SHA1 | Date | |
|---|---|---|---|
| 06460f0009 | |||
| b8f9de5c17 | |||
| 5fc5f6a18c | |||
| 48454f0847 | |||
| dcbe29abd6 | |||
| 2a9bf8aa25 | |||
| 0eb5557881 | |||
| 161eea40d5 | |||
| 4bb12a4a28 | |||
| d9831e2cbd | |||
| 1924944ef2 | |||
| de0ee08e02 | |||
| 67e5781db0 | |||
| 801324e17e | |||
| dba951aee5 | |||
| ec459e32a1 | |||
| e41a6d974b | |||
| 7a9918204c | |||
| c6079c7741 | |||
| 596bfa3093 | |||
| 8926c997b9 | |||
| f3ab9bddb7 | |||
| 929c09edd7 | |||
| f5d9bc78ac | |||
| 0c327e8247 | |||
| 18effba097 | |||
| 316114717a | |||
| 835f4a9561 | |||
| fac653befc | |||
| 4298ec1a11 | |||
| 62f53ffef9 | |||
| 00b9d6b643 | |||
| 9738dd865c | |||
| 40f6fc48b9 | |||
| 0240e79c88 | |||
| 3c786b5a33 | |||
| a1af77b733 | |||
| e4d565fca8 | |||
| d8fddcc1d7 | |||
| 7ac48ade90 | |||
| 6e789e167a | |||
| 25c19542ab | |||
| 07643beb99 | |||
| e6e18446cb | |||
| 6c223a0d10 | |||
| 299c4e6215 | |||
| 2c6d23846e | |||
| 6b07d1e156 | |||
| d425e334e9 | |||
| 8ace050a57 | |||
| 30ca5b66a2 | |||
| f97a7f308c | |||
| a01844c8c7 | |||
| 0b3fc460e0 | |||
| 8d2a692c36 | |||
| 48952147df | |||
| 33de4133b7 | |||
| 476585ba0b | |||
| 756bfd1099 | |||
| 3c52527454 | |||
| 2bf3d76329 | |||
| 2d0e9095e9 | |||
| 9008798728 | |||
| d0d24039ae | |||
| da65f3102c | |||
| 9dc776f1b2 | |||
| 31af2255dd | |||
| 59f438dcf7 | |||
| 1daa7ca3a6 | |||
| 7d6ca574f8 | |||
| fe27d99406 | |||
| a8187cb00e | |||
| 0cd7976efd | |||
| b6feb6730e | |||
| 5948b21a22 | |||
| 2dabfc6ca4 | |||
| 763f36480d | |||
| 80772b4044 | |||
| 8f50381361 | |||
| 6f71ff274f | |||
| bf2c8f2863 | |||
| ba896e0c50 | |||
| aa2c27d9b9 | |||
| 406145dd0d | |||
| c89286ee36 | |||
| 33f5de903b | |||
| b5c4c6d84c | |||
| fc2837d53d | |||
| 758f433e62 | |||
| da7b03909f | |||
| 5da3f96e19 | |||
| 06654aa2fb | |||
| 060cc561d9 | |||
| 8cdd3e0c40 | |||
| 3aabc6598c | |||
| 81693bdf35 | |||
| ed4fb3a500 | |||
| 210b9e3655 | |||
| be152406ef | |||
| 2def41a2e3 | |||
| 92580fae10 | |||
| 8e9aa5918d | |||
| 512f7fe8b7 | |||
| d80c8050b8 | |||
| d99e6247c4 | |||
| b94938783b | |||
| ca230d642e | |||
| 75d75126d4 | |||
| df6fcffe80 | |||
| 52b02c8e4b | |||
| e9fcda02af | |||
| d0721178db | |||
| 9547d74226 | |||
| 1b329ae7ce | |||
| 959af2e32b | |||
| 55c4883729 | |||
| 77b979b2e1 | |||
| 414e3c4b5c | |||
| e1d572f6db | |||
| a280211ac8 | |||
| e912744391 | |||
| bcc07a7c59 | |||
| 05411fa287 |
@ -1,3 +0,0 @@
|
|||||||
*.cjs
|
|
||||||
*.mjs
|
|
||||||
*.js
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
extends: ['mantine', 'plugin:@next/next/recommended', 'plugin:jest/recommended'],
|
|
||||||
plugins: ['testing-library', 'jest'],
|
|
||||||
overrides: [
|
|
||||||
{
|
|
||||||
files: ['**/?(*.)+(spec|test).[jt]s?(x)'],
|
|
||||||
extends: ['plugin:testing-library/react'],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
parserOptions: {
|
|
||||||
project: './tsconfig.json',
|
|
||||||
},
|
|
||||||
rules: {
|
|
||||||
'react/react-in-jsx-scope': 'off',
|
|
||||||
'import/extensions': 'off',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
27
.github/workflows/npm_test.yml
vendored
Normal file
27
.github/workflows/npm_test.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: npm test
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test_pull_request:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
cache: 'yarn'
|
||||||
|
cache-dependency-path: '**/yarn.lock'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn
|
||||||
|
- name: Run build
|
||||||
|
run: npm run build
|
||||||
|
- name: Run tests
|
||||||
|
run: npm test
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -129,4 +129,5 @@ dist
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
next-env.d.ts
|
||||||
@ -1 +1,2 @@
|
|||||||
.next
|
.next
|
||||||
|
next-env.d.ts
|
||||||
@ -1 +0,0 @@
|
|||||||
module.exports = require('eslint-config-mantine/.prettierrc.js');
|
|
||||||
35
.prettierrc.mjs
Normal file
35
.prettierrc.mjs
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/** @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig} */
|
||||||
|
const config = {
|
||||||
|
printWidth: 100,
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'es5',
|
||||||
|
plugins: ['@ianvs/prettier-plugin-sort-imports'],
|
||||||
|
importOrder: [
|
||||||
|
'.*styles.css$',
|
||||||
|
'',
|
||||||
|
'dayjs',
|
||||||
|
'^react$',
|
||||||
|
'^next$',
|
||||||
|
'^next/.*$',
|
||||||
|
'<BUILTIN_MODULES>',
|
||||||
|
'<THIRD_PARTY_MODULES>',
|
||||||
|
'^@mantine/(.*)$',
|
||||||
|
'^@mantinex/(.*)$',
|
||||||
|
'^@mantine-tests/(.*)$',
|
||||||
|
'^@docs/(.*)$',
|
||||||
|
'^@/.*$',
|
||||||
|
'^../(?!.*.css$).*$',
|
||||||
|
'^./(?!.*.css$).*$',
|
||||||
|
'\\.css$',
|
||||||
|
],
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: '*.mdx',
|
||||||
|
options: {
|
||||||
|
printWidth: 70,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
@ -1,16 +1,16 @@
|
|||||||
import type { StorybookConfig } from '@storybook/nextjs';
|
import type { StorybookConfig } from '@storybook/nextjs';
|
||||||
|
|
||||||
const config: StorybookConfig = {
|
const config: StorybookConfig = {
|
||||||
|
core: {
|
||||||
|
disableWhatsNewNotifications: true,
|
||||||
|
disableTelemetry: true,
|
||||||
|
enableCrashReports: false,
|
||||||
|
},
|
||||||
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
|
stories: ['../components/**/*.(stories|story).@(js|jsx|ts|tsx)'],
|
||||||
addons: [
|
addons: ['@storybook/addon-themes'],
|
||||||
'@storybook/addon-essentials',
|
|
||||||
'storybook-dark-mode',
|
|
||||||
'@storybook/addon-styling-webpack',
|
|
||||||
],
|
|
||||||
framework: {
|
framework: {
|
||||||
name: '@storybook/nextjs',
|
name: '@storybook/nextjs',
|
||||||
options: {},
|
options: {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@ -1,25 +1,41 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
import React, { useEffect } from 'react';
|
|
||||||
import { addons } from '@storybook/preview-api';
|
import { ColorSchemeScript, MantineProvider } from '@mantine/core';
|
||||||
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
|
|
||||||
import { MantineProvider, useMantineColorScheme } from '@mantine/core';
|
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
const channel = addons.getChannel();
|
export const parameters = {
|
||||||
|
layout: 'fullscreen',
|
||||||
|
options: {
|
||||||
|
showPanel: false,
|
||||||
|
// @ts-expect-error – storybook throws build error for (a: any, b: any)
|
||||||
|
storySort: (a, b) => a.title.localeCompare(b.title, undefined, { numeric: true }),
|
||||||
|
},
|
||||||
|
backgrounds: { disable: true },
|
||||||
|
};
|
||||||
|
|
||||||
function ColorSchemeWrapper({ children }: { children: React.ReactNode }) {
|
export const globalTypes = {
|
||||||
const { setColorScheme } = useMantineColorScheme();
|
theme: {
|
||||||
const handleColorScheme = (value: boolean) => setColorScheme(value ? 'dark' : 'light');
|
name: 'Theme',
|
||||||
|
description: 'Mantine color scheme',
|
||||||
useEffect(() => {
|
defaultValue: 'light',
|
||||||
channel.on(DARK_MODE_EVENT_NAME, handleColorScheme);
|
toolbar: {
|
||||||
return () => channel.off(DARK_MODE_EVENT_NAME, handleColorScheme);
|
icon: 'mirror',
|
||||||
}, [channel]);
|
items: [
|
||||||
|
{ value: 'light', title: 'Light' },
|
||||||
return <>{children}</>;
|
{ value: 'dark', title: 'Dark' },
|
||||||
}
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
export const decorators = [
|
export const decorators = [
|
||||||
(renderStory: any) => <ColorSchemeWrapper>{renderStory()}</ColorSchemeWrapper>,
|
(renderStory: any, context: any) => {
|
||||||
(renderStory: any) => <MantineProvider theme={theme}>{renderStory()}</MantineProvider>,
|
const scheme = (context.globals.theme || 'light') as 'light' | 'dark';
|
||||||
|
return (
|
||||||
|
<MantineProvider theme={theme} forceColorScheme={scheme}>
|
||||||
|
<ColorSchemeScript />
|
||||||
|
{renderStory()}
|
||||||
|
</MantineProvider>
|
||||||
|
);
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
893
.yarn/releases/yarn-4.0.1.cjs
vendored
893
.yarn/releases/yarn-4.0.1.cjs
vendored
File diff suppressed because one or more lines are too long
942
.yarn/releases/yarn-4.11.0.cjs
vendored
Executable file
942
.yarn/releases/yarn-4.11.0.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
@ -1,2 +1,3 @@
|
|||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
yarnPath: .yarn/releases/yarn-4.0.1.cjs
|
|
||||||
|
yarnPath: .yarn/releases/yarn-4.11.0.cjs
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { MantineProvider, ColorSchemeScript } from '@mantine/core';
|
import { ColorSchemeScript, mantineHtmlProps, MantineProvider } from '@mantine/core';
|
||||||
import { theme } from '../theme';
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
@ -10,7 +11,7 @@ export const metadata = {
|
|||||||
|
|
||||||
export default function RootLayout({ children }: { children: any }) {
|
export default function RootLayout({ children }: { children: any }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" {...mantineHtmlProps}>
|
||||||
<head>
|
<head>
|
||||||
<ColorSchemeScript />
|
<ColorSchemeScript />
|
||||||
<link rel="shortcut icon" href="/favicon.svg" />
|
<link rel="shortcut icon" href="/favicon.svg" />
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Welcome } from '../components/Welcome/Welcome';
|
|
||||||
import { ColorSchemeToggle } from '../components/ColorSchemeToggle/ColorSchemeToggle';
|
import { ColorSchemeToggle } from '../components/ColorSchemeToggle/ColorSchemeToggle';
|
||||||
|
import { Welcome } from '../components/Welcome/Welcome';
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
import { render, screen, tests } from '@/test-utils';
|
import { render, screen } from '@/test-utils';
|
||||||
import { Welcome } from './Welcome';
|
import { Welcome } from './Welcome';
|
||||||
|
|
||||||
describe('Welcome component', () => {
|
describe('Welcome component', () => {
|
||||||
tests.itSupportsClassName({ component: Welcome, props: {} });
|
|
||||||
|
|
||||||
it('has correct Next.js theming section link', () => {
|
it('has correct Next.js theming section link', () => {
|
||||||
render(<Welcome />);
|
render(<Welcome />);
|
||||||
expect(screen.getByText('this guide')).toHaveAttribute(
|
expect(screen.getByText('this guide')).toHaveAttribute(
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import { Title, Text, Anchor } from '@mantine/core';
|
import { Anchor, Text, Title } from '@mantine/core';
|
||||||
import classes from './Welcome.module.css';
|
import classes from './Welcome.module.css';
|
||||||
|
|
||||||
export function Welcome(props: React.ComponentPropsWithoutRef<'div'>) {
|
export function Welcome() {
|
||||||
return (
|
return (
|
||||||
<div {...props}>
|
<>
|
||||||
<Title className={classes.title} ta="center" mt={100}>
|
<Title className={classes.title} ta="center" mt={100}>
|
||||||
Welcome to{' '}
|
Welcome to{' '}
|
||||||
<Text inherit variant="gradient" component="span" gradient={{ from: 'pink', to: 'yellow' }}>
|
<Text inherit variant="gradient" component="span" gradient={{ from: 'pink', to: 'yellow' }}>
|
||||||
@ -18,6 +18,6 @@ export function Welcome(props: React.ComponentPropsWithoutRef<'div'>) {
|
|||||||
</Anchor>
|
</Anchor>
|
||||||
. To get started edit page.tsx file.
|
. To get started edit page.tsx file.
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
22
eslint.config.mjs
Normal file
22
eslint.config.mjs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import mantine from 'eslint-config-mantine';
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
|
||||||
|
// @ts-check
|
||||||
|
export default defineConfig(
|
||||||
|
tseslint.configs.recommended,
|
||||||
|
...mantine,
|
||||||
|
{ ignores: ['**/*.{mjs,cjs,js,d.ts,d.mts}', '.next'] },
|
||||||
|
{
|
||||||
|
files: ['**/*.story.tsx'],
|
||||||
|
rules: { 'no-console': 'off' },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: {
|
||||||
|
tsconfigRootDir: process.cwd(),
|
||||||
|
project: ['./tsconfig.json'],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
);
|
||||||
@ -2,6 +2,7 @@ require('@testing-library/jest-dom');
|
|||||||
|
|
||||||
const { getComputedStyle } = window;
|
const { getComputedStyle } = window;
|
||||||
window.getComputedStyle = (elt) => getComputedStyle(elt);
|
window.getComputedStyle = (elt) => getComputedStyle(elt);
|
||||||
|
window.HTMLElement.prototype.scrollIntoView = () => {};
|
||||||
|
|
||||||
Object.defineProperty(window, 'matchMedia', {
|
Object.defineProperty(window, 'matchMedia', {
|
||||||
writable: true,
|
writable: true,
|
||||||
|
|||||||
5
next-env.d.ts
vendored
5
next-env.d.ts
vendored
@ -1,5 +0,0 @@
|
|||||||
/// <reference types="next" />
|
|
||||||
/// <reference types="next/image-types/global" />
|
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
|
||||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
|
||||||
@ -6,9 +6,6 @@ const withBundleAnalyzer = bundleAnalyzer({
|
|||||||
|
|
||||||
export default withBundleAnalyzer({
|
export default withBundleAnalyzer({
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
eslint: {
|
|
||||||
ignoreDuringBuilds: true,
|
|
||||||
},
|
|
||||||
experimental: {
|
experimental: {
|
||||||
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
|
optimizePackageImports: ['@mantine/core', '@mantine/hooks'],
|
||||||
},
|
},
|
||||||
|
|||||||
95
package.json
95
package.json
@ -8,67 +8,60 @@
|
|||||||
"analyze": "ANALYZE=true next build",
|
"analyze": "ANALYZE=true next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"lint": "next lint && npm run lint:stylelint",
|
"lint": "npm run eslint && npm run stylelint",
|
||||||
"lint:stylelint": "stylelint '**/*.css' --cache",
|
"eslint": "eslint .",
|
||||||
|
"stylelint": "stylelint '**/*.css' --cache",
|
||||||
"jest": "jest",
|
"jest": "jest",
|
||||||
"jest:watch": "jest --watch",
|
"jest:watch": "jest --watch",
|
||||||
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
|
"prettier:check": "prettier --check \"**/*.{ts,tsx}\"",
|
||||||
"prettier:write": "prettier --write \"**/*.{ts,tsx}\"",
|
"prettier:write": "prettier --write \"**/*.{ts,tsx}\"",
|
||||||
"test": "npm run prettier:check && npm run lint && npm run typecheck && npm run jest",
|
"test": "npx next typegen && npm run prettier:check && npm run lint && npm run typecheck && npm run jest",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"storybook:build": "storybook build"
|
"storybook:build": "storybook build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mantine/core": "7.2.2",
|
"@mantine/core": "8.3.7",
|
||||||
"@mantine/hooks": "7.2.2",
|
"@mantine/hooks": "8.3.7",
|
||||||
"@next/bundle-analyzer": "^14.0.1",
|
"@next/bundle-analyzer": "^16.0.0",
|
||||||
"@tabler/icons-react": "^2.40.0",
|
"@tabler/icons-react": "^3.35.0",
|
||||||
"next": "14.0.1",
|
"next": "16.0.1",
|
||||||
"react": "18.2.0",
|
"react": "19.2.0",
|
||||||
"react-dom": "18.2.0"
|
"react-dom": "19.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.23.2",
|
"@babel/core": "^7.28.4",
|
||||||
"@mantine-tests/core": "^1.0.1",
|
"@eslint/eslintrc": "^3",
|
||||||
"@next/eslint-plugin-next": "^14.0.1",
|
"@eslint/js": "^9.37.0",
|
||||||
"@storybook/addon-essentials": "^7.5.2",
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
||||||
"@storybook/addon-styling-webpack": "^0.0.5",
|
"@storybook/addon-themes": "^10.0.0",
|
||||||
"@storybook/blocks": "^7.5.2",
|
"@storybook/nextjs": "^10.0.0",
|
||||||
"@storybook/nextjs": "^7.5.2",
|
"@storybook/react": "^10.0.0",
|
||||||
"@storybook/react": "^7.5.2",
|
"@testing-library/dom": "^10.4.1",
|
||||||
"@testing-library/dom": "^9.3.3",
|
"@testing-library/jest-dom": "^6.9.1",
|
||||||
"@testing-library/jest-dom": "^6.1.4",
|
"@testing-library/react": "^16.3.0",
|
||||||
"@testing-library/react": "^14.0.0",
|
"@testing-library/user-event": "^14.6.1",
|
||||||
"@testing-library/user-event": "^14.5.1",
|
"@types/eslint-plugin-jsx-a11y": "^6",
|
||||||
"@types/jest": "^29.5.7",
|
"@types/jest": "^30.0.0",
|
||||||
"@types/node": "^20.8.10",
|
"@types/node": "^24.7.1",
|
||||||
"@types/react": "18.2.34",
|
"@types/react": "19.2.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.9.1",
|
"babel-loader": "^10.0.0",
|
||||||
"@typescript-eslint/parser": "^6.9.1",
|
"eslint": "^9.37.0",
|
||||||
"babel-loader": "^9.1.3",
|
"eslint-config-mantine": "^4.0.3",
|
||||||
"eslint": "^8.53.0",
|
"eslint-config-next": "16.0.1",
|
||||||
"eslint-config-airbnb": "19.0.4",
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||||
"eslint-config-airbnb-typescript": "^17.1.0",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-config-mantine": "3.0.0",
|
"jest": "^30.2.0",
|
||||||
"eslint-plugin-import": "^2.29.0",
|
"jest-environment-jsdom": "^30.2.0",
|
||||||
"eslint-plugin-jest": "^27.6.0",
|
"postcss": "^8.5.6",
|
||||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
"postcss-preset-mantine": "1.18.0",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
|
||||||
"eslint-plugin-testing-library": "^6.1.0",
|
|
||||||
"jest": "^29.7.0",
|
|
||||||
"jest-axe": "^8.0.0",
|
|
||||||
"jest-environment-jsdom": "^29.7.0",
|
|
||||||
"postcss": "^8.4.31",
|
|
||||||
"postcss-preset-mantine": "1.11.0",
|
|
||||||
"postcss-simple-vars": "^7.0.1",
|
"postcss-simple-vars": "^7.0.1",
|
||||||
"prettier": "^3.0.3",
|
"prettier": "^3.6.2",
|
||||||
"storybook": "^7.5.2",
|
"storybook": "^10.0.0",
|
||||||
"storybook-dark-mode": "^3.0.1",
|
"stylelint": "^16.25.0",
|
||||||
"stylelint": "^15.11.0",
|
"stylelint-config-standard-scss": "^16.0.0",
|
||||||
"stylelint-config-standard-scss": "^11.1.0",
|
"ts-jest": "^29.4.4",
|
||||||
"ts-jest": "^29.1.1",
|
"typescript": "5.9.3",
|
||||||
"typescript": "5.2.2"
|
"typescript-eslint": "^8.46.0"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.0.1"
|
"packageManager": "yarn@4.11.0"
|
||||||
}
|
}
|
||||||
|
|||||||
13
renovate.json
Normal file
13
renovate.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"schedule": ["before 5am on sunday"],
|
||||||
|
"groupName": "all dependencies",
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchPackagePatterns": ["*"],
|
||||||
|
"groupName": "all dependencies"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"prHourlyLimit": 0,
|
||||||
|
"prConcurrentLimit": 0
|
||||||
|
}
|
||||||
@ -1,6 +1,5 @@
|
|||||||
import userEvent from '@testing-library/user-event';
|
import userEvent from '@testing-library/user-event';
|
||||||
|
|
||||||
export { tests } from '@mantine-tests/core';
|
|
||||||
export * from '@testing-library/react';
|
export * from '@testing-library/react';
|
||||||
export { render } from './render';
|
export { render } from './render';
|
||||||
export { userEvent };
|
export { userEvent };
|
||||||
|
|||||||
@ -5,7 +5,9 @@ import { theme } from '../theme';
|
|||||||
export function render(ui: React.ReactNode) {
|
export function render(ui: React.ReactNode) {
|
||||||
return testingLibraryRender(<>{ui}</>, {
|
return testingLibraryRender(<>{ui}</>, {
|
||||||
wrapper: ({ children }: { children: React.ReactNode }) => (
|
wrapper: ({ children }: { children: React.ReactNode }) => (
|
||||||
<MantineProvider theme={theme}>{children}</MantineProvider>
|
<MantineProvider theme={theme} env="test">
|
||||||
|
{children}
|
||||||
|
</MantineProvider>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,16 +10,28 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "react-jsx",
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"]
|
"@/*": ["./*"]
|
||||||
},
|
},
|
||||||
"plugins": [{ "name": "next" }]
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
"include": [
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
".storybook/main.ts",
|
||||||
|
".storybook/preview.tsx",
|
||||||
|
"next-env.d.ts",
|
||||||
|
".next/types/**/*.ts",
|
||||||
|
".next/dev/types/**/*.ts"
|
||||||
|
],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user