From 7dce241af9e091b15c50197e9e7589a09debddde Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Mar 2021 18:16:29 +0200 Subject: [PATCH] Update panel.md (#336) --- community/customization/panel.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/community/customization/panel.md b/community/customization/panel.md index 0b40dee5..4935d085 100644 --- a/community/customization/panel.md +++ b/community/customization/panel.md @@ -17,11 +17,11 @@ The build tools require NodeJS, yarn is used as the package manager. ```bash # Ubuntu/Debian -curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - -apt install -y nodejs yarn +curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - +apt install -y nodejs # CentOS -curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash - +curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash - sudo yum install -y nodejs yarn # CentOS 7 sudo dnf install -y nodejs yarn # CentOS 8 ``` @@ -29,6 +29,8 @@ sudo dnf install -y nodejs yarn # CentOS 8 Install required javascript packages. ```bash +npm i -g yarn # Install Yarn + cd /var/www/pterodactyl yarn # Installs panel build dependencies ``` @@ -41,3 +43,5 @@ The following command will rebuild the Panel frontend. cd /var/www/pterodactyl yarn build:production # Build panel ``` + +You can use command `yarn run watch` to view the progress of your changes in almost real-time for easier development. Once you're satisfied with your changes build the panel using the previously mentioned `yarn build:production` command.