Skip to content

Commit

Permalink
use FlatList (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
oomathias authored Feb 8, 2021
1 parent 9177ee1 commit 6a4fd6f
Show file tree
Hide file tree
Showing 27 changed files with 21,726 additions and 276 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Check the package.json of /core to see if it has changed
uses: EndBug/[email protected]
Expand All @@ -32,31 +32,43 @@ jobs:
with:
node-version: 12.x
registry-url: https://npm.pkg.github.com/
scope: "@birdiecare"
scope: '@birdiecare'

- name: Install common dependencies
run: yarn install
run: |
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NODE_ENV: development

- name: Build core
working-directory: core
run: |
cd core
yarn install
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc
npm ci
npm run build
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NODE_ENV: development
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy core
if: steps.core-version-change.outputs.changed == 'true'
working-directory: core
run: |
cd core
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build and deploy native
if: steps.native-version-change.outputs.changed == 'true'
working-directory: native
run: |
cd native
yarn install
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc
npm ci
npm run build
npm publish
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NODE_ENV: development
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 19 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,39 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://npm.pkg.github.com/
scope: "@birdiecare"
scope: '@birdiecare'

- name: Install common dependencies
run: yarn install
run: |
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NODE_ENV: development

- name: Run core tests & build for native tests
working-directory: core
run: |
cd core
yarn install
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc
npm ci
npm test
npm run build
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NODE_ENV: development

- name: Native Tests
working-directory: native
run: |
cd native
yarn install
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc
npm ci
npm test
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NODE_ENV: development
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
dist/
package-lock.json
yarn.lock
.jest/
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://registry.npmjs.org/
@birdiecare:registry=https://npm.pkg.github.com/
15 changes: 9 additions & 6 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@ The best option is to install Galette on your project(s) and symlink the project
a local clone of the Galette Git repository.

1. Clone Galette.

```
git clone [email protected]:kametventures/galette.git
```

2. Go on your project's directory. (We assume Galette is already a dependency)

```
cd node_modules/@birdiecare/galette
rm -rf core && ln -s /path/to/galette/git/core core
```

**Important:** replace `/path/to/galette/git` in the example above with the path on your own machine.

3. Start Galette's watcher so that your updates in the `core/src` directory are compiled and available for your
project.

```
cd /path/to/galette/git/core
yarn install
yarn run build --watch
npm install
npm run build --watch
```
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The core contains modules that are generic. They can be used both for React and
### Installation

```
yarn add @birdiecare/galette-core
npm add @birdiecare/galette-core
```

### Modules
Expand All @@ -36,7 +36,7 @@ yarn add @birdiecare/galette-core
### Installation

```
yarn add @birdiecare/galette-native
npm add @birdiecare/galette-native
```

### Modules
Expand All @@ -59,7 +59,7 @@ yarn add @birdiecare/galette-native
### Installation

```
yarn add @birdiecare/galette-web
npm add @birdiecare/galette-web
```

### Modules
Expand Down
Loading

0 comments on commit 6a4fd6f

Please sign in to comment.