Skip to content

Commit

Permalink
add build-docs to yarn build
Browse files Browse the repository at this point in the history
fix

fix build
  • Loading branch information
NgocNhi123 committed Jun 30, 2024
1 parent 278946c commit 7f4546d
Show file tree
Hide file tree
Showing 10 changed files with 657 additions and 1,020 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest-dom"],
"ignorePatterns": ["node_modules", "dist", "public", "test/coverage"],
"ignorePatterns": [
"node_modules",
"dist",
"public",
"test/coverage",
"new-docs/storybook-static"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ public
.next
.vercel
/test/coverage
/new-docs/storybook-static
Binary file modified .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions core/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const bundleMain = {
"focus-visible",
"react-dom",
"react-hot-toast",
"react-icons",
"react-icons/go",
"react-icons/ri",
"react-popper",
Expand Down
30 changes: 17 additions & 13 deletions gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,24 @@
"@moai/core": "*"
},
"peerDependencies": {
"@types/node": "^20.14.8",
"@types/react": "^18.3.3",
"node-fetch": "^3.3.2",
"postcss": "^8.4.38",
"react": ">=16",
"react-dom": "^18.3.1",
"react-icons": ">=4",
"rollup": "^4.18.0",
"rollup-plugin-copy": "^3.5.0",
"react-icons": ">=4"
},
"devDependencies": {
"@types/node": "^16.4.8",
"@types/react": "^17.0.15",
"node-fetch": "^2.6.1",
"postcss": "^8.3.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0",
"rollup": "^2.55.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"ts-node": "^10.9.2",
"tslib": "^2.6.3",
"typescript": "^5.5.2"
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-typescript2": "^0.31.0",
"ts-node": "^10.1.0",
"tslib": "^2.3.0",
"typescript": "^4.3.4"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion new-docs/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
"plugin:react-hooks/recommended",
"plugin:storybook/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
ignorePatterns: ["storybook-static", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
Expand Down
3 changes: 2 additions & 1 deletion new-docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ dist-ssr
*.sln
*.sw?

*storybook.log
*storybook.log
storybook-static
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build-core": "cd core && yarn _build",
"build-docs": "cd new-docs && yarn _build",
"build-gallery": "cd gallery && yarn _build",
"build": "yarn build-core && yarn build-gallery",
"build": "yarn build-core && yarn build-gallery && yarn build-docs",
"lint-fix": "eslint --fix . && prettier --write .",
"lint": "eslint --max-warnings=0 . && prettier --check .",
"start-core": "cd core && yarn _start",
Expand Down
Loading

0 comments on commit 7f4546d

Please sign in to comment.