Skip to content

Commit 21459ce

Browse files
committed
remove CRA from install docs
1 parent dd19802 commit 21459ce

96 files changed

Lines changed: 61 additions & 1282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/bin/generate-docs/install-template.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- [PostCSS CLI](#postcss-cli)
77
- [PostCSS Load Config](#postcss-load-config)
88
- [Webpack](#webpack)
9-
- [Create React App](#create-react-app)
109
- [Next.js](#nextjs)
1110
- [Gulp](#gulp)
1211
- [Grunt](#grunt)
@@ -128,28 +127,6 @@ module.exports = {
128127
};
129128
```
130129

131-
## Create React App
132-
133-
Add [React App Rewired] and [React App Rewire PostCSS] to your project:
134-
135-
```bash
136-
npm install react-app-rewired react-app-rewire-postcss <packageName> --save-dev
137-
```
138-
139-
Use [React App Rewire PostCSS] and [<humanReadableName>] in your
140-
`config-overrides.js` file:
141-
142-
```js
143-
const reactAppRewirePostcss = require('react-app-rewire-postcss');
144-
const <exportName> = require('<packageName>');
145-
146-
module.exports = config => reactAppRewirePostcss(config, {
147-
plugins: () => [
148-
<exportName>(/* pluginOptions */)
149-
]
150-
});
151-
```
152-
153130
## Next.js
154131

155132
Read the instructions on how to [customize the PostCSS configuration in Next.js](https://nextjs.org/docs/advanced-features/customizing-postcss-config)
@@ -241,6 +218,4 @@ grunt.initConfig({
241218
[PostCSS CLI]: https://github.com/postcss/postcss-cli
242219
[PostCSS Loader]: https://github.com/postcss/postcss-loader
243220
[<humanReadableName>]: https://github.com/csstools/postcss-plugins/tree/main/<packagePath>
244-
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
245-
[React App Rewired]: https://github.com/timarney/react-app-rewired
246221
[Next.js]: https://nextjs.org

.github/bin/generate-docs/readme.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ instructions for:
7272
- [PostCSS CLI](INSTALL.md#postcss-cli)
7373
- [PostCSS Load Config](INSTALL.md#postcss-load-config)
7474
- [Webpack](INSTALL.md#webpack)
75-
- [Create React App](INSTALL.md#create-react-app)
7675
- [Next.js](INSTALL.md#nextjs)
7776
- [Gulp](INSTALL.md#gulp)
7877
- [Grunt](INSTALL.md#grunt)`);

experimental/css-has-pseudo/INSTALL-POSTCSS.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
⚠️ Experimental version of [CSS Has Pseudo](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo)
66

7-
| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) |
8-
| --- | --- | --- | --- | --- | --- |
7+
| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Gulp](#gulp) | [Grunt](#grunt) |
8+
| --- | --- | --- | --- | --- |
99

1010
## Node
1111

@@ -80,29 +80,6 @@ module.exports = {
8080
}
8181
```
8282

83-
## Create React App
84-
85-
Add [React App Rewired] and [React App Rewire PostCSS] to your project:
86-
87-
```bash
88-
npm install react-app-rewired react-app-rewire-postcss --save-dev
89-
```
90-
91-
Use [React App Rewire PostCSS] and [CSS Has Pseudo] in your
92-
`config-overrides.js`
93-
file:
94-
95-
```js
96-
const reactAppRewirePostcss = require('react-app-rewire-postcss');
97-
const cssHasPseudoExperimental = require('@csstools/css-has-pseudo-experimental');
98-
99-
module.exports = config => reactAppRewirePostcss(config, {
100-
plugins: () => [
101-
cssHasPseudoExperimental(/* pluginOptions */)
102-
]
103-
});
104-
```
105-
10683
## Gulp
10784

10885
Add [Gulp PostCSS] to your project:
@@ -161,5 +138,3 @@ grunt.initConfig({
161138
[PostCSS]: https://github.com/postcss/postcss
162139
[PostCSS CLI]: https://github.com/postcss/postcss-cli
163140
[PostCSS Loader]: https://github.com/postcss/postcss-loader
164-
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
165-
[React App Rewired]: https://github.com/timarney/react-app-rewired

experimental/css-has-pseudo/README-POSTCSS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ postcss([
5050
[EXPERIMENTAL CSS Has Pseudo] runs in all Node environments, with special
5151
instructions for:
5252

53-
| [Node](INSTALL-POSTCSS.md#node) | [PostCSS CLI](INSTALL-POSTCSS.md#postcss-cli) | [Webpack](INSTALL-POSTCSS.md#webpack) | [Create React App](INSTALL-POSTCSS.md#create-react-app) | [Gulp](INSTALL-POSTCSS.md#gulp) | [Grunt](INSTALL-POSTCSS.md#grunt) |
54-
| --- | --- | --- | --- | --- | --- |
53+
| [Node](INSTALL-POSTCSS.md#node) | [PostCSS CLI](INSTALL-POSTCSS.md#postcss-cli) | [Webpack](INSTALL-POSTCSS.md#webpack) | [Gulp](INSTALL-POSTCSS.md#gulp) | [Grunt](INSTALL-POSTCSS.md#grunt) |
54+
| --- | --- | --- | --- | --- |
5555

5656
## Options
5757

experimental/postcss-nesting/INSTALL.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- [PostCSS CLI](#postcss-cli)
77
- [PostCSS Load Config](#postcss-load-config)
88
- [Webpack](#webpack)
9-
- [Create React App](#create-react-app)
109
- [Next.js](#nextjs)
1110
- [Gulp](#gulp)
1211
- [Grunt](#grunt)
@@ -128,28 +127,6 @@ module.exports = {
128127
};
129128
```
130129

131-
## Create React App
132-
133-
Add [React App Rewired] and [React App Rewire PostCSS] to your project:
134-
135-
```bash
136-
npm install react-app-rewired react-app-rewire-postcss @csstools/postcss-nesting-experimental --save-dev
137-
```
138-
139-
Use [React App Rewire PostCSS] and [PostCSS Nesting] in your
140-
`config-overrides.js` file:
141-
142-
```js
143-
const reactAppRewirePostcss = require('react-app-rewire-postcss');
144-
const postcssNesting = require('@csstools/postcss-nesting-experimental');
145-
146-
module.exports = config => reactAppRewirePostcss(config, {
147-
plugins: () => [
148-
postcssNesting(/* pluginOptions */)
149-
]
150-
});
151-
```
152-
153130
## Next.js
154131

155132
Read the instructions on how to [customize the PostCSS configuration in Next.js](https://nextjs.org/docs/advanced-features/customizing-postcss-config)
@@ -241,6 +218,4 @@ grunt.initConfig({
241218
[PostCSS CLI]: https://github.com/postcss/postcss-cli
242219
[PostCSS Loader]: https://github.com/postcss/postcss-loader
243220
[PostCSS Nesting]: https://github.com/csstools/postcss-plugins/tree/main/experimental/postcss-nesting
244-
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
245-
[React App Rewired]: https://github.com/timarney/react-app-rewired
246221
[Next.js]: https://nextjs.org

experimental/postcss-nesting/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ postcss([
9898

9999
[PostCSS Nesting Experimental] runs in all Node environments, with special instructions for:
100100

101-
| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
102-
| --- | --- | --- | --- | --- |
101+
| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
102+
| --- | --- | --- | --- |
103103

104104
## ⚠️ Spec disclaimer
105105

plugin-packs/postcss-preset-env/INSTALL.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[PostCSS Preset Env] runs in all Node environments, with special instructions for:
44

5-
| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) | [Rollup](#rollup) |
5+
| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Gulp](#gulp) | [Grunt](#grunt) | [Rollup](#rollup) |
66
| --- | --- | --- | --- | --- | --- | --- |
77

88
## Node
@@ -80,31 +80,6 @@ module.exports = {
8080
};
8181
```
8282

83-
## Create React App
84-
85-
**PostCSS Preset Env is already bundled with Create React App 2.**
86-
87-
For Create React App 1, add [React App Rewired] and [React App Rewire PostCSS]
88-
to your project:
89-
90-
```bash
91-
npm install react-app-rewired react-app-rewire-postcss --save-dev
92-
```
93-
94-
Use [React App Rewire PostCSS] and [PostCSS Preset Env] in your
95-
`config-overrides.js` file:
96-
97-
```js
98-
const reactAppRewirePostcss = require('react-app-rewire-postcss');
99-
const postcssPresetEnv = require('postcss-preset-env');
100-
101-
module.exports = config => reactAppRewirePostcss(config, {
102-
plugins: () => [
103-
postcssPresetEnv(/* pluginOptions */)
104-
]
105-
});
106-
```
107-
10883
## Gulp
10984

11085
Add [Gulp PostCSS] to your project:
@@ -187,6 +162,4 @@ module.exports = {
187162
[PostCSS CLI]: https://github.com/postcss/postcss-cli
188163
[PostCSS Loader]: https://github.com/postcss/postcss-loader
189164
[PostCSS Preset Env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env
190-
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
191-
[React App Rewired]: https://github.com/timarney/react-app-rewired
192165
[Rollup Plugin PostCSS]: https://github.com/egoist/rollup-plugin-postcss

plugin-packs/postcss-preset-env/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ postcss([
152152

153153
[PostCSS Preset Env] runs in all Node environments, with special instructions for:
154154

155-
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | [Rollup](INSTALL.md#rollup) |
156-
| --- | --- | --- | --- | --- | --- | --- |
155+
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | [Rollup](INSTALL.md#rollup) |
156+
| --- | --- | --- | --- | --- | --- |
157157

158158
## Options
159159

plugins/css-blank-pseudo/INSTALL.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- [PostCSS CLI](#postcss-cli)
77
- [PostCSS Load Config](#postcss-load-config)
88
- [Webpack](#webpack)
9-
- [Create React App](#create-react-app)
109
- [Next.js](#nextjs)
1110
- [Gulp](#gulp)
1211
- [Grunt](#grunt)
@@ -128,28 +127,6 @@ module.exports = {
128127
};
129128
```
130129

131-
## Create React App
132-
133-
Add [React App Rewired] and [React App Rewire PostCSS] to your project:
134-
135-
```bash
136-
npm install react-app-rewired react-app-rewire-postcss css-blank-pseudo --save-dev
137-
```
138-
139-
Use [React App Rewire PostCSS] and [CSS Blank Pseudo] in your
140-
`config-overrides.js` file:
141-
142-
```js
143-
const reactAppRewirePostcss = require('react-app-rewire-postcss');
144-
const postcssBlankPseudo = require('css-blank-pseudo');
145-
146-
module.exports = config => reactAppRewirePostcss(config, {
147-
plugins: () => [
148-
postcssBlankPseudo(/* pluginOptions */)
149-
]
150-
});
151-
```
152-
153130
## Next.js
154131

155132
Read the instructions on how to [customize the PostCSS configuration in Next.js](https://nextjs.org/docs/advanced-features/customizing-postcss-config)
@@ -241,6 +218,4 @@ grunt.initConfig({
241218
[PostCSS CLI]: https://github.com/postcss/postcss-cli
242219
[PostCSS Loader]: https://github.com/postcss/postcss-loader
243220
[CSS Blank Pseudo]: https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo
244-
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
245-
[React App Rewired]: https://github.com/timarney/react-app-rewired
246221
[Next.js]: https://nextjs.org

plugins/css-blank-pseudo/README-POSTCSS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ postcss([
5757
[CSS Blank Pseudo] runs in all Node environments, with special
5858
instructions for:
5959

60-
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
61-
| --- | --- | --- | --- | --- | --- |
60+
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
61+
| --- | --- | --- | --- | --- |
6262

6363
## Options
6464

0 commit comments

Comments
 (0)