-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add main frontend #342
Add main frontend #342
Conversation
8b27870
to
c1cf779
Compare
2b6cfe1
to
36a75a3
Compare
36a75a3
to
0d643d7
Compare
6cbce54
to
a13fc84
Compare
426d047
to
cddf7bf
Compare
cddf7bf
to
1997dc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The are some things that are conceptually wrong.
Files that are a size transformation should be created/generated by the build system, avoid unnecessary tracking and management of unnecessary files.
The patch is also missing a gitignore and dockerignore files, the first one is to ignore and help us as developers to avoid dealing with unnecessary noise under git diff, the second is important to avoid problems with docker cache system, check my comment for further explanation.
There is also PWA packages and some configuration files, but it's missing the configuration for service-worker.
I believe that is a good patch, but to get it merged we need to have at least a bare minimum correct structure and dependencies to avoid any pain for us in further development, once we hit the sweet spot of a good basic configuration for the typescript frontend we should be good to merge.
It's also failing in the CI.
Please, check my comment on your first review. Those files are not just size transformation. There's background and margins added in the process. That's the only solution, unless we want to learn how to use and add a cli-image-editor-like tool on our build because of the tracking of 3 images that are all together.
You've previously suggested that we should not have gitignore for node_modules folder. Have you changed your mind on that?
It's not, like I've answered on the first review. Vue automatically adds a default service worker during build time. We only need to specify one if we want custom behavior.
Yes, this is failing since we removed the dedicated eslintrc file, like you suggested (which I found is reasonable), but it's needed on the frontend folder during build time. Do you have any suggestion on that? |
Please link the commend, I said that dockerignore is missing and not that gitignore should not exist.
As said, the file should not exist if you merge it with the project configuration. Check MGroundStation example |
That was outside github, but ok
You're not understanding. That's not the case with MGS. That's a build problem from the fact that the dockerfile is on a sub-folder with relation to the eslintrc file, so there's no way to copy. I've found a possible solution disabling the eslint on build, though. |
028f146
to
3378ef3
Compare
ce56b65
to
d025632
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far.
27289a5 commit message is either missing "dockerfile" or has an extra colon
The problem with the helper service is because it's fetching the backend through the For some strange reason, when this is done, the redirect URL is removing the As all other services are using It was working before by a coincidence. It was the one that should not work, but the fact that it was on the root path ( @Williangalvani this seems to be related to nginx. Do you have any idea on what may be happening? |
d025632
to
5f6137b
Compare
Setup is: - Vue 2 - Typescript - Vuetify - Vuex - Router (with history mode) - PWA support - SASS (with dart-sass) - Font as dependency (for offline usage)
5f6137b
to
17972d3
Compare
2f67219
to
601729b
Compare
…nd/.eslintrc.js`
This update fixes the incosistent behavior on `/latest` paths.
601729b
to
95138d3
Compare
95138d3
to
1766f71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Main frontend for companion-docker
Setup is:
Adds test job for installing and building the frontend project.
This fixes #207, although there are import considerations there we should open new issue for in the future (regarding dynamic plugins).
Image available for test under
rafaellehmkuhl/companion-core:frontend