Skip to content

Commit

Permalink
chore: add XAML build for Progress Design System
Browse files Browse the repository at this point in the history
  • Loading branch information
panayot-cankov committed Jan 30, 2024
1 parent e457fb8 commit 294fc10
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .eslintrc.json
Expand Up @@ -97,6 +97,31 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
},
{
"files": [
"scripts/build-xaml.ts"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-cond-assign": "off",
"no-console": "off",
"no-constant-condition": "off",
"indent": "off",
"space-before-function-paren": "off",
"no-case-declarations": "off",
"eqeqeq": "off"
}
}
]
}
15 changes: 15 additions & 0 deletions .github/workflows/_compile-themes.yml
Expand Up @@ -39,6 +39,10 @@ jobs:
run: |
npm run sass
- name: Build XAML assets
run: |
npm run build:xaml
- name: Build swatch for a11y tests
run: |
npm run dist:swatches
Expand All @@ -61,3 +65,14 @@ jobs:
with:
name: themes
path: themes.tar

- name: Pack XAML Themes
run: |
tar -cf xaml.tar \
dist/xaml
- name: Upload xaml
uses: actions/upload-artifact@v3
with:
name: xaml
path: xaml.tar
156 changes: 156 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -36,6 +36,7 @@
"stylelint-config-standard": "^36.0.0",
"stylelint-config-standard-scss": "^12.0.0",
"stylelint-scss": "^6.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.0.3"
},
"peerDependencies": {
Expand Down Expand Up @@ -71,7 +72,8 @@
"embed-assets": "gulp assets",
"create-component": "gulp create-component",
"test-contrast": "node ./scripts/test-contrast.mjs",
"test:integrations": "npm run build --prefix integrations"
"test:integrations": "npm run build --prefix integrations",
"build:xaml": "ts-node ./scripts/build-xaml.ts"
},
"engines": {
"node": "^20"
Expand Down

0 comments on commit 294fc10

Please sign in to comment.