Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
"baseBranch": "main",
"access": "public"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'rozenite': minor
"rozenite": minor
---

Plugin templates were updated to use updated dependencies.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Set shas
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v.4.3.3

- name: Typecheck
run: pnpm nx affected -t typecheck

- name: Build
run: pnpm nx affected -t build

- name: Lint
run: pnpm nx affected -t lint

- name: Test
run: pnpm nx affected -t test
- name: Fetch base branch
if: github.event_name == 'pull_request'
run: git fetch origin ${{ github.event.pull_request.base.ref }}

- name: Validate
env:
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && format('origin/{0}', github.event.pull_request.base.ref) || 'HEAD~1' }}
run: pnpm turbo run typecheck build lint test --affected
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Thumbs.db
.nx/workspace-data
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
.turbo

vite.config.*.timestamp*
vitest.config.*.timestamp*
Expand Down Expand Up @@ -122,4 +123,4 @@ yarn-error.log
.vscode/

# Expo
.expo/
.expo/
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node-linker=hoisted
auto-install-peers=false
strict-peer-dependencies=false
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ All development is done directly on GitHub, and all work is public. Contributors
3. Run `pnpm build:all` to build all packages.
4. Do the changes you want and test them out in the playground app (`apps/playground`) before sending a pull request.

This repository uses Nx to maintain the monorepository. I strongly advise you to briefly go through the [Nx documentation](https://nx.dev/docs/getting-started/intro) to make sure you understand the basic rules of working with this technology.
This repository uses Turborepo to maintain the monorepository and Changesets for version plans.

### Testing your changes

Expand Down Expand Up @@ -65,7 +65,7 @@ When developing plugins, you can test them in the playground app using developme
```
2. **Set development mode**: Set the `ROZENITE_DEV_MODE` environment variable to your plugin name:
```bash
ROZENITE_DEV_MODE=my-plugin-name pnpm nx start playground
ROZENITE_DEV_MODE=my-plugin-name pnpm start:playground
```
3. **Test your plugin**: Your plugin will be loaded in development mode and you can test it in the DevTools interface.

Expand All @@ -88,4 +88,4 @@ The documentation is a part of the website, which is stored in the `website` dir

## License

By contributing to Rozenite, you agree that your contributions will be licensed under its **MIT** license.
By contributing to Rozenite, you agree that your contributions will be licensed under its **MIT** license.
25 changes: 0 additions & 25 deletions apps/playground/.babelrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions apps/playground/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/
expo-env.d.ts

# Native
.kotlin/
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo

app-example

# generated native folders
ios/
android/
9 changes: 0 additions & 9 deletions apps/playground/Gemfile

This file was deleted.

26 changes: 23 additions & 3 deletions apps/playground/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
# Playground

This app uses React Native Community CLI, so make sure you have your [environment setup to build native apps](https://reactnative.dev/docs/environment-setup).
Expo-based playground app for testing Rozenite devtools plugins.

You can then use Xcode/Android Studio/Gradle to build applications, or run `pnpm nx start playground` and `pnpm nx run-ios playground`/`pnpm nx run-android playground` to start the development server and run applications in development mode.
## Prerequisites

You can also start the development server from the root workspace by executing `pnpm start:playground`.
Make sure you have your [environment setup to build native apps](https://reactnative.dev/docs/environment-setup).

## Running the app

From the root workspace:

- `pnpm start:playground` – start the Expo dev server
- `pnpm start:playground:ios` – run on iOS
- `pnpm start:playground:android` – run on Android

From this directory (`apps/playground`):

- `pnpm start` – start Expo dev server
- `pnpm ios` – run on iOS
- `pnpm android` – run on Android
- `pnpm web` – run in web browser

## Development

- `pnpm typecheck` – run TypeScript checks
- `pnpm lint` – run ESLint
122 changes: 0 additions & 122 deletions apps/playground/android/app/build.gradle

This file was deleted.

Binary file removed apps/playground/android/app/debug.keystore
Binary file not shown.
10 changes: 0 additions & 10 deletions apps/playground/android/app/proguard-rules.pro

This file was deleted.

10 changes: 0 additions & 10 deletions apps/playground/android/app/src/debug/AndroidManifest.xml

This file was deleted.

17 changes: 0 additions & 17 deletions apps/playground/android/app/src/main/AndroidManifest.xml

This file was deleted.

Loading
Loading