This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ErrorBoundary } from 'react-error-boundary' | |
export const Component = () => ( | |
<ErrorBoundary fallback={<p>Something went wrong ...</p>}> | |
<Suspense fallback={<p>Downloading ...</p>}> | |
<Component /> | |
</Suspense> | |
</ErrorBoundary> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["module:metro-react-native-babel-preset"], | |
"plugins": ["react-require"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ReducerState = { | |
count: number; | |
}; | |
type ReducerAction = | |
| { | |
type: "add"; | |
add: number; | |
} | |
| { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Sentry from "npm:@sentry/node"; | |
const SENTRY_DSN = Deno.env.get("SENTRY_DSN"); | |
if (SENTRY_DSN) { | |
Sentry.init({ | |
dsn: SENTRY_DSN, | |
tracesSampleRate: 1.0, | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
updates: | |
- package-ecosystem: github-actions | |
directory: / | |
schedule: | |
interval: weekly | |
commit-message: | |
prefix: chore | |
- package-ecosystem: npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuperCliTool < Formula | |
desc "Super CLI Tool Release" | |
homepage "https://github.com/user/super-cli-tool.git" | |
version "0.2.1" | |
on_macos do | |
on_arm do | |
url "https://github.com/user/super-cli-tool/releases/download/v0.2.1/super-cli-tool-darwin-arm64.tar.gz" | |
sha256 "c02e55f13d41067e114eede25441d066da994a5800be770388694d0b82967fc8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branches: | |
- '+([0-9])?(.{+([0-9]),x}).x' # maintenance branches like 1.x, 2.0.x, etc | |
- main | |
- name: beta | |
prerelease: true | |
- name: 'feat/*' | |
channel: 'feat-${name.replace(/^feat\//, "")}' # name is a branch name | |
prerelease: 'feat-${name.replace(/^feat\//, "")}' | |
plugins: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tasks": { | |
"start": "deno run --allow-env=PORT --allow-net main.ts" | |
} | |
} |
NewerOlder