Skip to content

Commit 49f2077

Browse files
committed
feat: adding nextra
1 parent b2b7932 commit 49f2077

29 files changed

Lines changed: 4936 additions & 1400 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ packages/.DS_Store
1414
packages/cli/src/lib/setup-local-registry/verdaccio-storage/.verdaccio-db.json
1515
packages/cli/src/lib/setup-local-registry/verdaccio-storage/@adenta/cli/cli-0.0.1.tgz
1616
packages/cli/.DS_Store
17+
18+
# Next.js
19+
.next
20+
out
21+
22+
# Generated Docusaurus files
23+
.docusaurus/
24+
.cache-loader/

.prettierignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
# Add files here to ignore them from prettier formatting
2-
/dist
3-
/coverage
4-
/.nx/cache
5-
/.nx/workspace-data
1+
.prettierignore
2+
.docusaurus/

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["ms-playwright.playwright"]
2+
"recommendations": [
3+
"ms-playwright.playwright",
4+
"esbenp.prettier-vscode",
5+
"firsttris.vscode-jest-runner"
6+
]
37
}

jest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { getJestProjectsAsync } from '@nx/jest';
2+
3+
export default async () => ({
4+
projects: await getJestProjectsAsync(),
5+
});

jest.preset.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const nxPreset = require('@nx/jest/preset').default;
2+
3+
module.exports = { ...nxPreset };

nx.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@
6363
"options": {
6464
"targetName": "e2e"
6565
}
66+
},
67+
{
68+
"plugin": "@nx/next/plugin",
69+
"options": {
70+
"startTargetName": "start",
71+
"buildTargetName": "build",
72+
"devTargetName": "dev",
73+
"serveStaticTargetName": "serve-static"
74+
}
75+
},
76+
{
77+
"plugin": "@nx/jest/plugin",
78+
"options": {
79+
"targetName": "test"
80+
}
6681
}
6782
],
6883
"release": {
@@ -85,6 +100,12 @@
85100
"style": "tailwind",
86101
"linter": "eslint"
87102
}
103+
},
104+
"@nx/next": {
105+
"application": {
106+
"style": "tailwind",
107+
"linter": "eslint"
108+
}
88109
}
89110
},
90111
"namedInputs": {

package.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@
1919
"url": "https://github.com/codewreaker/adenta/issues"
2020
},
2121
"homepage": "https://github.com/codewreaker/adenta#readme",
22-
"workspaces": [
23-
"packages/core",
24-
"packages/ui",
25-
"packages/cli"
26-
],
2722
"devDependencies": {
23+
"@docusaurus/module-type-aliases": "3.4.0",
24+
"@docusaurus/tsconfig": "3.4.0",
25+
"@docusaurus/types": "3.4.0",
26+
"@eslint/compat": "^1.1.1",
2827
"@eslint/js": "^9.8.0",
2928
"@nx/devkit": "20.0.6",
3029
"@nx/eslint": "20.0.6",
3130
"@nx/eslint-plugin": "20.0.6",
31+
"@nx/jest": "20.0.6",
32+
"@nx/next": "20.0.6",
3233
"@nx/playwright": "20.0.6",
3334
"@nx/react": "^20.0.6",
3435
"@nx/storybook": "^20.0.6",
@@ -38,47 +39,58 @@
3839
"@storybook/addon-essentials": "8.3.6",
3940
"@storybook/addon-interactions": "^8.2.8",
4041
"@storybook/core-server": "8.3.6",
41-
"@storybook/jest": "^0.2.3",
4242
"@storybook/react-vite": "8.3.6",
4343
"@storybook/test-runner": "^0.13.0",
44-
"@storybook/testing-library": "^0.2.2",
4544
"@swc-node/register": "~1.9.1",
4645
"@swc/cli": "~0.3.12",
4746
"@swc/core": "~1.5.7",
4847
"@swc/helpers": "~0.5.11",
4948
"@testing-library/react": "15.0.6",
49+
"@types/jest": "^29.5.12",
5050
"@types/node": "18.16.9",
5151
"@types/react": "18.3.1",
5252
"@types/react-dom": "18.3.0",
5353
"@vitejs/plugin-react-swc": "^3.5.0",
5454
"@vitest/coverage-v8": "^1.0.4",
5555
"@vitest/ui": "^1.3.1",
5656
"autoprefixer": "10.4.13",
57+
"babel-jest": "^29.7.0",
5758
"eslint": "^9.8.0",
59+
"eslint-config-next": "14.2.3",
5860
"eslint-config-prettier": "^9.0.0",
5961
"eslint-plugin-import": "2.31.0",
6062
"eslint-plugin-jsx-a11y": "6.10.1",
6163
"eslint-plugin-playwright": "^1.6.2",
6264
"eslint-plugin-react": "7.35.0",
6365
"eslint-plugin-react-hooks": "5.0.0",
66+
"jest": "^29.7.0",
67+
"jest-environment-jsdom": "^29.7.0",
6468
"jsdom": "~22.1.0",
6569
"nx": "20.0.6",
6670
"postcss": "8.4.38",
6771
"prettier": "^2.6.2",
6872
"storybook": "8.3.6",
6973
"tailwindcss": "3.4.3",
74+
"ts-jest": "^29.1.0",
7075
"ts-node": "10.9.1",
7176
"tslib": "^2.3.0",
7277
"typescript": "~5.5.2",
7378
"typescript-eslint": "^8.0.0",
7479
"verdaccio": "^5.0.4",
7580
"vite": "^5.0.0",
76-
"vitest": "^1.3.1"
77-
},
78-
"dependencies": {
81+
"vitest": "^1.3.1",
82+
"@mdx-js/react": "^3.0.0",
7983
"@nx/js": "^20.0.6",
84+
"clsx": "^2.0.0",
85+
"next": "14.2.3",
86+
"nextra": "^3.1.1",
87+
"nextra-theme-docs": "^3.1.1",
88+
"prism-react-renderer": "^2.3.0",
8089
"react": "18.3.1",
8190
"react-dom": "18.3.1"
91+
},
92+
"dependencies": {
93+
8294
},
8395
"nx": {
8496
"includedScripts": []

packages/docs-e2e/eslint.config.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/docs-e2e/playwright.config.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

packages/docs-e2e/project.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)