Skip to content

Commit db09e24

Browse files
vonovakqmatteoq
andauthored
feat: rework module using react native bob (#421)
* feat: rework module using react native bob * chore: rebase * Added windows example (not working for the moment) * Fixed implementation of the Windows example * Fixed Lint issues * Fixed a missing Lint issue * Fixed another missing Lint issue * fix: fixed all the pending Lint issues * Added pickDirectory() implementation for Windows (proper PR) (#444) * feat: added pickDirectory implementation for Windows * fix: fixed typo in property name Co-authored-by: Matteo Pagani <[email protected]>
1 parent 89e59d1 commit db09e24

File tree

111 files changed

+38253
-2450
lines changed

Some content is hidden

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

111 files changed

+38253
-2450
lines changed

.circleci/config.yml

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
version: 2.1
2+
3+
executors:
4+
default:
5+
docker:
6+
- image: circleci/node:10
7+
working_directory: ~/project
8+
9+
commands:
10+
attach_project:
11+
steps:
12+
- attach_workspace:
13+
at: ~/project
14+
15+
jobs:
16+
install-dependencies:
17+
executor: default
18+
steps:
19+
- checkout
20+
- attach_project
21+
- restore_cache:
22+
keys:
23+
- dependencies-{{ checksum "package.json" }}
24+
- dependencies-
25+
- restore_cache:
26+
keys:
27+
- dependencies-example-{{ checksum "example/package.json" }}
28+
- dependencies-example-
29+
- run:
30+
name: Install dependencies
31+
command: |
32+
yarn install --cwd example --frozen-lockfile
33+
yarn install --frozen-lockfile
34+
- save_cache:
35+
key: dependencies-{{ checksum "package.json" }}
36+
paths: node_modules
37+
- save_cache:
38+
key: dependencies-example-{{ checksum "example/package.json" }}
39+
paths: example/node_modules
40+
- persist_to_workspace:
41+
root: .
42+
paths: .
43+
44+
lint:
45+
executor: default
46+
steps:
47+
- attach_project
48+
- run:
49+
name: Lint files
50+
command: |
51+
yarn lint
52+
53+
typescript:
54+
executor: default
55+
steps:
56+
- attach_project
57+
- run:
58+
name: Typecheck files
59+
command: |
60+
yarn typescript
61+
62+
unit-tests:
63+
executor: default
64+
steps:
65+
- attach_project
66+
- run:
67+
name: Run unit tests
68+
command: |
69+
yarn test --coverage
70+
- store_artifacts:
71+
path: coverage
72+
destination: coverage
73+
74+
build-package:
75+
executor: default
76+
steps:
77+
- attach_project
78+
- run:
79+
name: Build package
80+
command: |
81+
yarn prepare
82+
83+
workflows:
84+
build-and-test:
85+
jobs:
86+
- install-dependencies
87+
- lint:
88+
requires:
89+
- install-dependencies
90+
- typescript:
91+
requires:
92+
- install-dependencies
93+
- unit-tests:
94+
requires:
95+
- install-dependencies
96+
- build-package:
97+
requires:
98+
- install-dependencies

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
indent_style = space
10+
indent_size = 2
11+
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true

.eslintrc.js

-3
This file was deleted.

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=crlf

.gitignore

+20-38
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#
33
.DS_Store
44

5+
# XDE
6+
.expo/
7+
8+
# VSCode
9+
.vscode/
10+
jsconfig.json
11+
512
# Xcode
613
#
714
build/
@@ -22,57 +29,32 @@ DerivedData
2229
*.xcuserstate
2330
project.xcworkspace
2431

25-
# Android/IntelliJ
32+
# Android/IJ
2633
#
27-
build/
2834
.idea
2935
.gradle
3036
local.properties
31-
*.iml
32-
gradlew
33-
gradlew.bat
34-
android/gradle/wrapper/
37+
android.iml
38+
39+
# Cocoapods
40+
#
41+
example/ios/Pods
3542

3643
# node.js
3744
#
3845
node_modules/
3946
npm-debug.log
47+
yarn-debug.log
4048
yarn-error.log
4149

4250
# BUCK
4351
buck-out/
4452
\.buckd/
45-
*.keystore
46-
47-
# CocoaPods
48-
#
49-
# We recommend against adding the Pods directory to your .gitignore. However
50-
# you should judge for yourself, the pros and cons are mentioned at:
51-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
52-
#
53-
# Pods/
53+
android/app/libs
54+
android/keystores/debug.keystore
5455

55-
# Carthage
56-
#
57-
# Add this line if you want to avoid checking in source code from Carthage dependencies.
58-
# Carthage/Checkouts
59-
60-
Carthage/Build
61-
62-
# fastlane
63-
#
64-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
65-
# screenshots whenever they are needed.
66-
# For more information about the recommended setup visit:
67-
# https://docs.fastlane.tools/best-practices/source-control/
68-
69-
*/fastlane/report.xml
70-
*/fastlane/Preview.html
71-
*/fastlane/screenshots
72-
73-
#Code Injection
74-
#
75-
# After new code Injection tools there's a generated folder /iOSInjectionProject
76-
# https://github.com/johnno1962/injectionforxcode
56+
# Expo
57+
.expo/*
7758

78-
iOSInjectionProject/
59+
# generated by bob
60+
lib/

.prettierrc.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module.exports = {
22
printWidth: 100,
33
singleQuote: true,
4-
trailingComma: 'es5',
5-
};
4+
trailingComma: 'all',
5+
quoteProps: 'consistent',
6+
useTabs: false,
7+
semi: false,
8+
}

.yarnrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Override Yarn command so we can automatically setup the repo on running `yarn`
2+
3+
yarn-path "scripts/bootstrap.js"

0 commit comments

Comments
 (0)