Skip to content

Commit

Permalink
Setup basic monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Aug 27, 2023
1 parent a7bf239 commit 6233002
Show file tree
Hide file tree
Showing 118 changed files with 2,894 additions and 612 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
npm-package/lib/
lib/
*.tmpl.js
*.bundle.js
dist/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
id: test
run: |
yarn
cd npm-package && yarn && cd ..
yarn test
yarn build
yarn test
cd packages/app
xvfb-run --auto-servernum yarn test-e2e
- name: Upload artifacts on failure
if: ${{ failure() && steps.test.conclusion == 'failure' }}
Expand All @@ -44,9 +44,9 @@ jobs:
id: test
run: |
yarn
cd npm-package && yarn && cd ..
yarn test
yarn build
yarn test
cd packages/app
yarn test-e2e
- name: Upload artifacts on failure
if: ${{ failure() && steps.test.conclusion == 'failure' }}
Expand All @@ -69,9 +69,9 @@ jobs:
run: |
yarn config set network-timeout 500000 -g
yarn
cd npm-package && yarn && cd ..
yarn build
yarn test
cd packages/app
yarn test-e2e
- name: Upload artifacts on failure
if: ${{ failure() && steps.test.conclusion == 'failure' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
run: |
yarn
yarn build
cd packages/app
yarn pack-linux
- name: Upload assets to release
uses: jhen0409/release-asset-action@master
Expand All @@ -38,6 +39,7 @@ jobs:
yarn config set network-timeout 500000 -g
yarn
yarn build
cd packages/app
yarn pack-windows
- name: Upload assets to release
uses: jhen0409/release-asset-action@master
Expand Down
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ node_modules
npm-debug.log
yarn-error.log
.DS_Store
dist/js
dist/main.js*
release/
*.bundle.js
tmp/
**/*.bundle.js
config_test
.idea/
artifacts/
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.testrndebug;

import android.content.Context;
import com.facebook.react.ReactInstanceManager;

/**
* Class responsible of loading Flipper inside your React Native application. This is the release
* flavor of it so it's empty as we don't want to load Flipper.
*/
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
// Do nothing as we don't want to initialize Flipper on Release.
}
}
84 changes: 0 additions & 84 deletions npm-package/lib/injectDevToolsMiddleware.tmpl.js

This file was deleted.

0 comments on commit 6233002

Please sign in to comment.