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
+37-56Lines changed: 37 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,17 @@ The `<auro-skeleton>` element uses animation to convey that the page is still lo
32
32
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
[](https://www.npmjs.com/package/@aurodesignsystem/auro-skeleton)
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
@@ -95,16 +78,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
95
+
There are two key parts to every Auro component: the <ahref="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition.
96
+
The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
123
97
124
-
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
98
+
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
125
99
126
-
<!-- AURO-GENERATED-CONTENT:END -->
127
-
128
-
### Start development environment
100
+
However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
102
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
Automated tests are required for every Auro component. See `.\test\auro-skeleton.test.js` for the tests for this component. Run `npm run test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
0 commit comments