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

Add vue APP #3

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: "tsconfig.lint.json",
project: "tsconfig.node.json",
tsconfigRootDir: __dirname,
},
plugins: ['react-refresh', 'prettier'],
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,29 @@ jobs:
env:
CI: true

cypress:
runs-on: ubuntu-latest
strategy:
matrix:
browsers:
- chrome
- firefox
- edge
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
config-file: 'test/component/cypress.config.ts'
start: npm run vue:component:serve
browser: ${{ matrix.browsers }}

status-checks:
name: status-checks
needs: [build]
needs:
- build
- cypress
permissions:
contents: none
if: always()
Expand All @@ -38,7 +58,7 @@ jobs:
run: |
echo 'Configuration for Status checks that are required'
echo '${{ toJSON(needs) }}'
if [[ ('skipped' == '${{ needs.build.result }}') || ('success' == '${{ needs.build.result }}') ]]; then
if [[ (('skipped' == '${{ needs.build.result }}') || ('success' == '${{ needs.build.result }}')) && (('skipped' == '${{ needs.cypress.result }}') || ('success' == '${{ needs.cypress.result }}')) ]]; then
exit 0
fi
exit 1
1 change: 1 addition & 0 deletions config/react/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_FWK=react
1 change: 1 addition & 0 deletions config/vue/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_FWK=vue
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Library using React</title>
<title>Library</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading