Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace yarn with pnpm #119

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
126 changes: 83 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: pnpm/action-setup@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
version: 6.0.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: yarn
run: pnpm install
- name: ESLint Checks
run: yarn lint
run: pnpm lint
flow:
runs-on: ubuntu-latest
strategy:
Expand All @@ -33,17 +41,25 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: yarn
run: pnpm install
- name: FlowType Check
run: yarn flow
run: pnpm flow
tsc:
runs-on: ubuntu-latest
strategy:
Expand All @@ -54,17 +70,25 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: yarn
run: pnpm install
- name: TypeScript type check
run: yarn type-check
run: pnpm type-check
android:
runs-on: ubuntu-latest
strategy:
Expand All @@ -80,19 +104,27 @@ jobs:
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: ${{ matrix.java-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: pnpm/action-setup@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
version: 6.0.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: yarn
run: pnpm install
- name: Install Example Dependencies
run: cd example && yarn
run: cd example && pnpm
- name: Build android
run: cd example && yarn build:android
run: cd example && pnpm build:android
- name: Build Android Example App and Library
run: cd example/android && ./gradlew clean assembleDebug
ios:
Expand All @@ -105,20 +137,28 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: yarn
run: pnpm install
- name: Install Example Dependencies
run: cd example && yarn
run: cd example && pnpm
- name: Build ios
run: cd example && yarn build:ios
run: cd example && pnpm build:ios
- name: Install Podfiles
run: cd example && pod install --project-directory=ios
- name: Build example app
run: yarn ios
run: pnpm ios
35 changes: 21 additions & 14 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,38 @@ jobs:
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Check node modules cache
uses: actions/cache@v1
id: yarn-cache
- uses: pnpm/action-setup@v2
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
version: 6.0.2
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install node modules
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --pure-lockfile
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile

- name: Install example node modules
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: cd example && yarn
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: cd example && pnpm

- name: Build Windows
run: cd example && yarn build:windows
run: cd example && pnpm build:windows

- name: Generate Windows App
run: cd example && npx install-windows-test-app --use-nuget

# - name: Start Appium server
# shell: powershell
# run: Start-Process PowerShell -ArgumentList "yarn appium"
# run: Start-Process PowerShell -ArgumentList "pnpm appium"

# - name: Run tests
# run: yarn test:windows
# run: pnpm test:windows
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,25 @@ ProgressBar Component for macOS, iOS (based on UIProgressView), Android, and Win

## Getting started

Using NPM:

```sh
npm install @react-native-community/progress-view --save
```

or
Using Yarn:

```sh
yarn add @react-native-community/progress-view
```

Using PNPM:

```sh
pnpm add @react-native-community/progress-view
```


### Linking

- React Native 0.60+
Expand Down Expand Up @@ -99,20 +108,20 @@ Add ProgressView like this

#### Windows
1. Clone branch
2. cd into progress_view and run `yarn install`
3. Start metro server with `yarn start:windows`
2. cd into progress_view and run `pnpm install`
3. Start metro server with `pnpm start:windows`
4. Open Visual Studios and open `example/windows/ProgressViewExample.sln`
5. Set to Debug x64 and start solution

#### IOS
1. Clone branch
2. cd into progress-view and run `yarn install`
2. cd into progress-view and run `pnpm install`
2. cd into example/ios and run `pod install`
4. cd back into progress-view and run `yarn ios`
4. cd back into progress-view and run `pnpm ios`

#### macOS
1. Clone branch
2. cd into progress-view and run `yarn install`
2. cd into progress-view and run `pnpm install`
2. cd into example/macos/example/macos and run `pod install`
4. Open the newly created example.xcworkspace in Xcode, build, and run

Expand Down
Loading
Loading