mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 17:31:27 +00:00
switch to yarn
This commit is contained in:
parent
8c063f41c4
commit
e37fe1f58e
9 changed files with 8737 additions and 18 deletions
1725
app/yarn.lock
Normal file
1725
app/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
|
@ -3,16 +3,17 @@ python build\set_version.py
|
||||||
|
|
||||||
# Get the latest stable version of Node.js or io.js
|
# Get the latest stable version of Node.js or io.js
|
||||||
Install-Product node $env:nodejs_version
|
Install-Product node $env:nodejs_version
|
||||||
|
npm install -g yarn
|
||||||
|
|
||||||
# install node modules
|
# install node modules
|
||||||
npm install
|
yarn install
|
||||||
cd app
|
cd app
|
||||||
npm install
|
yarn install
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# build ui
|
# build ui
|
||||||
cd ui
|
cd ui
|
||||||
npm install
|
yarn install
|
||||||
|
|
||||||
# necessary to ensure native Node modules (e.g. keytar) are built against the correct version of Node)
|
# necessary to ensure native Node modules (e.g. keytar) are built against the correct version of Node)
|
||||||
# yes, it needs to be run twice. it fails the first time, not sure why
|
# yes, it needs to be run twice. it fails the first time, not sure why
|
||||||
|
|
|
@ -45,19 +45,12 @@ if [ "$FULL_BUILD" == "true" ]; then
|
||||||
python "$BUILD_DIR/set_version.py"
|
python "$BUILD_DIR/set_version.py"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
libsecret="libsecret-1-dev"
|
|
||||||
if $LINUX && [ -z "$(dpkg-query --show --showformat='${Status}\n' "$libsecret" 2>/dev/null | grep "install ok installed")" ]; then
|
|
||||||
# this is needed for keytar, which does secure password/token management
|
|
||||||
sudo apt-get install --no-install-recommends -y "$libsecret"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
[ -d "$ROOT/dist" ] && rm -rf "$ROOT/dist"
|
[ -d "$ROOT/dist" ] && rm -rf "$ROOT/dist"
|
||||||
mkdir -p "$ROOT/dist"
|
mkdir -p "$ROOT/dist"
|
||||||
[ -d "$ROOT/app/dist" ] && rm -rf "$ROOT/app/dist"
|
[ -d "$ROOT/app/dist" ] && rm -rf "$ROOT/app/dist"
|
||||||
mkdir -p "$ROOT/app/dist"
|
mkdir -p "$ROOT/app/dist"
|
||||||
|
|
||||||
npm install
|
yarn install
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +60,8 @@ npm install
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$ROOT/ui"
|
cd "$ROOT/ui"
|
||||||
npm install
|
yarn install
|
||||||
|
npm rebuild node-sass
|
||||||
|
|
||||||
# necessary to ensure native Node modules (e.g. keytar) are built against the correct version of Node)
|
# necessary to ensure native Node modules (e.g. keytar) are built against the correct version of Node)
|
||||||
# yes, it needs to be run twice. it fails the first time, not sure why
|
# yes, it needs to be run twice. it fails the first time, not sure why
|
||||||
|
@ -105,7 +99,7 @@ rm "$BUILD_DIR/daemon.zip"
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$ROOT/app"
|
cd "$ROOT/app"
|
||||||
npm install
|
yarn install
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ "$FULL_BUILD" == "true" ]; then
|
if [ "$FULL_BUILD" == "true" ]; then
|
||||||
|
|
|
@ -41,7 +41,7 @@ set -eu
|
||||||
|
|
||||||
if $LINUX; then
|
if $LINUX; then
|
||||||
INSTALL="$SUDO apt-get install --no-install-recommends -y"
|
INSTALL="$SUDO apt-get install --no-install-recommends -y"
|
||||||
$INSTALL build-essential libssl-dev libffi-dev libgmp3-dev python2.7-dev
|
$INSTALL build-essential libssl-dev libffi-dev libgmp3-dev python2.7-dev libsecret-1-dev
|
||||||
elif $OSX && ! cmd_exists brew ; then
|
elif $OSX && ! cmd_exists brew ; then
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
fi
|
fi
|
||||||
|
@ -88,6 +88,17 @@ if ! cmd_exists node; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! cmd_exists yarn; then
|
||||||
|
if $LINUX; then
|
||||||
|
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-get update
|
||||||
|
$SUDO apt-get install yarn
|
||||||
|
elif $OSX; then
|
||||||
|
brew install yarn
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if ! cmd_exists unzip; then
|
if ! cmd_exists unzip; then
|
||||||
if $LINUX; then
|
if $LINUX; then
|
||||||
$INSTALL unzip
|
$INSTALL unzip
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
GitPython==2.1.1
|
|
||||||
PyGithub==1.32
|
PyGithub==1.32
|
||||||
requests[security]==2.13.0
|
requests[security]==2.13.0
|
||||||
PyInstaller==3.2.1
|
|
||||||
uritemplate==3.0.0
|
uritemplate==3.0.0
|
||||||
git+https://github.com/lbryio/bumpversion.git
|
git+https://github.com/lbryio/bumpversion.git
|
||||||
boto3==1.4.4
|
boto3==1.4.4
|
|
@ -1,5 +1,6 @@
|
||||||
## Development Setup
|
## Development Setup
|
||||||
|
|
||||||
- Install node and npm (linux users: [use this](https://github.com/nodesource/distributions). if that doesn't work, [this gist may be useful](https://gist.github.com/isaacs/579814))
|
- Install node and npm (linux users: [use this](https://github.com/nodesource/distributions). if that doesn't work, [this gist may be useful](https://gist.github.com/isaacs/579814))
|
||||||
- Run `./watch.sh` (this will `npm install` dependencies)
|
- `npm install -g yarn` (or see https://yarnpkg.com/en/docs/install)
|
||||||
|
- Run `./watch.sh` (this will `yarn install` dependencies)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
if [ ! -d "$DIR/node_modules" ]; then
|
if [ ! -d "$DIR/node_modules" ]; then
|
||||||
echo "Installing NPM modules"
|
echo "Installing NPM modules"
|
||||||
npm install
|
yarn install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run sass once without --watch to force update. then run with --watch to keep watching
|
# run sass once without --watch to force update. then run with --watch to keep watching
|
||||||
|
|
5403
ui/yarn.lock
Normal file
5403
ui/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue