Skip to content

Commit

Permalink
feat: add wca as part of build:docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-mota committed Dec 5, 2024
1 parent 23b0f1b commit ba484de
Show file tree
Hide file tree
Showing 35 changed files with 2,018 additions and 495 deletions.
2 changes: 1 addition & 1 deletion components/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"build": "run-s build:sass bundler build:docs types",
"build:sass": "sass --no-source-map --load-path=../../node_modules \"./src/styles/:./src/styles/\"",
"build:watch": "nodemon -e scss,js --watch src --ignore \"*.css\" --ignore \"*-css.js\" --exec \"npm run build\"",
"build:docs": "node ../../packages/build-tools/src/docProcessor.mjs --component checkbox",
"bundler": "rollup -c node:@auro-formkit/config/rollup",
"build:docs": "wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component checkbox",
"clean": "rm -rf dist build",
"dev": "web-dev-server",
"postCss:component": "node ../../node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
Expand Down
11 changes: 11 additions & 0 deletions components/checkbox/scripts/wca/auro-checkbox-group.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

import { AuroCheckboxGroup } from '../../src/auro-checkbox-group.js';

/**
* The auro-checkbox-group element is a wrapper for auro-checkbox element.
*/
class AuroCheckboxGroupWCA extends AuroCheckboxGroup {}

if (!customElements.get("auro-checkbox-group")) {
customElements.define("auro-checkbox-group", AuroCheckboxGroupWCA);
}
11 changes: 11 additions & 0 deletions components/checkbox/scripts/wca/auro-checkbox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

import { AuroCheckbox } from '../../src/auro-checkbox.js';

/**
* Custom element for the purpose of allowing users to select one or more options of a limited number of choices.
*/
class AuroCheckboxWCA extends AuroCheckbox {}

if (!customElements.get("auro-checkbox")) {
customElements.define("auro-checkbox", AuroCheckboxWCA);
}
16 changes: 8 additions & 8 deletions components/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"url": "https://github.com/AlaskaAirlines/auro-combobox"
},
"dependencies": {
"@alaskaairux/icons": "^4.44.1",
"@auro-formkit/auro-dropdown": "*",
"@auro-formkit/auro-input": "*",
"@auro-formkit/auro-menu": "*",
"@aurodesignsystem/auro-formvalidation": "^1.0.4",
"chalk": "^5.3.0",
"lit": "^3.2.1"
"@alaskaairux/icons": "^4.44.1",
"@auro-formkit/auro-dropdown": "*",
"@auro-formkit/auro-input": "*",
"@auro-formkit/auro-menu": "*",
"@aurodesignsystem/auro-formvalidation": "^1.0.4",
"chalk": "^5.3.0",
"lit": "^3.2.1"
},
"peerDependencies": {
"@aurodesignsystem/design-tokens": "^4.9.2",
Expand Down Expand Up @@ -50,8 +50,8 @@
"build:version": "node ./src/scripts/version.mjs",
"build:sass": "sass --no-source-map --load-path=../../node_modules \"./src/styles/:./src/styles/\"",
"build:watch": "nodemon -e scss,js --watch src --ignore \"*.css\" --ignore \"*-css.js\" --exec \"npm run build\"",
"build:docs": "node ../../packages/build-tools/src/docProcessor.mjs --component combobox",
"bundler": "rollup -c node:@auro-formkit/config/rollup",
"build:docs": "wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component combobox",
"clean": "rm -rf dist build",
"dev": "web-dev-server",
"postCss:component": "node ../../node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
Expand Down
10 changes: 10 additions & 0 deletions components/combobox/scripts/wca/auro-combobox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

import { AuroCombobox } from '../../src/auro-combobox.js';

/**
*/
class AuroComboboxWCA extends AuroCombobox {}

if (!customElements.get("auro-combobox")) {
customElements.define("auro-combobox", AuroComboboxWCA);
}
6 changes: 3 additions & 3 deletions components/datepicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
},
"dependencies": {
"@alaskaairux/icons": "^4.44.1",
"@aurodesignsystem/auro-formvalidation": "^1.0.4",
"@aurodesignsystem/auro-popover": "^4.1.0",
"@auro-formkit/auro-dropdown": "*",
"@auro-formkit/auro-input": "*",
"@aurodesignsystem/auro-formvalidation": "^1.0.4",
"@aurodesignsystem/auro-popover": "^4.1.0",
"@material/mwc-icon-button": "^0.27.0",
"@material/mwc-list": "^0.27.0",
"@material/mwc-menu": "^0.27.0",
Expand Down Expand Up @@ -62,8 +62,8 @@
"build:version": "node ./src/scripts/version.mjs",
"build:sass": "sass --no-source-map --load-path=../../node_modules \"./src/styles/:./src/styles/\"",
"build:watch": "nodemon -e scss,js --watch src --ignore \"*.css\" --ignore \"*-css.js\" --exec \"npm run build\"",
"build:docs": "node ../../packages/build-tools/src/docProcessor.mjs --component datepicker",
"bundler": "rollup -c node:@auro-formkit/config/rollup",
"build:docs": "wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component datepicker",
"clean": "rm -rf dist build",
"dev": "web-dev-server",
"postCss:component": "node ../../node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
Expand Down
10 changes: 10 additions & 0 deletions components/datepicker/scripts/wca/auro-datepicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

import { AuroDatePicker } from '../../src/auro-datepicker.js';

/**
*/
class AuroDatePickerWCA extends AuroDatePicker {}

if (!customElements.get("auro-datepicker")) {
customElements.define("auro-datepicker", AuroDatePickerWCA);
}
Loading

0 comments on commit ba484de

Please sign in to comment.