Merge remote-tracking branch 'template/main'

This commit is contained in:
thepaperpilot 2022-03-01 21:25:41 -06:00
commit 992290aa53
9 changed files with 39 additions and 13 deletions

View file

@ -5,6 +5,7 @@ on:
- 'main' - 'main'
jobs: jobs:
build-and-deploy: build-and-deploy:
if: github.repository != 'profectus-engine/Profectus' # Don't build placeholder mod on main repo
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout 🛎️ - name: Checkout 🛎️

13
.replit
View file

@ -1,2 +1,13 @@
run = "npm install; npm run serve"
[packager]
language = "nodejs" language = "nodejs"
run = "npm run serve" [packager.features]
packageSearch = true
guessImports = false
[languages.javascript]
pattern = "**/{*.js,*.jsx,*.ts,*.tsx}"
[languages.javascript.languageServer]
start = [ "typescript-language-server", "--stdio" ]

View file

@ -1,5 +1,11 @@
# Profectus # Profectus
A game engine that grows with you
[![Run on Repl.it](https://repl.it/badge/github/profectus-engine/Profectus)](https://repl.it/github/profectus-engine/Profectus)
[Read the docs](https://moddingtree.com)
## Project setup ## Project setup
``` ```
npm install npm install
@ -19,6 +25,3 @@ npm run build
``` ```
npm run lint npm run lint
``` ```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

View file

@ -3,6 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "vue-cli-service serve",
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
@ -54,5 +55,8 @@
"vue-cli-service lint", "vue-cli-service lint",
"git add" "git add"
] ]
},
"engines": {
"node": "16.x"
} }
} }

7
replit.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs }: {
deps = [
pkgs.nodejs-16_x
pkgs.nodePackages.typescript-language-server
pkgs.nodePackages.npm
];
}

View file

@ -23,8 +23,9 @@
<script lang="ts"> <script lang="ts">
import Links from "@/components/links/Links.vue"; import Links from "@/components/links/Links.vue";
import modInfo from "@/data/modInfo.json"; import modInfo from "@/data/modInfo.json";
import { CoercableComponent, PersistentRef, StyleValue } from "@/features/feature"; import { CoercableComponent, StyleValue } from "@/features/feature";
import { Link } from "@/features/links"; import { Link } from "@/features/links";
import { PersistentRef } from "@/game/persistence";
import player from "@/game/player"; import player from "@/game/player";
import { computeComponent, processedPropType, wrapRef } from "@/util/vue"; import { computeComponent, processedPropType, wrapRef } from "@/util/vue";
import { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from "vue"; import { computed, defineComponent, nextTick, PropType, toRefs, unref, watch } from "vue";

View file

@ -117,7 +117,6 @@ function ignore() {
} }
.nan-modal-discord { .nan-modal-discord {
height: 2em;
margin: 0; margin: 0;
margin-right: 4px; margin-right: 4px;
} }

View file

@ -52,7 +52,8 @@
<script setup lang="ts"> <script setup lang="ts">
import { BoardNode, GenericBoard, getNodeProperty } from "@/features/boards/board"; import { BoardNode, GenericBoard, getNodeProperty } from "@/features/boards/board";
import { FeatureComponent, PersistentState, Visibility } from "@/features/feature"; import { FeatureComponent, Visibility } from "@/features/feature";
import { PersistentState } from "@/game/persistence";
import { computed, ref, toRefs } from "vue"; import { computed, ref, toRefs } from "vue";
import panZoom from "vue-panzoom"; import panZoom from "vue-panzoom";
import BoardLinkVue from "./BoardLink.vue"; import BoardLinkVue from "./BoardLink.vue";

View file

@ -1,14 +1,13 @@
import { getUniqueID, Replace } from "@/features/feature";
import { globalBus } from "@/game/events";
import { GenericLayer } from "@/game/layers";
import { import {
DefaultValue, DefaultValue,
getUniqueID,
Persistent, Persistent,
persistent, persistent,
PersistentRef, PersistentRef,
PersistentState, PersistentState
Replace } from "@/game/persistence";
} from "@/features/feature";
import { globalBus } from "@/game/events";
import { GenericLayer } from "@/game/layers";
import Decimal from "@/lib/break_eternity"; import Decimal from "@/lib/break_eternity";
import { Computable, GetComputableType, processComputable } from "@/util/computed"; import { Computable, GetComputableType, processComputable } from "@/util/computed";
import { createLazyProxy } from "@/util/proxies"; import { createLazyProxy } from "@/util/proxies";