From d91e614f1e0b5018279522432619cb39df9f366b Mon Sep 17 00:00:00 2001 From: Capsule42 <jason@capsule42.com> Date: Tue, 18 Jan 2022 09:40:57 -0800 Subject: [PATCH] fix(version): remove version from DOM --- .github/workflows/testPublish.yml | 2 -- package.json | 1 - scripts/version.js | 12 ------------ src/auro-button-light.js | 1 - src/auro-button.js | 2 -- src/version.js | 1 - 6 files changed, 19 deletions(-) delete mode 100644 scripts/version.js delete mode 100644 src/version.js diff --git a/.github/workflows/testPublish.yml b/.github/workflows/testPublish.yml index b858390..ef56bf7 100644 --- a/.github/workflows/testPublish.yml +++ b/.github/workflows/testPublish.yml @@ -24,7 +24,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - run: npm ci - - run: npm run version - run: npm run sassBuild:component - run: npm run postCss:component - run: npm run sassRender @@ -45,7 +44,6 @@ jobs: with: node-version: 14 - run: npm ci - - run: npm run version - run: npm run sassBuild:component - run: npm run postCss:component - run: npm run sassRender diff --git a/package.json b/package.json index f37156d..6a3f690 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,6 @@ ], "scripts": { "build": "npm run ciBuild", - "version": "node scripts/version.js", "apiBuild": "wca analyze 'src/auro-button.js' --outFiles docs/api.md", "bundler": "rollup -c", "bundle:test": "rollup -c -w", diff --git a/scripts/version.js b/scripts/version.js deleted file mode 100644 index b2a3143..0000000 --- a/scripts/version.js +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license -// See LICENSE in the project root for license information. - -// --------------------------------------------------------------------- - -const fs = require('fs'); -const json = require('../package.json'); -const version = json.version; - -fs.writeFileSync('./src/version.js', `export default '${version}'`); - -console.log(`\nGenerating version v${version} reference file \n`) diff --git a/src/auro-button-light.js b/src/auro-button-light.js index a59f1e1..c061b9a 100644 --- a/src/auro-button-light.js +++ b/src/auro-button-light.js @@ -87,7 +87,6 @@ class AuroButtonLight extends LitElement { name="${ifDefined(this.name ? this.name : undefined)}" type="${ifDefined(this.type ? this.type : undefined)}" .value="${ifDefined(this.value ? this.value : undefined)}" - @click="${() => {}}" > ${ifDefined(this.svgIconLeft ? this.getIcon(this.svgIconLeft) : undefined)} diff --git a/src/auro-button.js b/src/auro-button.js index a587b33..8c0f5a8 100644 --- a/src/auro-button.js +++ b/src/auro-button.js @@ -11,7 +11,6 @@ import styleCss from "./style-css.js"; import styleCssFixed from './style-fixed-css.js'; import '@alaskaairux/auro-loader'; import { isFocusVisibleSupported, isFocusVisiblePolyfillAvailable } from './util'; -import version from './version'; /** * @attr {Boolean} fixed - uses px values instead of rem @@ -157,7 +156,6 @@ class AuroButton extends LitElement { type="${ifDefined(this.type ? this.type : undefined)}" .value="${ifDefined(this.value ? this.value : undefined)}" @click="${() => {}}" - version="${version}" > ${ifDefined(this.svgIconLeft ? this.getIcon(this.svgIconLeft) : undefined)} ${ifDefined(this.loading ? html`<auro-loader pulse></auro-loader>` : undefined)} diff --git a/src/version.js b/src/version.js deleted file mode 100644 index 03475bb..0000000 --- a/src/version.js +++ /dev/null @@ -1 +0,0 @@ -export default '6.3.6' \ No newline at end of file