Skip to content

Commit 053d4df

Browse files
Initial commit
0 parents  commit 053d4df

213 files changed

Lines changed: 48714 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"project": "./tsconfig.json",
6+
"ecmaVersion": 2020, // Allows for the parsing of modern JS
7+
"ecmaFeatures": {
8+
"jsx": true // Allows for the parsing of JSX
9+
}
10+
},
11+
"ignorePatterns": [
12+
"docs",
13+
"package-lock.json",
14+
"package.json",
15+
"!.stylelintrc.json",
16+
"*.md",
17+
"*.css",
18+
"dist"
19+
],
20+
"extends": ["airbnb-typescript", "plugin:prettier/recommended"],
21+
"plugins": ["@typescript-eslint", "import", "react", "prettier"],
22+
"rules": {
23+
"@typescript-eslint/no-explicit-any": "off", // allow any because template often can't predict users' types
24+
"@typescript-eslint/no-use-before-define": "off",
25+
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
26+
"react/no-danger": "off", // it's self explainatory that no-danger should be used sparingly
27+
"react/prop-types": "off", // as long as TS strict mode is off this is not required
28+
"react/jsx-props-no-spreading": "off",
29+
"react/react-in-jsx-scope": "off",
30+
"no-console": "error", // no console statements allowed,
31+
"no-plusplus": "off",
32+
"prettier/prettier": "off" // don't show prettier errors as it will be fixed when saved anyway
33+
},
34+
"settings": {
35+
"react": {
36+
"version": "detect"
37+
}
38+
},
39+
"env": {
40+
"node": true,
41+
"browser": true,
42+
"amd": true
43+
}
44+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Live example
3+
about: Example of web apps that implement Task Flows
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**What Task Flows does your example show?**
11+
List the [Task Flows](https://strudel.science/design-system/task-flows/overview/) you are demonstrating.
12+
13+
**Please share the link to the website you will share as an example.**
14+
Share the link that will go in the .mdx file you edit.
15+
16+
**Do you or your organization own the website in this example?**
17+
18+
**Please share a sentence or two that describes your example.**
19+
You might describe the purpose of the website or the audience it serves.
20+
21+
**Anything else?**

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/deploy.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Runs on pushes to the main branch
5+
push:
6+
branches: ['main']
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: 'pages'
21+
cancel-in-progress: false
22+
23+
# Default to bash
24+
defaults:
25+
run:
26+
shell: bash
27+
28+
jobs:
29+
# Build job
30+
build:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '20'
39+
- name: Install docs dependencies
40+
run: |
41+
cd docs
42+
npm install
43+
- name: Install demo dependencies
44+
run: npm install
45+
- name: Build docs
46+
run: |
47+
cd docs
48+
npm run build
49+
- name: Build demo
50+
run: npm run build
51+
env:
52+
VITE_BASE_URL: /strudel-kit/demo/
53+
- name: Deploy docs
54+
run: |
55+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
56+
cd docs
57+
npx gh-pages -d build -e docs -u "github-actions-bot <support+actions@github.com>"
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
- name: Deploy demo
61+
run: |
62+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
63+
npx gh-pages -d dist -e demo -u "github-actions-bot <support+actions@github.com>"
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
types: [opened, reopened]
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
- name: Install taskflow dependencies
19+
run: npm install
20+
- name: Run ESLint
21+
run: npm run lint:fix
22+
- name: Run Prettier
23+
run: npm run prettier:fix
24+
cypress-tests:
25+
runs-on: ubuntu-22.04
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
# Install npm dependencies, cache them correctly
30+
# and run all Cypress tests
31+
- name: Cypress run
32+
uses: cypress-io/github-action@v6
33+
with:
34+
browser: chrome
35+
start: npm start

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules/
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
build/
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
__pycache__
22+
23+
# distribution files
24+
dist/
25+
26+
.docusaurus
27+
# generouted
28+
router.ts
29+
30+
# Logs
31+
logs
32+
*.log
33+
npm-debug.log*
34+
yarn-debug.log*
35+
yarn-error.log*
36+
pnpm-debug.log*
37+
lerna-debug.log*
38+
39+
dist-ssr
40+
*.local
41+
.vite
42+
43+
# Editor directories and files
44+
.vscode/*
45+
!.vscode/extensions.json
46+
.idea
47+
*.suo
48+
*.ntvs*
49+
*.njsproj
50+
*.sln
51+
*.sw?
52+
53+
# Test taskflow configs
54+
_*.config.ts
55+
56+
# Cypress
57+
**/cypress/screenshots/
58+
59+
# Cache
60+
.eslintcache

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js,jsx,ts,tsx,css,md,mdx}": ["eslint --cache --fix", "prettier --write"]
3+
}

0 commit comments

Comments
 (0)