@raspberrypifoundation/design-system-react 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # Design System React
2
+
3
+ ## Usage
4
+
5
+ ### Using a local running NPM
6
+
7
+ `design-system-react` is published to the GitHub package registry and is dependent on `design-system-core`.
8
+
9
+ Installation of `design-system-core` requires a user-level `~/.npmrc` file that contains a GitHub access token.
10
+
11
+ Follow the steps in the `design-system-core` [README](https://github.com/RaspberryPiFoundation/design-system-core) to create a token and set up a local version of that project.
12
+
13
+ You should have:
14
+
15
+ - generated a token via the GitHub website: it will typically be prefixed with "ghp"; and
16
+ - created a file called `.npmrc` in your user root directory (not the directory of this project) that contains the following:
17
+ `//npm.pkg.github.com/:_authToken={GITHUB_TOKEN}`
18
+
19
+ Once that's complete, use `npm` - not `yarn` - to install this package.
20
+
21
+ ```
22
+ npm i
23
+
24
+ npm run storybook
25
+ ```
26
+
27
+ ### Adding design-system-react to a project
28
+
29
+ Projects that need to import this package must have an `.npmrc` file at their root level. The file should contain:
30
+
31
+ ```
32
+ # Sets GitHub as the registry for packages scoped to @RaspberryPiFoundation
33
+ @raspberrypifoundation:registry=https://npm.pkg.github.com
34
+ ```
35
+
36
+ `design-system-react` can then be installed using the project's package manager.
37
+
38
+ ### Deployment
39
+
40
+ Create a new [release](https://github.com/RaspberryPiFoundation/design-system-react/releases):
41
+
42
+ - click 'Draft a new release'
43
+ - type the version in the dropdown and click 'Create new tag'
44
+ - add a title and some notes about what the release contains
45
+ - click 'Publish release' (leave 'Set as latest release' checked) and a build will be kicked off
46
+ - add new version to `package.json` in your app
47
+
48
+ ### Using Docker
49
+
50
+ TODO