Use Yarn instead of NPM
This commit is contained in:
parent
3ff1eb5e90
commit
d435471c22
4 changed files with 32 additions and 20 deletions
17
README.md
17
README.md
|
@ -30,14 +30,13 @@ Tested with **Ubuntu Server 18.04 LTS**.
|
|||
* `gnupg2`
|
||||
* `liblzma-dev`
|
||||
* `libpq-dev`
|
||||
* `nodejs`
|
||||
* `npm`
|
||||
* `patch`
|
||||
* `zlib1g-dev`
|
||||
|
||||
### Ruby installation
|
||||
|
||||
Install Ruby system-wide with [RVM](https://rvm.io):
|
||||
Install [Ruby](https://www.ruby-lang.org) system-wide
|
||||
with [RVM](https://rvm.io):
|
||||
|
||||
```
|
||||
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
||||
|
@ -58,6 +57,18 @@ rvm use ruby-2.6.0
|
|||
gem install bundler
|
||||
```
|
||||
|
||||
### Node.js and Yarn installation
|
||||
|
||||
[Node.js](https://nodejs.org) will be installed from system packages
|
||||
as [Yarn](https://yarnpkg.com) dependency:
|
||||
|
||||
```
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
sudo apt update
|
||||
sudo apt install yarn
|
||||
```
|
||||
|
||||
### Steps
|
||||
|
||||
* Create directory `/opt/partynest/` writable by deploy user
|
||||
|
|
17
package-lock.json
generated
17
package-lock.json
generated
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"name": "partynest",
|
||||
"requires": true,
|
||||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"jquery-viewer": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jquery-viewer/-/jquery-viewer-1.0.0.tgz",
|
||||
"integrity": "sha512-j1f7AKNU+wjywS8CwtHzDymyoroUznoXnrRp87WIRVuzZzMoFtJCrj54F/0BAi2DIEkDHx/1EZl9N725M6LiIA=="
|
||||
},
|
||||
"viewerjs": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/viewerjs/-/viewerjs-1.3.0.tgz",
|
||||
"integrity": "sha512-Xt0Iy/j639MwuDV5xAKhdk9PKVj9FjMvh5CVH7T7KKGeKq4tXIlDDySs2uxkmG+GpFeM6997tt9dHdzHhUwd+g=="
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"name": "partynest",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/libertarian-party/partynest.git",
|
||||
"author": "Alex Kotov <kotovalexarian@gmail.com>",
|
||||
"license": "MIT",
|
||||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"jquery-viewer": "^1.0.0",
|
||||
"viewerjs": "^1.3.0"
|
||||
|
|
13
yarn.lock
Normal file
13
yarn.lock
Normal file
|
@ -0,0 +1,13 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
jquery-viewer@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jquery-viewer/-/jquery-viewer-1.0.0.tgz#84dc26d39b4499d8f21fa146d35bd52f5f813f11"
|
||||
integrity sha512-j1f7AKNU+wjywS8CwtHzDymyoroUznoXnrRp87WIRVuzZzMoFtJCrj54F/0BAi2DIEkDHx/1EZl9N725M6LiIA==
|
||||
|
||||
viewerjs@^1.3.0:
|
||||
version "1.3.2"
|
||||
resolved "https://registry.yarnpkg.com/viewerjs/-/viewerjs-1.3.2.tgz#67781aff6d019a0960c4c2bf74d6756b548aebf8"
|
||||
integrity sha512-P9Ac9H+GJ1jE9B5x8foRYm/xZvpWFR6L4GC9mr6181P9amOzQPDkplQrFj8l7mdnv8EyH2dO8XJJfoylir316A==
|
Reference in a new issue