Skip to content

Commit

Permalink
Begin build workflow with linter
Browse files Browse the repository at this point in the history
  • Loading branch information
isontheline committed May 18, 2024
1 parent 702f622 commit df2b35d
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build dRAGon Project

on: push

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout dRAGon sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Lint Frontend
run: gradle npmLint
build:
runs-on: ubuntu-latest
needs: [lint]
steps:
- name: Checkout dRAGon sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build dRAGon
run: gradle build
5 changes: 0 additions & 5 deletions frontend/babel.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@vue/cli-plugin-babel/preset"
]
}
4 changes: 4 additions & 0 deletions frontend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ plugins {

apply plugin: 'java'

task npmLint(type: NpmTask) {
args = ['run', 'lint']
}

task npmBuild(type: NpmTask) {
inputs.dir("src")
outputs.dir("dist")
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ThemeSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ onMounted(() => {
});
const applyTheme = (theme) => {
PrimeVue.changeTheme(currentTheme.value, theme, 'theme-css', () => { });
PrimeVue.changeTheme(currentTheme.value, theme, 'theme-css', () => {});
currentTheme.value = theme;
localStorage.setItem('darkMode', isDark.value);
};
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/layout/AppTopbar.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<script setup>
import { ref, computed, onMounted, onBeforeUnmount } from 'vue';
import { useLayout } from '@/layout/composables/layout';
import { useRouter } from 'vue-router';
const { layoutConfig, onMenuToggle } = useLayout();
const { onMenuToggle } = useLayout();
const outsideClickListener = ref(null);
const topbarMenuActive = ref(false);
const router = useRouter();
onMounted(() => {
bindOutsideClickListener();
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<template>
<div class="grid">
Soon to be implemented
</div>
<div class="grid">Soon to be implemented</div>
</template>

0 comments on commit df2b35d

Please sign in to comment.