mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-05 21:58:56 +08:00
迁移到yarn
This commit is contained in:
parent
343e92ddd0
commit
09a7352fb7
6
.github/workflows/beta-pack.yml
vendored
6
.github/workflows/beta-pack.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
|
||||||
- name: Cache Gradle Wrapper
|
- name: Cache Gradle Wrapper
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -36,12 +36,12 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-caches-
|
${{ runner.os }}-node-caches-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: yarn install
|
||||||
|
|
||||||
- name: Build Packages
|
- name: Build Packages
|
||||||
run: |
|
run: |
|
||||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
|
||||||
- name: Cache Gradle Wrapper
|
- name: Cache Gradle Wrapper
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -36,12 +36,12 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-caches-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-caches-
|
${{ runner.os }}-node-caches-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: yarn install
|
||||||
|
|
||||||
- name: Build Packages
|
- name: Build Packages
|
||||||
run: |
|
run: |
|
||||||
|
@ -38,10 +38,11 @@
|
|||||||
|
|
||||||
#### 项目环境准备
|
#### 项目环境准备
|
||||||
|
|
||||||
1. **安装Node.js环境(如已安装请跳过):** 去 <https://nodejs.org/download/release/v14.19.0/> 下载Node.js安装,安装完成后,打开命令行输入`node -v`将会输出Node.js的版本号即表示已安装完成
|
1. **安装Node.js环境(如已安装请跳过):** 下载[Node.js](https://nodejs.org/en/)安装结束后,打开命令行输入`node -v`将会输出Node.js的版本号即表示已安装完成
|
||||||
2. **拉取代码:** 克隆本仓库代码
|
2. **安装 yarn 包管理器:** 在命令行执行`npm install yarn -g`,安装结束后输入`yarn -v`将会输出yarn的版本号即表示已安装完成
|
||||||
3. **安装依赖:** 在项目根目录打开命令行,执行命令:`npm install`,若此命令执行的过程中报错可以尝试百度报错内容找解决方法,或在此处贴出报错日志一起讨论解决
|
3. **拉取代码:** 克隆本仓库代码
|
||||||
4. 使用Android Studio打开项目根目录下的`android`文件夹,加载一遍`gradle`
|
4. **安装依赖:** 在项目根目录打开命令行,执行命令:`yarn install`,若此命令执行的过程中报错可以尝试百度报错内容找解决方法,或在此处贴出报错日志一起讨论解决
|
||||||
|
5. 使用Android Studio打开项目根目录下的`android`文件夹,加载一遍`gradle`
|
||||||
|
|
||||||
#### 项目启动步骤
|
#### 项目启动步骤
|
||||||
|
|
||||||
|
12160
package-lock.json
generated
12160
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -38,7 +38,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/lyswhut/lx-music-mobile#readme",
|
"homepage": "https://github.com/lyswhut/lx-music-mobile#readme",
|
||||||
"dependencies": {
|
"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-clipboard/clipboard": "^1.9.0",
|
||||||
"@react-native-community/checkbox": "^0.5.12",
|
"@react-native-community/checkbox": "^0.5.12",
|
||||||
"@react-native-community/slider": "^4.2.1",
|
"@react-native-community/slider": "^4.2.1",
|
||||||
@ -52,7 +52,7 @@
|
|||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-i18next": "^11.16.1",
|
"react-i18next": "^11.16.2",
|
||||||
"react-native": "0.67.4",
|
"react-native": "0.67.4",
|
||||||
"react-native-background-timer": "^2.4.1",
|
"react-native-background-timer": "^2.4.1",
|
||||||
"react-native-crypto": "^2.2.0",
|
"react-native-crypto": "^2.2.0",
|
||||||
@ -63,7 +63,7 @@
|
|||||||
"react-native-pager-view": "^5.4.15",
|
"react-native-pager-view": "^5.4.15",
|
||||||
"react-native-randombytes": "^3.6.1",
|
"react-native-randombytes": "^3.6.1",
|
||||||
"react-native-splash-screen": "^3.3.0",
|
"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-native-vector-icons": "^9.1.0",
|
||||||
"react-redux": "^7.2.6",
|
"react-redux": "^7.2.6",
|
||||||
"readable-stream": "1.0.33",
|
"readable-stream": "1.0.33",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user