Skip to content

Commit

Permalink
new integrations pipelines fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Sep 18, 2024
1 parent 3be4c4e commit 6df8bf3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: 'Setup node'
uses: actions/setup-node@v4
with:
node-version: 16.17.0
node-version: 22.4.0
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: 'Install NPM Dependencies'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ frontend/static/frontend/**
docs/.jekyll-cache*
docs/_site*
node
desktopApp/release-builds

# frontend statics
frontend/templates/frontend/*.html
Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/frontend/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<link rel="stylesheet" href="./static/css/fonts.css"/>
<% } %>
{% load static %}

<link rel="stylesheet" type="text/css" href="./static/css/loader.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/index.css"/>
<link rel="stylesheet" type="text/css" href="./static/css/leaflet.css"/>
Expand Down
33 changes: 16 additions & 17 deletions frontend/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ const configNode: Configuration = {
inject: 'body',
robosatsSettings: 'selfhosted-pro',
}),
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, 'static'),
to: path.resolve(__dirname, '../nodeapp/static'),
},
],
}),
// Desktop App HTML
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'templates/frontend/index.ejs'),
Expand All @@ -83,6 +91,14 @@ const configNode: Configuration = {
inject: 'body',
robosatsSettings: 'desktop-basic',
}),
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, 'static'),
to: path.resolve(__dirname, '../desktopApp/static'),
},
],
}),
// Web App HTML
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'templates/frontend/index.ejs'),
Expand All @@ -102,15 +118,6 @@ const configNode: Configuration = {
inject: 'body',
robosatsSettings: 'web-pro',
}),
// Static files
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, 'static'),
to: path.resolve(__dirname, '../nodeapp/static'),
},
],
}),
new CopyPlugin({
patterns: [
{
Expand All @@ -119,14 +126,6 @@ const configNode: Configuration = {
},
],
}),
new CopyPlugin({
patterns: [
{
from: path.resolve(__dirname, 'static'),
to: path.resolve(__dirname, '../desktopApp/static'),
},
],
}),
],
};

Expand Down

0 comments on commit 6df8bf3

Please sign in to comment.