From 40f0924d81b927a981b09fab90ea419396881281 Mon Sep 17 00:00:00 2001 From: Dale Sande Date: Sun, 11 Feb 2024 14:08:23 -0800 Subject: [PATCH] perf: update to support ESM development Changes to be committed: modified: README.md modified: package-lock.json modified: package.json modified: scripts/generateDocs.mjs modified: src/auro-lockup.js --- README.md | 5 +++-- package-lock.json | 26 +++++++++++++------------- package.json | 8 ++++---- scripts/generateDocs.mjs | 2 +- src/auro-lockup.js | 6 +++--- 5 files changed, 24 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 887e48b..663c4e7 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,12 @@ For the most up to date information on [UI development browser support](https:// ## Install - + [![Build Status](https://img.shields.io/github/actions/workflow/status/AlaskaAirlines/auro-lockup/testPublish.yml?style=for-the-badge)](https://github.com/AlaskaAirlines/auro-lockup/actions/workflows/testPublish.yml) [![See it on NPM!](https://img.shields.io/npm/v/@aurodesignsystem/auro-lockup?style=for-the-badge&color=orange)](https://www.npmjs.com/package/@aurodesignsystem/auro-lockup) [![License](https://img.shields.io/npm/l/@aurodesignsystem/auro-lockup?color=blue&style=for-the-badge)](https://www.apache.org/licenses/LICENSE-2.0) - +![ESM supported](https://img.shields.io/badge/ESM-compatible-FFE900?style=for-the-badge) + ```shell $ npm i @aurodesignsystem/auro-lockup ``` diff --git a/package-lock.json b/package-lock.json index 058d389..958eb06 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,11 +14,11 @@ "lit": "^3.1.1" }, "devDependencies": { - "@alaskaairux/icons": "^4.34.1", - "@aurodesignsystem/auro-library": "^2.4.7", + "@alaskaairux/icons": "^4.36.2", + "@aurodesignsystem/auro-library": "^2.5.1", "@aurodesignsystem/design-tokens": "^4.3.0", "@aurodesignsystem/eslint-config": "^1.3.0", - "@aurodesignsystem/webcorestylesheets": "^5.0.5", + "@aurodesignsystem/webcorestylesheets": "^5.0.8", "@commitlint/cli": "^18.5.0", "@commitlint/config-conventional": "^18.5.0", "@open-wc/testing": "^4.0.0", @@ -65,7 +65,7 @@ }, "peerDependencies": { "@aurodesignsystem/design-tokens": "^4.3.0", - "@aurodesignsystem/webcorestylesheets": "^5.0.5" + "@aurodesignsystem/webcorestylesheets": "^5.0.8" } }, "node_modules/@75lb/deep-merge": { @@ -100,9 +100,9 @@ } }, "node_modules/@alaskaairux/icons": { - "version": "4.34.2", - "resolved": "https://registry.npmjs.org/@alaskaairux/icons/-/icons-4.34.2.tgz", - "integrity": "sha512-5f8wMGMHs2OXh2A4P8jL9mxDLS0PIVs8ASivYdR4PuyfVr4bx3tGqdTwGN86eQatjvIh7JhzQZGQGR0/z1RW1Q==", + "version": "4.36.2", + "resolved": "https://registry.npmjs.org/@alaskaairux/icons/-/icons-4.36.2.tgz", + "integrity": "sha512-xUtoMC2SzjxlNDHvtB/fmfH/I1jBUDtXCjpK3zPlhhdvYk68U4qMXUFalL/yn1mJVSvGK8+2IlrxD5fodvHgPw==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -175,9 +175,9 @@ } }, "node_modules/@aurodesignsystem/auro-library": { - "version": "2.4.7", - "resolved": "https://registry.npmjs.org/@aurodesignsystem/auro-library/-/auro-library-2.4.7.tgz", - "integrity": "sha512-R6qJqQqO9Jpu475D9rpIei6wEIYL1v57YFyFViYa13/DrLRlzSKMUubJCdIIwNtm/8qvvKf0VWVBpZfevRmp+Q==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@aurodesignsystem/auro-library/-/auro-library-2.5.1.tgz", + "integrity": "sha512-w/aEFwGzL+RlgcZDu+6QZPjEG51NjRIvQWri7vmBbOEGJyIH0+3cY0IVKDZTjTHoS3AqUprMXsVhwJqiP5WlRw==", "dev": true, "dependencies": { "markdown-magic": "^2.6.1" @@ -281,9 +281,9 @@ } }, "node_modules/@aurodesignsystem/webcorestylesheets": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/@aurodesignsystem/webcorestylesheets/-/webcorestylesheets-5.0.6.tgz", - "integrity": "sha512-5ZBSC8NcgVoeZSWMqyTuIpggyRD7mZfFDmrOtQA/H2xj6/VHi6cao7Oda6hAqF2db/X3n1G1WImjuABPazWvaA==", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/@aurodesignsystem/webcorestylesheets/-/webcorestylesheets-5.0.8.tgz", + "integrity": "sha512-y/ILjNPlxSJTzAzTx5lXiqOcIQU1q4s20D9/Qh63uB3C6xaplGPSnNdB3Sk+vRmnCeWJTLoFFiOEJm4UQVFStA==", "dev": true, "hasInstallScript": true, "dependencies": { diff --git a/package.json b/package.json index 9b9a410..97f4464 100644 --- a/package.json +++ b/package.json @@ -25,14 +25,14 @@ }, "peerDependencies": { "@aurodesignsystem/design-tokens": "^4.3.0", - "@aurodesignsystem/webcorestylesheets": "^5.0.5" + "@aurodesignsystem/webcorestylesheets": "^5.0.8" }, "devDependencies": { - "@alaskaairux/icons": "^4.34.1", - "@aurodesignsystem/auro-library": "^2.4.7", + "@alaskaairux/icons": "^4.36.2", + "@aurodesignsystem/auro-library": "^2.5.1", "@aurodesignsystem/design-tokens": "^4.3.0", "@aurodesignsystem/eslint-config": "^1.3.0", - "@aurodesignsystem/webcorestylesheets": "^5.0.5", + "@aurodesignsystem/webcorestylesheets": "^5.0.8", "@commitlint/cli": "^18.5.0", "@commitlint/config-conventional": "^18.5.0", "@open-wc/testing": "^4.0.0", diff --git a/scripts/generateDocs.mjs b/scripts/generateDocs.mjs index e261b15..b270330 100644 --- a/scripts/generateDocs.mjs +++ b/scripts/generateDocs.mjs @@ -5,7 +5,7 @@ import https from 'https'; const __dirname = new URL('.', import.meta.url).pathname; -const readmeTemplateUrl = 'https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/README.md'; +const readmeTemplateUrl = 'https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/README_esm.md'; const dirDocTemplates = './docTemplates'; const readmeFilePath = dirDocTemplates + '/README.md'; diff --git a/src/auro-lockup.js b/src/auro-lockup.js index 65a4d32..328f287 100644 --- a/src/auro-lockup.js +++ b/src/auro-lockup.js @@ -9,9 +9,9 @@ import { LitElement, html } from "lit"; import { ifDefined } from 'lit/directives/if-defined.js'; import { classMap } from 'lit/directives/class-map.js'; -import logoOfficial from '@alaskaairux/icons/dist/restricted/AS-tagline-200_es6.js'; -import logoStandard from '@alaskaairux/icons/dist/restricted/AS-200_es6.js'; -import logoOneworld from '@alaskaairux/icons/dist/logos/oneworld_es6.js'; +import logoOfficial from '@alaskaairux/icons/dist/restricted/AS-tagline-200.mjs'; +import logoStandard from '@alaskaairux/icons/dist/restricted/AS-200.mjs'; +import logoOneworld from '@alaskaairux/icons/dist/logos/oneworld.mjs'; // If using auroElement base class // See instructions for importing auroElement base class https://git.io/JULq4