Skip to content

Commit

Permalink
refactor: rewrite in astro (#197)
Browse files Browse the repository at this point in the history
* refactor: rewrite in astro

Closes #196.

* fix: remove unused import

* chore: change typecheck script

* test: add tests

* chore: add netlify adapter

* refactor: try trpc

* fix: import type specifier

* fix: use uppercase route names

* fix: type imports, environment variables

* refactor: rearrange type imports + eslint rule

* fix: trpc base url

* feat: try to add wipe effects

* feat: pre-stream scenes

* refactor: move trpc provider

* fix: type errors

* feat: time signal block

* chore: add nvmrc

* chore: reorder tsconfig paths

* fix: variant on prestream layers

* feat: studio clock scene

* feat: studio clock scene

* chore: upgrade dependencies

* chore: upgrade more deps

* chore: add eslint

* perf: use fallbacks in client:only="react" components

* feat: bottom bar section

* chore: upgrade deps

* chore: migrate to `@epic-web/config`

* feat: studio-clock-obs block

* feat: capture guard + countdown timer block

* update blocks list

* remove overlays option

* fix: fragments

* fix: optional chaining on notion sdk calls

* chore: fix validate script
  • Loading branch information
resir014 authored Jan 29, 2025
1 parent a53a823 commit 485f5f5
Show file tree
Hide file tree
Showing 226 changed files with 6,944 additions and 8,490 deletions.
18 changes: 0 additions & 18 deletions .editorconfig

This file was deleted.

62 changes: 0 additions & 62 deletions .eslintrc.js

This file was deleted.

14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# =========================
# Node.js-Specific Ignores
# =========================
# Build output
dist/
.netlify/

# Build directory
.next/
# Generated types
.astro/

# Static export path
out/
# JetBrains setting folder
.idea/

# swc
.swc/
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/iron
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

15 changes: 15 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import defaultConfig from '@epic-web/config/prettier';

/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
...defaultConfig,
printWidth: 100,
semi: true,
trailingComma: 'es5',
useTabs: false,
};

export default config;
13 changes: 0 additions & 13 deletions .stylelintrc

This file was deleted.

31 changes: 31 additions & 0 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/** @type {import('stylelint').Config} */
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-html/html',
'stylelint-config-html/astro',
],
rules: {
'unit-allowed-list': [
'em',
'rem',
'ms',
'ch',
's',
'px',
'%',
'deg',
'fr',
'vh',
'vw',
'svh',
'svw',
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind'],
},
],
},
};
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"recommendations": ["EditorConfig.EditorConfig", "esbenp.prettier-vscode"]
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
13 changes: 11 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
"typescript.tsdk": "node_modules/typescript/lib",
"css.validate": false,
"stylelint.enable": true,
"deno.enable": false,
"dotenv.enableAutocloaking": true
"editor.defaultFormatter": "esbenp.prettier-vscode",
"dotenv.enableAutocloaking": true,
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
14 changes: 14 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check
import netlify from '@astrojs/netlify';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: netlify({
edgeMiddleware: true,
}),
integrations: [tailwind(), react()],
});
1 change: 0 additions & 1 deletion env.d.ts

This file was deleted.

54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { config as defaultConfig } from '@epic-web/config/eslint';
import { FlatCompat } from '@eslint/eslintrc';
import js from '@eslint/js';
import globals from 'globals';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...defaultConfig,
{
ignores: ['.astro/*'],
},
...compat.extends('eslint-config-gsap').map((config) => ({
...config,
files: ['templates/**/*.{js,jsx,ts,tsx}'],
})),
{
files: ['templates/**/*.{js,jsx,ts,tsx}'],

languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
...globals.jquery,
gsap: true,
md5: true,
},
},

rules: {},
},
{
files: ['**/*.(d.)?ts(x)?'],

languageOptions: {
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
project: './tsconfig.json',
},
},

rules: {},
},
];
21 changes: 0 additions & 21 deletions jest.config.ts

This file was deleted.

2 changes: 0 additions & 2 deletions jest.setup.ts

This file was deleted.

5 changes: 0 additions & 5 deletions next-env.d.ts

This file was deleted.

44 changes: 0 additions & 44 deletions next.config.js

This file was deleted.

Loading

0 comments on commit 485f5f5

Please sign in to comment.