Skip to content

Commit 422b1d9

Browse files
committed
Initial commit from Create ODD App
0 parents  commit 422b1d9

File tree

149 files changed

+19724
-0
lines changed

Some content is hidden

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

149 files changed

+19724
-0
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.eslintrc.cjs
2+
svelte.config.js
3+
tsnode-loader.js
4+
src/hooks.ts

.eslintrc.cjs

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
ecmaVersion: 2020,
5+
sourceType: 'module',
6+
tsconfigRootDir: __dirname,
7+
project: ['./tsconfig.json'],
8+
extraFileExtensions: ['.svelte']
9+
},
10+
env: {
11+
es6: true,
12+
browser: true
13+
},
14+
settings: {
15+
'svelte3/typescript': () => require('typescript'),
16+
},
17+
plugins: ['svelte3', '@typescript-eslint'],
18+
ignorePatterns: ['node_modules'],
19+
extends: [
20+
'eslint:recommended',
21+
'plugin:@typescript-eslint/recommended',
22+
// 'plugin:@typescript-eslint/recommended-requiring-type-checking'
23+
],
24+
overrides: [
25+
{
26+
files: ['*.svelte'],
27+
processor: 'svelte3/svelte3'
28+
}
29+
],
30+
rules: {
31+
"@typescript-eslint/ban-ts-comment": ['error', { 'ts-ignore': 'allow-with-description'}],
32+
'@typescript-eslint/member-delimiter-style': ['error', {
33+
'multiline': {
34+
'delimiter': 'none',
35+
'requireLast': false
36+
}
37+
}],
38+
'@typescript-eslint/no-use-before-define': ['off'],
39+
'@typescript-eslint/semi': ['error', 'never'],
40+
'@typescript-eslint/quotes': ['error', 'single', {
41+
allowTemplateLiterals: true
42+
}],
43+
// If you want to *intentionally* run a promise without awaiting, prepend it with "void " instead of "await "
44+
'@typescript-eslint/no-floating-promises': ['error']
45+
}
46+
}

.github/PULL_REQUEST_TEMPLATE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Description
2+
3+
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
## Link to issue
6+
7+
Please add a link to any relevant issues/tickets
8+
9+
## Type of change
10+
11+
Please delete options that are not relevant.
12+
13+
- [ ] Bug fix (non-breaking change that fixes an issue)
14+
- [ ] New feature (non-breaking change that adds functionality)
15+
- [ ] Refactor (non-breaking change that updates existing functionality)
16+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
17+
- [ ] This change requires a documentation update
18+
- [ ] Comments have been added/updated
19+
20+
## Screenshots/Screencaps
21+
22+
Please add previews of any UI Changes

.github/workflows/playwright.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Playwright Tests
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
test_setup:
9+
name: Test setup
10+
runs-on: ubuntu-latest
11+
outputs:
12+
preview_url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }}
13+
steps:
14+
- name: Wait for Vercel preview deployment to be ready
15+
uses: patrickedqvist/wait-for-vercel-preview@main
16+
id: waitForVercelPreviewDeployment
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
max_timeout: 300
20+
test_e2e:
21+
needs: test_setup
22+
name: Playwright tests
23+
timeout-minutes: 5
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Prepare testing env
27+
uses: actions/checkout@v2
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: "16"
31+
- run: npm ci
32+
- run: npx playwright install --with-deps
33+
- name: Run tests
34+
run: npm run test:e2e
35+
env:
36+
PLAYWRIGHT_TEST_BASE_URL: ${{ needs.test_setup.outputs.preview_url }}

.github/workflows/publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 🚀 Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
publish_job:
8+
name: '🚀 Publish'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 📥 Checkout repository
12+
uses: actions/checkout@v2
13+
- name: 🧱 Setup node
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '16'
17+
- name: 📦 Install packages
18+
run: npm install
19+
- name: 🏗 Build assets
20+
run: npm run build
21+
- name: 🚀 Publish to production
22+
uses: fission-suite/publish-action@v1
23+
with:
24+
machine_key: ${{ secrets.FISSION_MACHINE_KEY }}
25+
app_url: odd-template.fission.app
26+
build_dir: ./build

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# node
2+
node_modules/
3+
4+
# svelte
5+
.svelte-kit/
6+
build/
7+
8+
# macOS
9+
.DS_Store
10+
11+
# playwright
12+
/test-results/
13+
/playwright-report/
14+
/playwright/.cache/

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierrc.cjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
htmlWhitespaceSensitivity: 'ignore',
4+
semi: false,
5+
singleQuote: true,
6+
svelteBracketNewLine: true,
7+
svelteSortOrder: 'options-scripts-markup-styles',
8+
svelteStrictMode: false,
9+
svelteIndentScriptAndStyle: true,
10+
tabWidth: 2,
11+
trailingComma: 'none',
12+
overrides: [
13+
{
14+
files: '*.md',
15+
options: {
16+
tabWidth: 4,
17+
}
18+
}
19+
]
20+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Fission
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)