Skip to content

Commit d22be73

Browse files
committed
📦️(monorepo) create Docs package
Create the Docs package in the monorepo. This package will contain all the features, components or utilities that are common across the "frontend" ecosystem.
1 parent 0cf8b9d commit d22be73

File tree

7 files changed

+67
-1
lines changed

7 files changed

+67
-1
lines changed

src/frontend/apps/impress/next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const buildId = crypto.randomBytes(256).toString('hex').slice(0, 8);
88
const nextConfig = {
99
output: 'export',
1010
trailingSlash: true,
11+
transpilePackages: ['package-docs'],
1112
images: {
1213
unoptimized: true,
1314
},

src/frontend/apps/impress/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"lodash": "4.17.21",
4848
"luxon": "3.7.1",
4949
"next": "15.4.6",
50+
"package-docs": "*",
5051
"posthog-js": "1.258.6",
5152
"react": "*",
5253
"react-aria-components": "1.11.0",

src/frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
"APP_IMPRESS": "yarn workspace app-impress",
1414
"APP_E2E": "yarn workspace app-e2e",
1515
"I18N": "yarn workspace packages-i18n",
16+
"COMMON": "yarn workspace package-docs",
1617
"COLLABORATION_SERVER": "yarn workspace server-y-provider",
1718
"app:dev": "yarn APP_IMPRESS run dev",
1819
"app:start": "yarn APP_IMPRESS run start",
1920
"app:build": "yarn APP_IMPRESS run build",
2021
"app:test": "yarn APP_IMPRESS run test",
2122
"ci:build": "yarn APP_IMPRESS run build:ci",
2223
"e2e:test": "yarn APP_E2E run test",
23-
"lint": "yarn APP_IMPRESS run lint && yarn APP_E2E run lint && yarn workspace eslint-config-impress run lint && yarn I18N run lint && yarn COLLABORATION_SERVER run lint",
24+
"lint": "yarn APP_IMPRESS run lint && yarn APP_E2E run lint && yarn workspace eslint-config-impress run lint && yarn I18N run lint && yarn COMMON run lint && yarn COLLABORATION_SERVER run lint",
2425
"i18n:extract": "yarn I18N run extract-translation",
2526
"i18n:deploy": "yarn I18N run format-deploy && yarn APP_IMPRESS prettier",
2627
"i18n:test": "yarn I18N run test",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['impress/next'],
4+
parserOptions: {
5+
sourceType: 'module',
6+
ecmaVersion: 'latest',
7+
tsconfigRootDir: __dirname,
8+
project: ['./tsconfig.json'],
9+
},
10+
rules: {
11+
'@next/next/no-html-link-for-pages': 'off',
12+
},
13+
ignorePatterns: ['node_modules'],
14+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "package-docs",
3+
"version": "3.5.0",
4+
"license": "MIT",
5+
"main": "src/index.ts",
6+
"types": "src/index.ts",
7+
"scripts": {
8+
"lint": "eslint --ext .ts,.tsx src/"
9+
},
10+
"peerDependencies": {
11+
"@blocknote/core": "0.35.0",
12+
"@blocknote/react": "0.35.0",
13+
"react": "19.1.0",
14+
"react-dom": "19.1.0"
15+
},
16+
"devDependencies": {
17+
"eslint-config-impress": "*",
18+
"typescript": "*"
19+
}
20+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './custom-blocks/';
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"noEmit": true,
9+
"esModuleInterop": true,
10+
"module": "esnext",
11+
"moduleResolution": "bundler",
12+
"resolveJsonModule": true,
13+
"isolatedModules": true,
14+
"jsx": "preserve",
15+
"incremental": true,
16+
"baseUrl": ".",
17+
"paths": {
18+
"@/*": ["./src/*"]
19+
}
20+
},
21+
"include": [
22+
"src/**/*"
23+
],
24+
"exclude": [
25+
"node_modules",
26+
"dist"
27+
]
28+
}

0 commit comments

Comments
 (0)