Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit e157240

Browse files
authored
Merge pull request #15 from primer/rename-to-toolchain
Change name from react-scripts to react-toolchain
2 parents edad0d7 + 4068623 commit e157240

File tree

5 files changed

+26521
-17616
lines changed

5 files changed

+26521
-17616
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "primer/react-scripts" }],
3+
"changelog": ["@changesets/changelog-github", { "repo": "primer/react-toolchain" }],
44
"commit": false,
55
"linked": [],
66
"access": "public",

.changeset/rename-to-toolchain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react-toolchain': minor
3+
---
4+
5+
Rename package to `@primer/react-toolchain`

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<b>Toolchain to help build React components with Primer</b>
55
<br><br>
66
<img src="https://img.shields.io/badge/maturity-proof--of--concept-d85151?style=flat-square"/>
7-
<img src="https://img.shields.io/github/package-json/v/primer/react-scripts?style=flat-square"/>
7+
<img src="https://img.shields.io/github/package-json/v/primer/react-toolchain?style=flat-square"/>
88
</p>
99

1010
&nbsp;
@@ -18,7 +18,7 @@
1818
## Setup
1919

2020
```
21-
npm install @primer/react-scripts --save-dev
21+
npm install @primer/react-toolchain --save-dev
2222
```
2323

2424
### Storybook
@@ -40,15 +40,15 @@ Step 2. Create a `ComponentName.stories.tsx` file
4040
We recommend putting this file next to the component.
4141

4242
```jsx
43-
import {DatePicker} from './date-picker'
43+
import { DatePicker } from './date-picker';
4444

4545
export default {
4646
title: 'Common components/Datepicker'
47-
}
47+
};
4848

4949
export const SimpleDatePicker = () => {
50-
return <DatePicker variant="single" value={new Date()} />
51-
}
50+
return <DatePicker variant="single" value={new Date()} />;
51+
};
5252
```
5353

5454
[Learn more about stories from the Storybook docs](https://storybook.js.org/docs/react/get-started/whats-a-story)
@@ -57,7 +57,6 @@ export const SimpleDatePicker = () => {
5757

5858
You're good to go! Run `npm run storybook`.
5959

60-
6160
<details>
6261
<summary><h4>Customise storybook</h4></summary>
6362

@@ -66,7 +65,7 @@ If you need to customize your storybook config, create `.storybook` directory in
6665
1. `main.js`
6766

6867
```js
69-
const defaultConfig = require('@primer/react-scripts/storybook/main');
68+
const defaultConfig = require('@primer/react-toolchain/storybook/main');
7069
const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin');
7170

7271
module.exports = {
@@ -85,15 +84,17 @@ If you need to customize your storybook config, create `.storybook` directory in
8584
```
8685

8786
2. `preview.js`
87+
8888
```js
8989
// step 1: export defaults
90-
export * from '@primer/react-scripts/storybook/preview';
90+
export * from '@primer/react-toolchain/storybook/preview';
9191

9292
// (optional) step 2: customise and overwrite
93-
import { decorators } from '@primer/react-scripts/storybook/preview';
93+
import { decorators } from '@primer/react-toolchain/storybook/preview';
9494
import { withPerformance } from 'storybook-addon-performance';
9595

9696
decorators.push(withPerformance);
9797
export { decorators };
9898
```
99-
</details>
99+
100+
</details>

0 commit comments

Comments
 (0)