Configurable base directory #17503
Unanswered
dmke
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently green-fielding a Ruby-on-Rails web application (API-only) with a Quasar frontend, using the Quasar CLI flavour. I'm trying to separate the Rails backend and the Vue frontend as much as possible, so I've made the decision to abstain from integrations like
vite_ruby
(hence no@quasar/vite-plugin
).1I'm also planning to keep a mono repo for both the Rails and Quasar app, so that managing a developer environment becomes easy with a
Procfile
. Ideally, the directory structure would be familiar for other Rails developers, meaning the frontend code should live inapp/javascript
,2 but this is where I've hit a snag, as Quasar seem to have its directory paths hard-coded relative to thequasar.config.js
file (e.g../src
).For the Quasar app to work properly in
app/javascript
, I would also need to move thepackage.json
,tsconfig.json
,node_modules/
, etc. into that directory, breaking a lot of assumptions by our existing tooling (e.g.node_modules/
andtsconfig.json
are expected to be in the repo root directory).I would like to propose an entry for the Quasar CLI in the
package.json
, so that the CLI can changes the directory prefix:so that the directory structure becomes:
This would also be useful in other projects, e.g. Go services, where embedding the
dist/
directory as a whole is trivial.Footnotes
In the past, major upgrades were often a pain due to the tight interaction between back- and frontend, interdependent code, etc. I'm also hoping that by using the recommended tooling (as per Pick a Quasar Flavour), keeping Quasar and its dependencies up-to-date won't become a full work day... ↩
Rails is strong on conventions, and the frontend source are expected somewhere under
app/
. ↩Beta Was this translation helpful? Give feedback.
All reactions