mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-04 15:29:58 +00:00
Gitpod Support (#817)
This commit is contained in:
parent
d71bf225cc
commit
75dfa71275
22
.gitpod.yml
Normal file
22
.gitpod.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
image:
|
||||||
|
file: config/gitpod/Dockerfile
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- port: 25565
|
||||||
|
onOpen: notify
|
||||||
|
|
||||||
|
vscode:
|
||||||
|
extensions:
|
||||||
|
- eamodio.gitlens
|
||||||
|
- github.vscode-pull-request-github
|
||||||
|
- ms-azuretools.vscode-docker
|
||||||
|
- redhat.java
|
||||||
|
- richardwillis.vscode-gradle
|
||||||
|
- vscjava.vscode-java-debug
|
||||||
|
- vscode.github
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Setup pre-commit hool
|
||||||
|
init: pre-commit install --config config/pre-commit/config.yml --allow-missing-config
|
||||||
|
- name: Install npm packages
|
||||||
|
init: npm ci
|
@ -19,6 +19,10 @@ process. When building on Windows, Use `gradlew.bat` instead of `./gradlew`.
|
|||||||
- **Clone the repository:** `git clone https://github.com/SquidDev-CC/CC-Tweaked.git && cd CC-Tweaked`
|
- **Clone the repository:** `git clone https://github.com/SquidDev-CC/CC-Tweaked.git && cd CC-Tweaked`
|
||||||
- **Setup Forge:** `./gradlew build`
|
- **Setup Forge:** `./gradlew build`
|
||||||
- **Run Minecraft:** `./gradlew runClient` (or run the `GradleStart` class from your IDE).
|
- **Run Minecraft:** `./gradlew runClient` (or run the `GradleStart` class from your IDE).
|
||||||
|
- **Optionally:** For small PRs (especially those only touching Lua code), it may be easier to use GitPod, which
|
||||||
|
provides a pre-configured environment: [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-2b2b2b?logo=gitpod)](https://gitpod.io/#https://github.com/SquidDev-CC/CC-Tweaked/)
|
||||||
|
|
||||||
|
Do note you will need to download the mod after compiling to test.
|
||||||
|
|
||||||
If you want to run CC:T in a normal Minecraft instance, run `./gradlew build` and copy the `.jar` from `build/libs`.
|
If you want to run CC:T in a normal Minecraft instance, run `./gradlew build` and copy the `.jar` from `build/libs`.
|
||||||
These commands may take a few minutes to run the first time, as the environment is set up, but should be much faster
|
These commands may take a few minutes to run the first time, as the environment is set up, but should be much faster
|
||||||
|
8
config/gitpod/Dockerfile
Normal file
8
config/gitpod/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM gitpod/workspace-base
|
||||||
|
|
||||||
|
USER gitpod
|
||||||
|
|
||||||
|
RUN sudo apt-get -q update \
|
||||||
|
&& sudo apt install -yq openjdk-8-jdk openjdk-16-jdk python3-pip \
|
||||||
|
&& sudo pip3 install pre-commit \
|
||||||
|
&& sudo update-java-alternatives --set java-1.8.0-openjdk-amd64
|
Loading…
Reference in New Issue
Block a user