Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build for MAUI xaml #4868

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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