Skip to content

Commit 8d924e7

Browse files
authored
Move from npm to yarn and update README (#2508)
* Move from npm to yarn and update README * removing yarn.lock from gitignore * update node version * moving pipeline.yml to yarn * adding yarnrc * fix yarn.lock regestry
1 parent f2e4d9b commit 8d924e7

File tree

7 files changed

+8207
-28
lines changed

7 files changed

+8207
-28
lines changed

.buildkite/pipeline.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ steps:
2727
- label: "Build"
2828
command: |
2929
nvm install
30-
npm install
31-
npm run test
32-
npm run build:ts
30+
yarn
31+
yarn test
32+
yarn build:ts
3333
if [[ $BUILDKITE_PULL_REQUEST == 'false' ]];then
34-
npm run release
34+
yarn release
3535
fi

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
node_modules
22
npm-debug.log
33
.idea
4-
yarn.lock
54
.vscode
65
package-lock.json
76

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--registry "https://registry.npmjs.org/"

README.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
## A declarative cross-platform React Native calendar component for iOS and Android.
66

77
[![Version](https://img.shields.io/npm/v/react-native-calendars.svg)](https://www.npmjs.com/package/react-native-calendars)
8-
[![Build Status](https://travis-ci.org/wix/react-native-calendars.svg?branch=master)](https://travis-ci.org/wix/react-native-calendars)
9-
8+
[![Build status](https://badge.buildkite.com/1a911fa39db2518a615b73f3dc18ec0938a66403f2ad66f79b.svg)](https://buildkite.com/wix-mobile-oss/react-native-calendars)
109
<br>
1110

1211
This module includes information on how to use this customizable **React Native** calendar component.
@@ -40,7 +39,7 @@ $ git clone [email protected]:wix/react-native-calendars.git
4039
4140
$ cd react-native-calendars
4241
43-
$ npm install
42+
$ yarn install
4443
4544
$ cd ios && pod install && cd ..
4645
@@ -57,14 +56,6 @@ Here's how to get started with react-native-calendars in your React Native proje
5756

5857
### Install the package:
5958

60-
Using `npm`:
61-
62-
```
63-
$ npm install --save react-native-calendars
64-
```
65-
66-
Using `Yarn`:
67-
6859
```
6960
$ yarn add react-native-calendars
7061
```
@@ -197,13 +188,6 @@ export default App;
197188
### Adding a global theme to the calendar:
198189

199190
```javascript
200-
import React, { useState } from 'react';
201-
import { Calendar, LocaleConfig } from 'react-native-calendars';
202-
203-
const App = () => {
204-
const [selected, setSelected] = useState('');
205-
206-
return (
207191
<Calendar
208192
style={{
209193
borderWidth: 1,
@@ -218,7 +202,9 @@ const App = () => {
218202
selectedDayTextColor: '#ffffff',
219203
todayTextColor: '#00adf5',
220204
dayTextColor: '#2d4150',
221-
textDisabledColor: '#d9e
205+
textDisabledColor: '#dd99ee'
206+
}}
207+
</Calendar>
222208
```
223209

224210
## Customized Calendar Examples
@@ -282,7 +268,7 @@ We welcome contributions to react-native-calendars.
282268

283269
If you have an idea for a new feature or have discovered a bug, please open an issue.
284270

285-
Please `npm run test` and `npm run lint` before pushing changes.
271+
Please `yarn test` and `yarn lint` before pushing changes.
286272

287273
Don't forget to add a **title** and a **description** explaining the issue you're trying to solve and your proposed solution.
288274

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:dev": "tsc --noEmit",
1111
"build:docs": "node ./scripts/build-docs.js",
1212
"e2e": "node ./scripts/test-e2e.js --release",
13-
"test": "npm run lint && npm run unit",
13+
"test": "yarn lint && yarn unit",
1414
"test:watch": "jest --watch",
1515
"test:perf": "TEST_RUNNER_ARGS='--testMatch **/*.perf.js' reassure measure",
1616
"unit": "jest",
@@ -20,7 +20,7 @@
2020
"ios": "react-native run-ios",
2121
"android": "react-native run-android",
2222
"xcode": "open ios/CalendarsExample.xcworkspace/",
23-
"clean": "rm package-lock.json && rm -rf ./node_modules && npm i",
23+
"clean": "rm yarn-lock && rm -rf ./node_modules && yarn",
2424
"pod-install": "pod install --project-directory=ios"
2525
},
2626
"repository": {

0 commit comments

Comments
 (0)