迁移到yarn

This commit is contained in:
lyswhut 2022-03-25 18:40:11 +08:00
parent 343e92ddd0
commit 09a7352fb7
6 changed files with 7649 additions and 12173 deletions

View File

@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@ -36,12 +36,12 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-caches-
- name: Install dependencies
run: npm install
run: yarn install
- name: Build Packages
run: |

View File

@ -16,7 +16,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@ -36,12 +36,12 @@ jobs:
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-caches-
- name: Install dependencies
run: npm install
run: yarn install
- name: Build Packages
run: |

View File

@ -38,10 +38,11 @@
#### 项目环境准备
1. **安装Node.js环境如已安装请跳过:**<https://nodejs.org/download/release/v14.19.0/> 下载Node.js安装安装完成后打开命令行输入`node -v`将会输出Node.js的版本号即表示已安装完成
2. **拉取代码:** 克隆本仓库代码
3. **安装依赖:** 在项目根目录打开命令行,执行命令:`npm install`,若此命令执行的过程中报错可以尝试百度报错内容找解决方法,或在此处贴出报错日志一起讨论解决
4. 使用Android Studio打开项目根目录下的`android`文件夹,加载一遍`gradle`
1. **安装Node.js环境如已安装请跳过:** 下载[Node.js](https://nodejs.org/en/)安装结束后,打开命令行输入`node -v`将会输出Node.js的版本号即表示已安装完成
2. **安装 yarn 包管理器:** 在命令行执行`npm install yarn -g`,安装结束后输入`yarn -v`将会输出yarn的版本号即表示已安装完成
3. **拉取代码:** 克隆本仓库代码
4. **安装依赖:** 在项目根目录打开命令行,执行命令:`yarn install`,若此命令执行的过程中报错可以尝试百度报错内容找解决方法,或在此处贴出报错日志一起讨论解决
5. 使用Android Studio打开项目根目录下的`android`文件夹,加载一遍`gradle`
#### 项目启动步骤

12160
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -38,7 +38,7 @@
},
"homepage": "https://github.com/lyswhut/lx-music-mobile#readme",
"dependencies": {
"@react-native-async-storage/async-storage": "^1.16.3",
"@react-native-async-storage/async-storage": "1.16.3",
"@react-native-clipboard/clipboard": "^1.9.0",
"@react-native-community/checkbox": "^0.5.12",
"@react-native-community/slider": "^4.2.1",
@ -52,7 +52,7 @@
"process": "^0.11.10",
"prop-types": "^15.8.1",
"react": "17.0.2",
"react-i18next": "^11.16.1",
"react-i18next": "^11.16.2",
"react-native": "0.67.4",
"react-native-background-timer": "^2.4.1",
"react-native-crypto": "^2.2.0",
@ -63,7 +63,7 @@
"react-native-pager-view": "^5.4.15",
"react-native-randombytes": "^3.6.1",
"react-native-splash-screen": "^3.3.0",
"react-native-track-player": "github:lyswhut/react-native-track-player#55210d7d588e4f1e833e48de30dc28f5697b54f8",
"react-native-track-player": "https://github.com/lyswhut/react-native-track-player#55210d7d588e4f1e833e48de30dc28f5697b54f8",
"react-native-vector-icons": "^9.1.0",
"react-redux": "^7.2.6",
"readable-stream": "1.0.33",

7635
yarn.lock Normal file

File diff suppressed because it is too large Load Diff