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
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ jobs:
uses: ./.github/actions/setup

- name: Generate grammars
working-directory: packages/react-native-libprisma
run: bun run embed-grammars

- name: Lint files
working-directory: packages/react-native-libprisma
run: bun run lint

- name: Typecheck files
working-directory: packages/react-native-libprisma
run: bun run typecheck

test:
Expand All @@ -45,6 +48,7 @@ jobs:
uses: ./.github/actions/setup

- name: Generate grammars
working-directory: packages/react-native-libprisma
run: bun run embed-grammars

- name: Run unit tests
Expand All @@ -61,6 +65,7 @@ jobs:
uses: ./.github/actions/setup

- name: Build package
working-directory: packages/react-native-libprisma
run: bun run prepare

build-android:
Expand Down Expand Up @@ -113,7 +118,7 @@ jobs:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('examples/mobile/android/gradle/wrapper/gradle-wrapper.properties') }}
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

Expand Down Expand Up @@ -165,12 +170,12 @@ jobs:

- name: Prebuild native directories
if: env.turbo_cache_hit != 1
working-directory: examples/mobile
working-directory: example
run: bunx expo prebuild --no-install

- name: Install CocoaPods
if: env.turbo_cache_hit != 1
working-directory: examples/mobile/ios
working-directory: example/ios
run: pod install

- name: Build example for iOS
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ jobs:
run: bun install --frozen-lockfile

- name: Generate grammars
working-directory: packages/react-native-libprisma
run: bun run embed-grammars

- name: Build package
working-directory: packages/react-native-libprisma
run: bun run prepare

- name: Publish to NPM
working-directory: packages/react-native-libprisma
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
npm publish
Expand Down
136 changes: 111 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.expo/

# VSCode
.vscode/
jsconfig.json
.vscode/

# Xcode
build/
Expand All @@ -26,35 +26,39 @@ DerivedData
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local

# Android / IntelliJ
# Android/IJ
.classpath
.cxx/
.gradle/
.idea/
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods (ignore ALL pods folders)
**/Pods/
Podfile.lock
# Cocoapods
example/ios/Pods

# Ruby
**/Vendor/
example/vendor/

# Node.js
# node.js
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
.yarn/*
vendor/

# Bun
package-lock.json
**/*.bun

# BUCK
buck-out/
.buckd/
android/app/libs/
\.buckd/
android/app/libs
android/keystores/debug.keystore

# Yarn
Expand All @@ -66,21 +70,103 @@ android/keystores/debug.keystore
!.yarn/versions

# Expo
.expo/
.expo/*

# generated by bob
lib/

# Built application files
*.apk
*.aar
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Turborepo
.turbo/
# Generated files
bin/
gen/
out/

# Generated by bob
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
.idea/caches
.idea/modules.xml
.idea/navEditor.xml

# Keystore files
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/

# Android Profiling
*.hprof

# Release
.npmrc

# nitrogen generated files
nitrogen/generated/

# generated by bob
lib/

# React Native Codegen
ios/generated/
android/generated/
# TypeScript
tsconfig.tsbuildinfo

# jenv
.java-version

# React Native Nitro Modules
nitrogen/
# development stuffs
*scratch*

# Embedded grammar file
cpp/EmbeddedGrammars.h
src/grammars.ts
# Allow agent configuration
!.agent
!.agent/**
Loading