Skip to content

Commit

Permalink
chore: update rive
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Jan 1, 2025
1 parent 03426bf commit d3595ee
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 54 deletions.
10 changes: 5 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
max_line_length = 100
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 100
quote_type = single
trim_trailing_whitespace = true
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 8
version: latest
- run: pnpm install
- run: pnpm run lint
test:
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 8
version: latest
- run: pnpm install
- run: pnpm run test
build:
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 8
version: latest
- run: pnpm install
- run: pnpm run build
- run: cd packages/f2elint && pnpm run build
46 changes: 20 additions & 26 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,29 @@ on:
push:
branches:
- main
pull_request:

jobs:
deploy:
name: Deploy
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4

- name: Setup pnpm
uses: pnpm/action-setup@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Install
run: pnpm install
- name: Build
run: pnpm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
version: latest
- run: pnpm install
- run: pnpm run build
- uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
path: build/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.rive
.DS_Store
build
/.rive
/build
/coverage
/dist
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
*.min.css
*.min.js
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"stylelint.validate": ["css", "less", "scss"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit",
"source.organizeImports": "explicit"
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
Expand Down Expand Up @@ -41,5 +47,8 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.ejs": "plaintext"
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"target": "es2015",
"target": "es2017",
"module": "esnext",
"esModuleInterop": true,
"resolveJsonModule": true,
"types": ["node", "rive/globals"],
"lib": ["esnext"],
"allowJs": false,
"allowJs": true,
"checkJs": false,
"skipLibCheck": true,
"moduleResolution": "node",
Expand Down

0 comments on commit d3595ee

Please sign in to comment.