Skip to content
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
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deployment

on:
push:
branches: [master]
pull_request:
branches: [master]

concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: docs/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: ./docs

- name: Build website
run: npm run build
working-directory: ./docs

- name: Upload build artifacts
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build

deploy:
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
*.txt
/node_modules
/dist
node_modules
./node_modules
.jest-cache
coverage
dist
docs/node_modules
docs/.docusaurus
bundle-analysis.html
40 changes: 37 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
.github/
src/
examples/
tests/
tsconfig.json
__tests__/
*.test.ts
*.test.js
*.spec.ts
*.spec.js
tsconfig.json
tsconfig.*.json
rollup.config.js
rollup.config.prod.js
vite.config.js
jest.config.js
.eslintrc.js
.prettierrc
docs/
docs_/
*.md
!README.md
!CHANGELOG.md
!LICENSE.md
node_modules/
.npm/
package-lock.json
coverage/
.nyc_output/
.jest-cache/
test-results/
bundle-analysis.html
analyze.js
.npm
.eslintcache
*.png
*.jpg
*.jpeg
*.gif
*.ico
*.txt
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true
}
Loading