Skip to content

Commit fc0c118

Browse files
committed
Fixed versioning for node 8
1 parent 176dc71 commit fc0c118

File tree

5 files changed

+345
-154
lines changed

5 files changed

+345
-154
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ Next steps should work on clear Ubuntu 18.04.
1414

1515
- Install necessary dependencies:
1616
```sh
17-
$ sudo apt-get update && sudo apt-get --no-install-recommends install -y ffmpeg build-essential nodejs npm curl redis-server python3-dev python3-pip python3-venv libldap2-dev libsasl2-dev
17+
$ sudo apt-get update && sudo apt-get --no-install-recommends install -y ffmpeg build-essential curl redis-server python3-dev python3-pip python3-venv libldap2-dev libsasl2-dev
1818
```
1919
Also please make sure that you have installed ffmpeg with all necessary libav* libraries and pkg-config package.
2020
```sh
21+
# Node and npm (you can use default versions of these packages from apt (8.*, 3.*), but we would recommend to use newer versions)
22+
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
23+
sudo apt-get install -y nodejs
24+
2125
# General dependencies
2226
sudo apt-get install -y pkg-config
2327
@@ -56,7 +60,7 @@ for development
5660

5761
- Install npm packages for UI and start UI debug server (run the following command from CVAT root directory):
5862
```sh
59-
cd cvat-data && npm install && \
63+
cd cvat-core && npm install && \
6064
cd ../cvat-ui && npm install && npm start
6165
```
6266

cvat-core/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cvat-core.js",
2+
"name": "cvat-core",
33
"version": "1.0.0",
44
"description": "Part of Computer Vision Tool which presents an interface for client-side integration",
55
"main": "babel.config.js",
@@ -34,13 +34,15 @@
3434
"dependencies": {
3535
"axios": "^0.18.0",
3636
"browser-or-node": "^1.2.1",
37+
"cvat-data": "../cvat-data",
3738
"detect-browser": "^5.0.0",
3839
"error-stack-parser": "^2.0.2",
3940
"form-data": "^2.5.0",
4041
"jest-config": "^24.8.0",
4142
"js-cookie": "^2.2.0",
4243
"jsonpath": "^1.0.2",
4344
"platform": "^1.3.5",
44-
"store": "^2.0.12"
45+
"store": "^2.0.12",
46+
"worker-loader": "^2.0.0"
4547
}
4648
}

cvat-core/src/frames.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
(() => {
12-
const cvatData = require('../../cvat-data');
12+
const cvatData = require('cvat-data');
1313
const PluginRegistry = require('./plugins');
1414
const serverProxy = require('./server-proxy');
1515
const { isBrowser, isNode } = require('browser-or-node');

0 commit comments

Comments
 (0)