Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Support installing and executing npm package via CLI #10

Merged
merged 5 commits into from
Nov 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ At present time this open-source repository is maintained separately from the Ca
## Server Setup
Download and install the latest LTS version of node from the [Node.JS website](https://nodejs.org/en/download/).

#### Install from npm registry
```bash
git clone git@github.com:Unity-Technologies/unity-cache-server.git
cd unity-cache-server
npm install
npm install unity-cache-server -g
```
#### Install from GitHub source
```bash
npm install github:Unity-Technologies/unity-cache-server -g
```
## Usage
>Default options are suitable for quickly starting a cache server, with a default cache location of `./cache5.0`
```bash
node main.js
unity-cache-server [arguments]
```

## Options
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const constants = {
VERSION: "5.4.0",
VERSION: "5.5.0",
PROTOCOL_VERSION: 254,
PROTOCOL_VERSION_MIN_SIZE: 2,
UINT32_SIZE: 8, // hex
Expand Down
1 change: 1 addition & 0 deletions main.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
const cluster = require('cluster');
const helpers = require('./lib/helpers');
const consts = require('./lib/constants').Constants;
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-cache-server",
"version": "5.4.1",
"version": "5.5.0",
"description": "Unity Cache Server",
"main": "main.js",
"engines": {
Expand All @@ -9,6 +9,9 @@
"directories": {
"test": "test"
},
"bin": {
"unity-cache-server": "./main.js"
},
"scripts": {
"test": "mocha test",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha; open coverage/lcov-report/index.html",
Expand Down