Skip to content

Commit

Permalink
Build new packages on CodeSandbox CI
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Jan 26, 2024
1 parent 2545ba3 commit 9a3b2e4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"packages/mui-styles",
"packages/mui-system",
"packages/mui-types",
"packages/mui-utils"
"packages/mui-utils",

"packages/docs-utilities",
"packages/proptypes-builder",
"packages/typescript-to-proptypes"
],
"publishDirectory": {
"@mui/base": "packages/mui-base/build",
Expand All @@ -36,7 +40,10 @@
"@mui/styles": "packages/mui-styles/build",
"@mui/system": "packages/mui-system/build",
"@mui/types": "packages/mui-types/build",
"@mui/utils": "packages/mui-utils/build"
"@mui/utils": "packages/mui-utils/build",
"@mui-internal/docs-utils": "packages/docs-utilities/build",
"@mui-internal/proptypes-builder": "packages/proptypes-builder/build",
"@mui-internal/typescript-to-proptypes": "packages/typescript-to-proptypes/build"
},
"sandboxes": [
"material-ui-issue-latest-s2dsx",
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@
"build": "lerna run --scope \"@mui/*\" build",
"build:zero": "lerna run --scope \"@mui/zero-*\" build",
"clean:zero": "pnpm --filter \"@mui/zero-*\" clean",
"build:codesandbox": "NODE_OPTIONS=\"–max_old_space_size=4096\" lerna run --concurrency 8 --scope \"@mui/*\" build",
"build:codesandbox": "NODE_OPTIONS=\"–max_old_space_size=4096\" lerna run --concurrency 8 --scope \"@mui/*\" --scope \"@mui-internal/*\" --no-private build",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private --force-publish=@mui/core-downloads-tracker",
"release:build": "lerna run --concurrency 8 --scope \"@mui/*\" build --skip-nx-cache",
"release:build": "lerna run --concurrency 8 --scope \"@mui/*\" --scope \"@mui-internal/*\" --no-private build --skip-nx-cache",
"release:changelog": "node scripts/releaseChangelog.mjs",
"release:publish": "pnpm publish --recursive --tag latest",
"release:publish:dry-run": "pnpm publish --recursive --tag latest --registry=\"http://localhost:4873/\"",
"release:tag": "node scripts/releaseTag.mjs",
"docs:api": "rimraf --glob ./docs/pages/**/api-docs ./docs/pages/**/api && pnpm docs:api:build",
"docs:api:build": "tsx ./scripts/buidApiDocs/index.ts",
"docs:api": "nx run scripts:docs:api",
"docs:build": "pnpm --filter docs build",
"docs:build-sw": "pnpm --filter docs build-sw",
"docs:build-color-preview": "babel-node scripts/buildColorTypes",
Expand All @@ -33,7 +32,7 @@
"docs:link-check": "pnpm --filter docs link-check",
"docs:typescript": "pnpm docs:typescript:formatted --watch",
"docs:typescript:check": "pnpm --filter docs typescript",
"docs:typescript:formatted": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" ./docs/scripts/formattedTSDemos",
"docs:typescript:formatted": "nx run scripts:docs:typescript:formatted",
"docs:mdicons:synonyms": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js,.mjs\" ./docs/scripts/updateIconSynonyms && pnpm prettier",
"extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 8 build:modern",
"rsc:build": "tsx ./packages/rsc-builder/buildRsc.ts",
Expand Down
22 changes: 22 additions & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,32 @@
"version": "1.0.0",
"private": true,
"scripts": {
"docs:api": "rimraf --glob ../docs/pages/**/api-docs ../docs/pages/**/api && cd .. && tsx ./scripts/buidApiDocs/index.ts",
"docs:typescript:formatted": "cd .. && cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" ./docs/scripts/formattedTSDemos",
"proptypes": "tsx ./generateProptypes.ts"
},
"nx": {
"targets": {
"docs:api": {
"dependsOn": [
{
"projects": [
"@mui-internal/docs-utils"
],
"target": "build"
}
]
},
"docs:typescript:formatted": {
"dependsOn": [
{
"projects": [
"@mui-internal/typescript-to-proptypes"
],
"target": "build"
}
]
},
"proptypes": {
"dependsOn": [
{
Expand Down

0 comments on commit 9a3b2e4

Please sign in to comment.