Skip to content

Commit d0c4f43

Browse files
authored
Rename cra-plugin-* to react-scripts-plugin-* (#10)
1 parent d680431 commit d0c4f43

File tree

15 files changed

+33
-23
lines changed

15 files changed

+33
-23
lines changed

packages/cra-plugin-css-modules/README.md renamed to packages/react-scripts-plugin-css-modules/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Enable [CSS Modules](https://github.com/css-modules/css-modules) in your CRA app
55
## Install
66

77
```bash
8-
yarn add -D cra-plugin-css-modules
8+
yarn add -D react-scripts-plugin-css-modules
99
```
1010

1111
Add to `cra.config.js`

packages/cra-plugin-css-modules/index.js renamed to packages/react-scripts-plugin-css-modules/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const { findCssLoader } = require('cra-plugin-utils');
3+
const { findCssLoader } = require('react-scripts-plugin-utils');
44

55
module.exports = {
66
webpack: config => {
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "cra-plugin-css-modules",
2+
"name": "react-scripts-plugin-css-modules",
33
"version": "0.2.0",
44
"description": "CSS Modules plugin for Create React App",
55
"main": "index.js",
66
"repository": "jdcrensh/create-react-app#custom",
77
"author": "Jon Crenshaw <[email protected]>",
88
"license": "MIT",
99
"dependencies": {
10-
"cra-plugin-utils": "^0.2.0"
10+
"react-scripts-plugin-utils": "^0.2.0"
1111
}
1212
}

packages/cra-plugin-no-hashes/README.md renamed to packages/react-scripts-plugin-no-hashes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Disables file hashes (ie. `main.35dbe941.js`) in your CRA app's build output.
55
## Install
66

77
```bash
8-
yarn add -D cra-plugin-no-hashes
8+
yarn add -D react-scripts-plugin-no-hashes
99
```
1010

1111
Add to `cra.config.js`

packages/cra-plugin-no-hashes/index.js renamed to packages/react-scripts-plugin-no-hashes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const { isEnabled } = require('cra-plugin-utils');
3+
const { isEnabled } = require('react-scripts-plugin-utils');
44

55
module.exports = {
66
webpack: (config, { env }) => {
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "cra-plugin-no-hashes",
2+
"name": "react-scripts-plugin-no-hashes",
33
"version": "0.2.0",
44
"description": "Plugin to disable file hashes for Create React App",
55
"main": "index.js",
66
"repository": "jdcrensh/create-react-app#custom",
77
"author": "Jon Crenshaw <[email protected]>",
88
"license": "MIT",
99
"dependencies": {
10-
"cra-plugin-utils": "^0.2.0"
10+
"react-scripts-plugin-utils": "^0.2.0"
1111
}
1212
}

packages/cra-plugin-no-minify/README.md renamed to packages/react-scripts-plugin-no-minify/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Disable build minification in your CRA app's build output.
55
## Install
66

77
```bash
8-
yarn add -D cra-plugin-no-minify
8+
yarn add -D react-scripts-plugin-no-minify
99
```
1010

1111
Add to `cra.config.js`

packages/cra-plugin-no-minify/index.js renamed to packages/react-scripts-plugin-no-minify/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

3-
const { findCssLoader, filterPlugins, isEnabled } = require('cra-plugin-utils');
3+
const {
4+
findCssLoader,
5+
filterPlugins,
6+
isEnabled,
7+
} = require('react-scripts-plugin-utils');
48

59
module.exports = {
610
webpack: (config, { env }) => {
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "cra-plugin-no-minify",
2+
"name": "react-scripts-plugin-no-minify",
33
"version": "0.2.0",
44
"description": "Plugin to disable minification for Create React App",
55
"main": "index.js",
66
"repository": "jdcrensh/create-react-app#custom",
77
"author": "Jon Crenshaw <[email protected]>",
88
"license": "MIT",
99
"dependencies": {
10-
"cra-plugin-utils": "^0.2.0"
10+
"react-scripts-plugin-utils": "^0.2.0"
1111
}
1212
}

packages/cra-plugin-utils/README.md renamed to packages/react-scripts-plugin-utils/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ _Note: This plugin system is unsupported by the CRA team and will not work with
66

77
## What is a plugin?
88

9-
* Naming convension for plugin modules is `cra-plugin-NAME` (scoped modules are supported).
9+
* Naming convension for plugin modules is `react-scripts-plugin-NAME` (scoped modules are supported).
1010
* Plugins are loaded via the `plugins` array in `cra.config.js`.
1111
* A plugin is a simple module exporting the feature(s) that it supports.
1212
* Plugins have some access to Create React App internals through an `options` object passed to it. If there's an aspect of the internals that aren't provided, open a PR to request it.
1313

1414
## Install
1515

1616
```bash
17-
yarn add cra-plugin-utils
17+
yarn add react-scripts-plugin-utils
1818
```
1919

2020
## Features
@@ -32,7 +32,7 @@ It will be passed the config object and some options.
3232

3333
#### Example
3434

35-
`cra-plugin-example/index.js`
35+
`react-scripts-plugin-example/index.js`
3636

3737
```js
3838
module.exports = {

0 commit comments

Comments
 (0)