You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-35
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,16 @@ To this end, Spectrum Web Components only targets _modern_, evergreen browsers t
6
6
7
7
# Requirements
8
8
9
-
-NodeJS >= 20.0.0
10
-
-Typescript
11
-
-Supported desktop browsers:
12
-
-Last 2 versions of Chrome
13
-
-Last 2 versions of Firefox
14
-
-Last 2 versions of Safari
15
-
-Last 2 versions of Edge
16
-
-Or appropriate [polyfills](https://github.com/webcomponents/webcomponentsjs) in older browsers.
17
-
-We support all viewport sizes across supported desktop browsers.
18
-
-While our components are designed to be responsive and mobile-friendly, we do not yet fully support mobile browsers due to limited testing in mobile hardware. We advise testing updates on mobile devices before updating and are happy to address any reported issues.
9
+
- NodeJS >= 20.0.0
10
+
- Typescript
11
+
- Supported desktop browsers:
12
+
- Last 2 versions of Chrome
13
+
- Last 2 versions of Firefox
14
+
- Last 2 versions of Safari
15
+
- Last 2 versions of Edge
16
+
- Or appropriate [polyfills](https://github.com/webcomponents/webcomponentsjs) in older browsers.
17
+
- We support all viewport sizes across supported desktop browsers.
18
+
- While our components are designed to be responsive and mobile-friendly, we do not yet fully support mobile browsers due to limited testing in mobile hardware. We advise testing updates on mobile devices before updating and are happy to address any reported issues.
19
19
20
20
# Getting started
21
21
@@ -34,7 +34,7 @@ Typical development will involve running `yarn storybook`, `yarn test`, and `yar
34
34
Creating a new component from the command line can be done by running the following:
35
35
36
36
```bash
37
-
$ yarn new-package
37
+
yarn new-package
38
38
```
39
39
40
40
This will scaffold your component's required architecture by prompting you for 2 data points - the desired name for your package and the name of the Spectrum CSS asset from which you will be building.
@@ -81,8 +81,8 @@ yarn docs:build
81
81
82
82
There are two mechanisms for broadly updating SWC's Spectrum CSS dependencies:
83
83
84
-
-`yarn update:spectrum-css` brings all Spectrum CSS dependencies to 'latest'
85
-
-`yarn update:spectrum-css:nonbreaking` brings them to the latest minor or patch version
84
+
-`yarn update:spectrum-css` brings all Spectrum CSS dependencies to 'latest'
85
+
-`yarn update:spectrum-css:nonbreaking` brings them to the latest minor or patch version
86
86
87
87
We aim to keep Spectrum CSS as current as possible, to track the Spectrum design system closely.
88
88
The `:nonbreaking` variant lets us release patch updates quickly in cases where more work is required to be compatible with 'latest.'
@@ -91,11 +91,10 @@ The `:nonbreaking` variant lets us release patch updates quickly in cases where
91
91
92
92
There are several commands that can be useful in specific scenarios:
93
93
94
-
-`yarn build:clear-cache` to remove previously created artifacts of the `tsc build` process.
95
-
-`yarn spectrum-vars` to ensure that theme files are up-to-date.
96
-
-`yarn process-icons` to make sure that the most recent icons are included.
97
-
-`yarn process-spectrum` to process the spectrum CSS style sources into the individual packages.
98
-
-`yarn build` to make sure the available JS has been built from the current TS source.
94
+
-`yarn build:clear-cache` to remove previously created artifacts of the `tsc build` process.
95
+
-`yarn process-icons` to make sure that the most recent icons are included.
96
+
-`yarn process-spectrum` to process the spectrum CSS style sources into the individual packages.
97
+
-`yarn build` to make sure the available JS has been built from the current TS source.
99
98
100
99
## Linting
101
100
@@ -179,23 +178,23 @@ This will run the defined [Tachometer](https://www.npmjs.com/package/tachometer)
179
178
180
179
There is extended documentation on adding a new component to the library in the [documentation site](https://opensource.adobe.com/spectrum-web-components/guides/generating-components). However, at a high level, you will be building the following structure:
181
180
182
-
-packages
183
-
-new-component-name
184
-
-src
185
-
-index.ts
186
-
-new-component-name.css
187
-
-new-component-name.ts
188
-
-spectrum-config.js
189
-
-spectrum-new-component-name.css
190
-
-stories
191
-
-new-component-name.stories.ts
192
-
-test
193
-
-benchmark
194
-
-test-basic.ts
195
-
-new-component-name.test.ts
196
-
-package.json
197
-
-README.md
198
-
-tsconfig.json
181
+
- packages
182
+
- new-component-name
183
+
- src
184
+
- index.ts
185
+
- new-component-name.css
186
+
- new-component-name.ts
187
+
- spectrum-config.js
188
+
- spectrum-new-component-name.css
189
+
- stories
190
+
- new-component-name.stories.ts
191
+
- test
192
+
- benchmark
193
+
- test-basic.ts
194
+
- new-component-name.test.ts
195
+
- package.json
196
+
- README.md
197
+
- tsconfig.json
199
198
200
199
For a list of component waiting to be implemented, visit our [`missing components`](https://github.com/adobe/spectrum-web-components/labels/missing%20components) tag.
0 commit comments