@justeattakeaway/pie-link 0.10.0 → 0.11.0

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.
Files changed (2) hide show
  1. package/README.md +4 -61
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,10 +14,8 @@
14
14
  2. [Installation](#installation)
15
15
  3. [Importing the component](#importing-the-component)
16
16
  4. [Peer Dependencies](#peer-dependencies)
17
- 5. [Local Development](#local-development)
18
- 6. [Props](#props)
19
- 7. [Testing](#testing)
20
-
17
+ 5. [Props](#props)
18
+ 6. [Contributing](#contributing)
21
19
 
22
20
  ## pie-link
23
21
 
@@ -57,31 +55,6 @@ import { PieLink } from '@justeattakeaway/pie-link/dist/react';
57
55
  > [!IMPORTANT]
58
56
  > When using `pie-link`, you will also need to include a couple of dependencies to ensure the component renders as expected. See [the PIE Wiki](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components#expected-dependencies) for more information and how to include these in your application.
59
57
 
60
-
61
- ## Local development
62
-
63
- Install the dependencies. Note that this, and the following commands below, should be run from the **root of the monorepo**:
64
-
65
- ```bash
66
- yarn
67
- ```
68
-
69
- To build the `pie-link` package, run the following command:
70
-
71
- ```bash
72
- yarn build --filter=pie-link
73
- ```
74
-
75
- If you'd like to develop using the component storybook, then you should build the component in `watch` mode, and run storybook in a separate terminal tab:
76
-
77
- ```bash
78
- yarn watch --filter=pie-link
79
-
80
- # in a separate terminal tab, run
81
- yarn dev --filter=pie-storybook
82
- ```
83
-
84
-
85
58
  ## Props
86
59
 
87
60
  | Property | Type | Default | Description |
@@ -132,36 +105,6 @@ We recommend using `pie-icons-webc` when using the `icon` slot. Here is an examp
132
105
  </pie-link>
133
106
  ```
134
107
 
135
- ## Testing
136
-
137
- ### Browser tests
138
-
139
- To run the browser tests, run the following command from the root of the monorepo:
140
-
141
- ```bash
142
- yarn test:browsers --filter=pie-link
143
- ```
144
-
145
- ### Visual tests
146
-
147
- To run the visual regression tests, run the following command from the root of the monorepo:
148
-
149
- ```bash
150
- yarn test:visual --filter=pie-link
151
- ```
152
-
153
- Note: To run these locally, you will need to ensure that any environment variables required are set up on your machine to mirror those on CI (such as Percy tokens). How you achieve this will differ between operating systems.
154
-
155
- #### Setup via bash
156
-
157
- ```bash
158
- export PERCY_TOKEN_PIE_LINK=abcde
159
- ```
108
+ ## Contributing
160
109
 
161
- #### Setup via package.json
162
-
163
- Under scripts `test:visual` replace the environment variable with the below:
164
-
165
- ```bash
166
- PERCY_TOKEN_PIE_LINK=abcde
167
- ```
110
+ Check out our [contributing guide](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide) for more information on [local development](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#local-development) and how to run specific [component tests](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#testing).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-link",
3
3
  "description": "PIE Design System Link built using Web Components",
4
- "version": "0.10.0",
4
+ "version": "0.11.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",