Skip to content

Commit 63a74c7

Browse files
upgrade dep (#575)
1 parent f75b71c commit 63a74c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+9556
-14238
lines changed

.eslintrc.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
commonjs: true,
5+
es2020: true,
6+
node: true,
7+
},
8+
extends: [
9+
'airbnb-base',
10+
],
11+
parserOptions: {
12+
ecmaVersion: 11,
13+
},
14+
rules: {
15+
'import/no-extraneous-dependencies': 'off',
16+
'func-names': 'off',
17+
'no-console': 'off',
18+
'no-param-reassign': 'off',
19+
'no-underscore-dangle': 'off',
20+
'no-continue': 'off',
21+
},
22+
};

.travis.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ language: python
77
python:
88
- 3.5
99
- 3.6
10+
before_install:
11+
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
12+
- source ~/.nvm/nvm.sh
13+
- nvm install 10
14+
- node --version
15+
- npm i yarn -g
1016
install:
1117
- pip install -r requirements.txt
12-
- npm install
18+
- yarn
1319
script:
14-
- npm run build:production
20+
- yarn build:production
1521
- python -m unittest
1622
before_cache:
1723
- rm -f $HOME/.cache/pip/log/debug.log
1824
cache:
25+
yarn: true
1926
directories:
2027
- "$HOME/.cache/pip"
21-
- node_modules
2228
before_deploy:
2329
- tar -cJf uibuild.tar.xz vj4/.uibuild vj4/constant
2430
deploy:

README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ There is pre-built docker package at `vijos/vj4`. This is maintained by [@moesoh
4545

4646
* [Python 3.5.3+](https://www.python.org/downloads/)
4747
* [MongoDB 3.0+](https://docs.mongodb.org/manual/installation/)
48-
* [Node.js 6.0+](https://nodejs.org/en/download/package-manager/)
48+
* [Node.js 10.0+](https://nodejs.org/en/download/package-manager/)
4949
* [RabbitMQ](http://www.rabbitmq.com/)
5050

5151
#### Install requirements
@@ -54,13 +54,12 @@ In the root of the repository, where `requirements.txt` and `package.json` locat
5454

5555
```bash
5656
python3 -m pip install -r requirements.txt
57-
npm install # cnpm install
57+
yarn
5858
```
5959

60-
You don't need root privilege to run `npm install`. It installs stuffs in the project directory. We recommend using Node 8.
60+
You don't need root privilege to run `yarn`. It installs stuffs in the project directory. We recommend using Node 10.
6161

62-
You may want to use [cnpm](https://npm.taobao.org/) and [tuna](https://pypi.tuna.tsinghua.edu.cn/)
63-
if you are in China. Make sure to use `cnpm` by adding `alias` to `npm` instead of installing cnpm cli-tool.
62+
You may want to use [tuna](https://pypi.tuna.tsinghua.edu.cn/) if you are in China.
6463

6564
Some requirements may need `Python.h`. In Debian/Ubuntu you can use
6665

@@ -81,7 +80,7 @@ You may also want to install [libmaxminddb](https://github.com/maxmind/libmaxmin
8180
In the root of the repository:
8281

8382
```bash
84-
npm run build # or: npm run build:watch
83+
yarn build # or: yarn build:watch
8584
python3 -m vj4.server --debug
8685
```
8786

@@ -108,15 +107,15 @@ pm vj4.job.rank run_all
108107
Frontend source codes can be recompiled automatically by running:
109108

110109
```bash
111-
npm run build:watch
110+
yarn build:watch
112111
```
113112

114113
However you need to manually restart the server for server-side code to take effect.
115114

116115
## Production
117116

118117
```bash
119-
npm run build:production
118+
yarn build:production
120119
python3 -m vj4.server --listen=unix:/var/run/vj4.sock
121120
```
122121

0 commit comments

Comments
 (0)