Skip to content

Commit

Permalink
[core] Remove @pigment-css/* packages (#41965)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Apr 23, 2024
1 parent bfeb493 commit 2d02b94
Show file tree
Hide file tree
Showing 158 changed files with 250 additions and 8,289 deletions.
6 changes: 0 additions & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
/packages/mui-icons-material/src/*.js
/packages/mui-icons-material/templateSvgIcon.js
/packages/mui-utils/macros/__fixtures__/
/packages/pigment-css-react/utils/
/packages/pigment-css-react/processors/
/packages/pigment-css-react/exports/
/packages/pigment-css-react/theme/
/packages/pigment-css-react/tests/**/fixtures
/packages/pigment-css-nextjs-plugin/loader.js
# Ignore fixtures
/packages-internal/scripts/typescript-to-proptypes/test/*/*
/test/bundling/fixtures/**/*.fixture.js
Expand Down
2 changes: 1 addition & 1 deletion apps/local-ui-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"@pigment-css/react": "file:../../packages/pigment-css-react"
"@pigment-css/react": "^0.0.9"
}
}
7 changes: 1 addition & 6 deletions apps/local-ui-lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "../../tsconfig.json",
"references": [
{
"path": "../../packages/pigment-css-react"
}
]
"extends": "../../tsconfig.json"
}
2 changes: 1 addition & 1 deletion apps/pigment-css-next-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is a Pigment CSS and [Next.js](https://nextjs.org/) project bootstrapped w
First, build all the packages in the workspace at least once. Run

```bash
pnpm build:zero
pnpm build
```

Then start the Next.js development server:
Expand Down
4 changes: 2 additions & 2 deletions apps/pigment-css-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean": "rimraf .next"
},
"dependencies": {
"@pigment-css/react": "workspace:^",
"@pigment-css/react": "^0.0.9",
"@mui/utils": "workspace:^",
"@mui/base": "workspace:^",
"@mui/lab": "workspace:^",
Expand All @@ -24,7 +24,7 @@
"next": "latest"
},
"devDependencies": {
"@pigment-css/nextjs-plugin": "workspace:^",
"@pigment-css/nextjs-plugin": "^0.0.9",
"@types/node": "^20.5.7",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
Expand Down
3 changes: 0 additions & 3 deletions apps/pigment-css-next-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
},
{
"path": "../../packages/mui-material/tsconfig.build.json"
},
{
"path": "../../packages/pigment-css-react/tsconfig.json"
}
]
}
7 changes: 1 addition & 6 deletions apps/pigment-css-vite-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ This project is not part of the workspace yet.

## How to run

You can either run `pnpm build` to build all packages or else build the two most important ones:

1. `@pigment-css/react`
2. `@pigment-css/vite-plugin`

Make sure to run `pnpm release:build` at least once because the project uses the `@mui/material` and `@mui/system` packages. On subsequent runs, you can build only the above packages using:
First, build all the packages in the workspace at least once. Run

```bash
pnpm build
Expand Down
4 changes: 2 additions & 2 deletions apps/pigment-css-vite-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "vite build"
},
"dependencies": {
"@pigment-css/react": "workspace:^",
"@pigment-css/react": "^0.0.9",
"@mui/utils": "workspace:^",
"@mui/base": "workspace:^",
"@mui/lab": "workspace:^",
Expand All @@ -27,7 +27,7 @@
"devDependencies": {
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@pigment-css/vite-plugin": "workspace:^",
"@pigment-css/vite-plugin": "^0.0.9",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
3 changes: 0 additions & 3 deletions apps/pigment-css-vite-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
},
{
"path": "../../packages/mui-material/tsconfig.build.json"
},
{
"path": "../../packages/pigment-css-react/tsconfig.json"
}
]
}
1 change: 0 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module.exports = function getBabelConfig(api) {
'@mui/base': resolveAliasPath('./packages/mui-base/src'),
'@mui/utils': resolveAliasPath('./packages/mui-utils/src'),
'@mui/joy': resolveAliasPath('./packages/mui-joy/src'),
'@pigment-css/react': resolveAliasPath('./packages/pigment-css-react/src'),
'@mui/internal-docs-utils': resolveAliasPath('./packages-internal/docs-utils/src'),
docs: resolveAliasPath('./docs'),
test: resolveAliasPath('./test'),
Expand Down
4 changes: 2 additions & 2 deletions examples/pigment-css-nextjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"post-update": "echo \"codesandbox preview only, need an update\" && pnpm update --latest"
},
"dependencies": {
"@pigment-css/react": "next",
"@pigment-css/react": "latest",
"react": "latest",
"react-dom": "latest",
"next": "latest"
},
"devDependencies": {
"@pigment-css/nextjs-plugin": "next",
"@pigment-css/nextjs-plugin": "latest",
"@types/node": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
Expand Down
4 changes: 2 additions & 2 deletions examples/pigment-css-remix-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@pigment-css/react": "next",
"@pigment-css/react": "latest",
"@remix-run/node": "latest",
"@remix-run/react": "latest",
"@remix-run/serve": "latest",
Expand All @@ -19,7 +19,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@pigment-css/vite-plugin": "next",
"@pigment-css/vite-plugin": "latest",
"@remix-run/dev": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
Expand Down
4 changes: 2 additions & 2 deletions examples/pigment-css-vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"preview": "vite preview"
},
"dependencies": {
"@pigment-css/react": "next",
"@pigment-css/react": "latest",
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@pigment-css/vite-plugin": "next",
"@pigment-css/vite-plugin": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
"@vitejs/plugin-react": "latest",
Expand Down
20 changes: 5 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"build": "lerna run build --ignore docs",
"build:public": "lerna run --no-private build",
"build:ci": "lerna run build --ignore docs --concurrency 8 --skip-nx-cache",
"build:zero": "lerna run --scope \"@pigmentcss/*\" build",
"clean:zero": "pnpm --filter \"@pigmentcss/*\" clean",
"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 --no-private build --skip-nx-cache",
Expand Down Expand Up @@ -55,9 +53,8 @@
"test": "node scripts/test.mjs",
"tc": "node test/cli.js",
"test:extended": "pnpm eslint && pnpm typescript && pnpm test:coverage",
"test:pigment-css-react:ci": "pnpm nx run @pigment-css/react:test:ci",
"test:coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=text mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' --exclude 'packages/pigment-css-react/**/*.test.{js,ts,tsx}' && pnpm test:pigment-css-react",
"test:coverage:ci": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' --exclude 'packages/pigment-css-react/**/*.test.{js,ts,tsx}' && pnpm test:pigment-css-react:ci",
"test:coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=text mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
"test:coverage:ci": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
"test:coverage:html": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=html mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
"test:e2e": "cross-env NODE_ENV=production pnpm test:e2e:build && concurrently --success first --kill-others \"pnpm test:e2e:run\" \"pnpm test:e2e:server\"",
"test:e2e:build": "webpack --config test/e2e/webpack.config.js",
Expand All @@ -74,13 +71,12 @@
"test:regressions:run": "mocha --config test/regressions/.mocharc.js --delay 'test/regressions/**/*.test.js'",
"test:regressions:server": "serve test/regressions -p 5001",
"test:umd": "node packages/mui-material/test/umd/run.js",
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}' --exclude 'packages/pigment-css-react/**/*.test.{js,ts,tsx}' && pnpm test:pigment-css-react:ci",
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'",
"test:argos": "node ./scripts/pushArgos.mjs",
"typescript": "lerna run --no-bail --parallel typescript",
"typescript:ci": "lerna run --concurrency 3 --no-bail --no-sort typescript",
"validate-declarations": "tsx scripts/validateTypescriptDeclarations.mts",
"generate-codeowners": "node scripts/generateCodeowners.mjs",
"watch:zero": "nx run-many -t watch --projects=\"@pigmentcss/*\" --parallel"
"generate-codeowners": "node scripts/generateCodeowners.mjs"
},
"dependencies": {
"@googleapis/sheets": "^5.0.5",
Expand Down Expand Up @@ -115,7 +111,7 @@
"@mui/utils": "workspace:^",
"@next/eslint-plugin-next": "^14.2.2",
"@octokit/rest": "^20.1.0",
"@pigment-css/react": "workspace:^",
"@pigment-css/react": "^0.0.9",
"@playwright/test": "1.43.1",
"@types/enzyme": "^3.10.18",
"@types/fs-extra": "^11.0.4",
Expand Down Expand Up @@ -184,7 +180,6 @@
"stylelint-config-standard": "^34.0.0",
"stylelint-processor-styled-components": "^1.10.0",
"terser-webpack-plugin": "^5.3.10",
"tsup": "^8.0.2",
"tsx": "^4.7.2",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
Expand Down Expand Up @@ -226,10 +221,5 @@
],
"sourceMap": false,
"instrument": false
},
"pnpm": {
"patchedDependencies": {
"@wyw-in-js/transform@0.5.0": "patches/@wyw-in-js__transform@0.5.0.patch"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@
"@mui/types": ["./mui-types"],
"@mui/utils": ["./mui-utils/src"],
"@mui/utils/*": ["./mui-utils/src/*"],
"@pigment-css/nextjs-plugin": ["./pigment-css-nextjs-plugin/src"],
"@pigment-css/nextjs-plugin/*": ["./pigment-css-nextjs-plugin/src/*"],
"@pigment-css/react": ["./pigment-css-react/src"],
"@pigment-css/react/*": ["./pigment-css-react/src/*"],
"@pigment-css/vite-plugin": ["./pigment-css-vite-plugin/src"],
"@pigment-css/vite-plugin/*": ["./pigment-css-vite-plugin/src/*"],
"@mui/internal-scripts/typescript-to-proptypes": [
"../packages-internal/scripts/typescript-to-proptypes/src"
]
Expand Down
5 changes: 0 additions & 5 deletions packages/pigment-css-nextjs-plugin/.eslintrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/pigment-css-nextjs-plugin/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/pigment-css-nextjs-plugin/loader.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/pigment-css-nextjs-plugin/next-font.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/pigment-css-nextjs-plugin/next-image.js

This file was deleted.

53 changes: 0 additions & 53 deletions packages/pigment-css-nextjs-plugin/package.json

This file was deleted.

Loading

0 comments on commit 2d02b94

Please sign in to comment.