Skip to content

Commit c876ddf

Browse files
chore: migrate code from formbricks main repository
* feat(create-turbo): apply official-starter transform * feat(create-turbo): apply pnpm-eslint transform * feat(create-turbo): install dependencies * chore: migrate code from main repo * add types * fix build errors --------- Co-authored-by: Turbobot <[email protected]>
1 parent 3a409af commit c876ddf

Some content is hidden

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

79 files changed

+19366
-3
lines changed

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
# Local env files
9+
.env
10+
.env.local
11+
.env.development.local
12+
.env.test.local
13+
.env.production.local
14+
15+
# Testing
16+
coverage
17+
18+
# Turbo
19+
.turbo
20+
21+
# Vercel
22+
.vercel
23+
24+
# Build Outputs
25+
.next/
26+
out/
27+
build
28+
dist
29+
30+
31+
# Debug
32+
npm-debug.log*
33+
yarn-debug.log*
34+
yarn-error.log*
35+
36+
# Misc
37+
.DS_Store
38+
*.pem

.npmrc

Whitespace-only changes.

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"eslint.workingDirectories": [
3+
{
4+
"mode": "auto"
5+
}
6+
]
7+
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Formbricks
3+
Copyright (c) 2025 Formbricks GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,84 @@
1-
# react-native
2-
Formbricks React-Native SDK
1+
# Turborepo starter
2+
3+
This Turborepo starter is maintained by the Turborepo core team.
4+
5+
## Using this example
6+
7+
Run the following command:
8+
9+
```sh
10+
npx create-turbo@latest
11+
```
12+
13+
## What's inside?
14+
15+
This Turborepo includes the following packages/apps:
16+
17+
### Apps and Packages
18+
19+
- `docs`: a [Next.js](https://nextjs.org/) app
20+
- `web`: another [Next.js](https://nextjs.org/) app
21+
- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications
22+
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
23+
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
24+
25+
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
26+
27+
### Utilities
28+
29+
This Turborepo has some additional tools already setup for you:
30+
31+
- [TypeScript](https://www.typescriptlang.org/) for static type checking
32+
- [ESLint](https://eslint.org/) for code linting
33+
- [Prettier](https://prettier.io) for code formatting
34+
35+
### Build
36+
37+
To build all apps and packages, run the following command:
38+
39+
```
40+
cd my-turborepo
41+
pnpm build
42+
```
43+
44+
### Develop
45+
46+
To develop all apps and packages, run the following command:
47+
48+
```
49+
cd my-turborepo
50+
pnpm dev
51+
```
52+
53+
### Remote Caching
54+
55+
> [!TIP]
56+
> Vercel Remote Cache is free for all plans. Get started today at [vercel.com](https://vercel.com/signup?/signup?utm_source=remote-cache-sdk&utm_campaign=free_remote_cache).
57+
58+
Turborepo can use a technique known as [Remote Caching](https://turborepo.com/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
59+
60+
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup?utm_source=turborepo-examples), then enter the following commands:
61+
62+
```
63+
cd my-turborepo
64+
npx turbo login
65+
```
66+
67+
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
68+
69+
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
70+
71+
```
72+
npx turbo link
73+
```
74+
75+
## Useful Links
76+
77+
Learn more about the power of Turborepo:
78+
79+
- [Tasks](https://turborepo.com/docs/core-concepts/monorepos/running-tasks)
80+
- [Caching](https://turborepo.com/docs/core-concepts/caching)
81+
- [Remote Caching](https://turborepo.com/docs/core-concepts/remote-caching)
82+
- [Filtering](https://turborepo.com/docs/core-concepts/monorepos/filtering)
83+
- [Configuration Options](https://turborepo.com/docs/reference/configuration)
84+
- [CLI Usage](https://turborepo.com/docs/reference/command-line-reference)

apps/playground/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
EXPO_PUBLIC_APP_URL=http://192.168.0.197:3000
2+
EXPO_PUBLIC_FORMBRICKS_ENVIRONMENT_ID=cm5p0cs7r000819182b32j0a1

apps/playground/.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: ["@formbricks/eslint-config/react.js"],
3+
parserOptions: {
4+
project: "tsconfig.json",
5+
tsconfigRootDir: __dirname,
6+
},
7+
};

apps/playground/.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
11+
# Native
12+
*.orig.*
13+
*.jks
14+
*.p8
15+
*.p12
16+
*.key
17+
*.mobileprovision
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
26+
27+
# macOS
28+
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo

apps/playground/.npmrc

Whitespace-only changes.

apps/playground/app.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"expo": {
3+
"android": {
4+
"adaptiveIcon": {
5+
"backgroundColor": "#ffffff",
6+
"foregroundImage": "./assets/adaptive-icon.png"
7+
}
8+
},
9+
"assetBundlePatterns": ["**/*"],
10+
"icon": "./assets/icon.png",
11+
"ios": {
12+
"infoPlist": {
13+
"NSCameraUsageDescription": "Take pictures for certain activities.",
14+
"NSMicrophoneUsageDescription": "Need microphone access for recording videos.",
15+
"NSPhotoLibraryUsageDescription": "Select pictures for certain activities."
16+
},
17+
"supportsTablet": true
18+
},
19+
"jsEngine": "hermes",
20+
"name": "react-native-demo",
21+
"newArchEnabled": true,
22+
"orientation": "portrait",
23+
"slug": "react-native-demo",
24+
"splash": {
25+
"backgroundColor": "#ffffff",
26+
"image": "./assets/splash.png",
27+
"resizeMode": "contain"
28+
},
29+
"userInterfaceStyle": "light",
30+
"version": "1.0.0",
31+
"web": {
32+
"favicon": "./assets/favicon.png"
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)