Skip to content

Commit abf986c

Browse files
committed
feat!: upgrade package tooling to use auro-cli
BREAKING CHANGE: Package exports have changed. To access the component class add /class to the end of the import. See "exports" in the package.json for more details. AlaskaAirlines/auro-cli#108 AlaskaAirlines/auro-cli#109 AlaskaAirlines/auro-cli#110 AlaskaAirlines/auro-cli#111
1 parent 6b39399 commit abf986c

22 files changed

+7832
-2997
lines changed

.releaserc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"branches": [
3+
{
4+
"name": "main"
5+
},
6+
{
7+
"name": "rc/*",
8+
"channel": "rc",
9+
"prerelease": "rc-${name.replace(/^rc\\//g, '')}"
10+
}
11+
],
12+
"plugins": [
13+
[
14+
"@semantic-release/commit-analyzer",
15+
{
16+
"preset": "conventionalcommits",
17+
"releaseRules": [
18+
{ "type": "docs", "scope": "README", "release": "patch" },
19+
{ "type": "refactor", "release": "patch" },
20+
{ "type": "style", "release": "patch" }
21+
]
22+
}
23+
],
24+
"@semantic-release/release-notes-generator",
25+
[
26+
"@semantic-release/changelog",
27+
{
28+
"changelogFile": "./CHANGELOG.md"
29+
}
30+
],
31+
"@semantic-release/npm",
32+
"@semantic-release/github"
33+
]
34+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
102102
```html
103103
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@/dist/auro-classic/CSSCustomProperties.css" />
104104
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@/dist/bundled/essentials.css" />
105-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@4.1.3/dist/auro-skeleton__bundled.js" type="module"></script>
105+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-skeleton@0.0.0/dist/auro-skeleton__bundled.js" type="module"></script>
106106
```
107107

108108
<!-- AURO-GENERATED-CONTENT:END -->

demo/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<script type="module">
4141
import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
4242
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
43-
fetch('/demo/api.md')
43+
fetch('./api.md')
4444
.then((response) => response.text())
4545
.then((text) => {
4646
const rawHtml = marked.parse(text);

demo/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "../index.js";
1+
import "../src/registered";

demo/api.md

Lines changed: 0 additions & 100 deletions
This file was deleted.

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<script type="module">
4141
import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
4242
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
43-
fetch('/demo/index.md')
43+
fetch('./index.md')
4444
.then((response) => response.text())
4545
.then((text) => {
4646
const rawHtml = marked.parse(text);

demo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AuroSkeleton } from "../src/auro-skeleton.js";
1+
import { AuroSkeleton } from "../src/index";
22

33
AuroSkeleton.register(); // registering to `auro-skeleton`
44
AuroSkeleton.register("custom-skeleton");

demo/index.md

Lines changed: 0 additions & 158 deletions
This file was deleted.

docs/partials/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ The `<auro-skeleton>` element makes use of a single `shape` enumerated attribute
4949

5050
The component may be restyled using the following code sample and changing the values of the following token(s).
5151

52-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../src/tokens.scss) -->
52+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../src/styles/tokens.scss) -->
5353
<!-- AURO-GENERATED-CONTENT:END -->

docs/partials/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ There are two important parts of every Auro component. The <a href="https://deve
6161
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `AuroSkeleton.register(name)` method and pass in a unique name.
6262

6363
```js
64-
import { AuroSkeleton } from './src/auro-skeleton.js';
64+
import { AuroSkeleton } from '@aurodesignsystem/auro-skeleton/class';
6565

6666
AuroSkeleton.register('custom-skeleton');
6767
```

0 commit comments

Comments
 (0)