Skip to content

Commit

Permalink
fix: returns bundler & precommit task, updates sweep to remove dist f…
Browse files Browse the repository at this point in the history
…older
  • Loading branch information
chrisfalaska committed Oct 30, 2024
1 parent db5461a commit b844e63
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 25 deletions.
12 changes: 6 additions & 6 deletions components/dropdown/src/auro-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ import { LitElement } from "lit";
// import {computePosition, detectOverflow, autoUpdate, offset, autoPlacement, flip, shift, limitShift} from '@floating-ui/dom';

import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
import AuroFloatingUI from '../src/floatingUI.mjs';
import AuroFloatingUI from './floatingUI.mjs';

import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs';

import { AuroIcon } from '@aurodesignsystem/auro-icon/src/auro-icon.js';
import iconVersion from '../src/iconVersion.js';
import iconVersion from './iconVersion.js';

import styleCss from "./style-css.js";
import colorCss from "./color-css.js";
import tokensCss from "./tokens-css.js";
import styleCss from "./styles/style-css.js";
import colorCss from "./styles/color-css.js";
import tokensCss from "./styles/tokens-css.js";

import { AuroDropdownBib } from '../src/auro-dropdownBib.js';
import { AuroDropdownBib } from './auro-dropdownBib.js';

// default internal definition
if (!customElements.get("auro-dropdownbib")) {
Expand Down
6 changes: 3 additions & 3 deletions components/dropdown/src/auro-dropdownBib.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import { html } from "lit/static-html.js";
import { LitElement } from "lit";

import styleCss from "./bibStyles-css.js";
// import colorCss from "./color-css.js";
// import tokensCss from "./tokens-css.js";
import styleCss from "./styles/bibStyles-css.js";
// import colorCss from "./styles/color-css.js";
// import tokensCss from "./styles/tokens-css.js";

export class AuroDropdownBib extends LitElement {

Expand Down
3 changes: 0 additions & 3 deletions components/dropdown/src/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import { html } from "lit/static-html.js";
import { LitElement } from "lit";

import { AuroDropdown } from "./auro-dropdown.js";


export class MySelect extends LitElement {
constructor() {
super();
Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/src/styles/bibStyles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// never define layout that would cause effect on element outside the scope of this component

// Support for fallback values
@import "./../../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
@import "@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";

/* stylelint-disable no-descending-specificity, selector-max-attribute */

Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/src/styles/color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ---------------------------------------------------------------------

// Support for fallback values
@import './../../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';

/* stylelint-disable no-descending-specificity, declaration-empty-line-before */

Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/src/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// never define layout that would cause effect on element outside the scope of this component

// Support for fallback values
@import "./../../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
@import "@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";

/* stylelint-disable no-descending-specificity, selector-max-attribute */

Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/test/auro-dropdown.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fixture, html, expect, oneEvent } from '@open-wc/testing';
import '../auro-dropdown.js';
import '../src/auro-dropdown.js';

describe('auro-dropdown', () => {
it('auro-dropdown is accessible', async () => {
Expand Down
10 changes: 5 additions & 5 deletions components/form/src/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// ---------------------------------------------------------------------

// Import Auro tokens
@import './../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
@import './../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariableMap';
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariableMap';

// general WCSS imports
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/breakpoints';
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/core';
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/animation';
@import '@aurodesignsystem/webcorestylesheets/src/breakpoints';
@import '@aurodesignsystem/webcorestylesheets/src/core';
@import '@aurodesignsystem/webcorestylesheets/src/animation';

// Support for auroElement styles
// @import './node_modules/@aurodesignsystem/webcorestylesheets/dist/auroElement/auroElement';
Expand Down
2 changes: 1 addition & 1 deletion components/input/test/auro-input.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fixture, html, expect, elementUpdated, oneEvent } from '@open-wc/testing';
import '../../input/src/auro-input.js';
import '../src/auro-input';

describe('auro-input', () => {

Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"dev": "npm run dev:input",
"build": "npm-run-all build:input build:dropdown build:sass sass:render types",
"build:test": "npm-run-all test linters",
"build:release": "npm-run-all build build:test build:api build:docs postinstall",
"build:release": "npm-run-all build build:test build:api build:docs bundler postinstall",
"build:ci": "npm-run-all sweep build:release",
"postinstall": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/postinstall.mjs",
"types": "tsc",
Expand Down Expand Up @@ -214,7 +214,7 @@
"build:input:release": "npm-run-all build:input:full build:test build:demo:input",
"build:dropdown:release": "npm-run-all build:dropdown:full build:test build:demo:dropdown",

"sweep": "find ./demo ./dist ./src ./components -type f \\( -name \"*.css\" -o -name \"*-css.js\" \\) -delete",
"sweep": "rm -rf dist && find ./demo ./src ./components -type f \\( -name \"*.css\" -o -name \"*-css.js\" \\) -delete",

"test": "wtr --coverage",
"test:watch": "wtr --watch",
Expand All @@ -229,6 +229,11 @@

"linters:input": "npm-run-all scssLint:input esLint:input",
"scssLint:input": "stylelint \"./components/input/**/*.scss\"",
"esLint:input": "./node_modules/.bin/eslint components/input/**/*.js --ignore-pattern 'components/**/*Version.js'"
"esLint:input": "./node_modules/.bin/eslint components/input/**/*.js --ignore-pattern 'components/**/*Version.js'",

"bundler": "rollup -c",
"bundler:test": "rollup -c -w",

"preCommit": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/pre-commit.mjs"
}
}

0 comments on commit b844e63

Please sign in to comment.