mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 00:52:43 +01:00
switch from yarn
to pnpm
This commit is contained in:
parent
0d225b0e8f
commit
8320c64918
8
.github/workflows/laravel.yaml
vendored
8
.github/workflows/laravel.yaml
vendored
@ -13,7 +13,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
analysis:
|
analysis:
|
||||||
name: Static Analysis
|
name: Static Analysis
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
APP_ENV: testing
|
APP_ENV: testing
|
||||||
APP_DEBUG: "true"
|
APP_DEBUG: "true"
|
||||||
@ -42,7 +42,7 @@ jobs:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -64,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -136,7 +136,7 @@ jobs:
|
|||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
|
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -17,13 +17,13 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: yarn
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Create release branch and bump version
|
- name: Create release branch and bump version
|
||||||
env:
|
env:
|
||||||
|
18
.github/workflows/ui.yaml
vendored
18
.github/workflows/ui.yaml
vendored
@ -13,7 +13,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -22,17 +22,17 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: yarn
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: pnpm install
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn run lint
|
run: pnpm run lint
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -45,13 +45,13 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
cache: yarn
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn run build
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: yarn run test
|
run: pnpm run test
|
||||||
|
63
BUILDING.md
63
BUILDING.md
@ -1,63 +0,0 @@
|
|||||||
# Local Development
|
|
||||||
Pterodactyl is now powered by React, Typescript, and Tailwindcss using webpack at its core to generate compiled assets.
|
|
||||||
Release versions of Pterodactyl will include pre-compiled, minified, and hashed assets ready-to-go.
|
|
||||||
|
|
||||||
However, if you are interested in running custom themes or making modifications to the React files you'll need a build
|
|
||||||
system in place to generate these compiled assets. To get your environment setup you'll need at minimum:
|
|
||||||
|
|
||||||
* [Node.js](https://nodejs.org/en/) v14.x.x
|
|
||||||
* [Yarn](https://classic.yarnpkg.com/lang/en/) v1.x.x
|
|
||||||
* [Go](https://golang.org/) 1.17.x
|
|
||||||
|
|
||||||
### Install Dependencies
|
|
||||||
```bash
|
|
||||||
yarn install
|
|
||||||
```
|
|
||||||
|
|
||||||
The command above will download all of the dependencies necessary to get Pterodactyl assets building. After that, its as
|
|
||||||
simple as running the command below to generate assets while you're developing. Until you've run this command at least
|
|
||||||
once you'll likely see a 500 error on your Panel about a missing `manifest.json` file. This is generated by the commands
|
|
||||||
below.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Build the compiled set of assets for development.
|
|
||||||
yarn run build
|
|
||||||
|
|
||||||
# Build the assets automatically as they are changed. This allows you to refresh
|
|
||||||
# the page and see the changes immediately.
|
|
||||||
yarn run watch
|
|
||||||
```
|
|
||||||
|
|
||||||
### Hot Module Reloading
|
|
||||||
For more advanced users, we also support 'Hot Module Reloading', allowing you to quickly see changes you're making
|
|
||||||
to the Vue template files without having to reload the page you're on. To Get started with this, you just need
|
|
||||||
to run the command below.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
PUBLIC_PATH=http://192.168.1.1:8080 yarn run serve --host 192.168.1.1
|
|
||||||
```
|
|
||||||
|
|
||||||
There are two _very important_ parts of this command to take note of and change for your specific environment. The first
|
|
||||||
is the `--host` flag, which is required and should point to the machine where the `webpack-serve` server will be running.
|
|
||||||
The second is the `PUBLIC_PATH` environment variable which is the URL pointing to the HMR server and is appended to all of
|
|
||||||
the asset URLs used in Pterodactyl.
|
|
||||||
|
|
||||||
#### Development Environment
|
|
||||||
If you're using the [`pterodactyl/development`](https://github.com/pterodactyl/development) environments, which are
|
|
||||||
highly recommended, you can just run `yarn run serve` to run the HMR server, no additional configuration is necessary.
|
|
||||||
|
|
||||||
### Building for Production
|
|
||||||
Once you have your files squared away and ready for the live server, you'll be needing to generate compiled, minified,
|
|
||||||
and hashed assets to push live. To do so, run the command below:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
yarn run build:production
|
|
||||||
```
|
|
||||||
|
|
||||||
This will generate a production JS bundle and associated assets, all located in `public/assets/` which will need to
|
|
||||||
be uploaded to your server or CDN for clients to use.
|
|
||||||
|
|
||||||
### Running Wings
|
|
||||||
To run `wings` in development all you need to do is set up the configuration file as normal when adding a new node, and
|
|
||||||
then you can build and run a local version of Wings by executing `make debug` in the Wings code directory. This must
|
|
||||||
be run on a Linux VM of some sort, you cannot run this locally on macOS or Windows.
|
|
@ -172,7 +172,7 @@
|
|||||||
buildInputs = [];
|
buildInputs = [];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
yarn run build
|
pnpm run build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -224,7 +224,6 @@
|
|||||||
nodejs-18_x
|
nodejs-18_x
|
||||||
nodePackages.npm
|
nodePackages.npm
|
||||||
nodePackages.pnpm
|
nodePackages.pnpm
|
||||||
nodePackages.yarn
|
|
||||||
php81WithExtensions
|
php81WithExtensions
|
||||||
postgresql_14
|
postgresql_14
|
||||||
];
|
];
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@pterodactyl/panel",
|
"name": "@pterodactyl/panel",
|
||||||
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"packageManager": "pnpm@7.26.3",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0"
|
"node": ">=16.13"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
5722
pnpm-lock.yaml
Normal file
5722
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,7 @@ with pkgs;
|
|||||||
alejandra
|
alejandra
|
||||||
composer
|
composer
|
||||||
nodejs-18_x
|
nodejs-18_x
|
||||||
nodePackages.yarn
|
nodePackages.pnpm
|
||||||
php81WithExtensions
|
php81WithExtensions
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user