-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Move to vite #342
Move to vite #342
Conversation
There isn't one, it's a jittered 1D scatter plot. |
- preserves the {{settings.APP_NAME}} placeholders which need to be resolved at runtime by Django - uses the right favicon in production mode
…an be overridden by setting DJANGO_DEBUG=1 in the environment Previously we were hard coding DEBUG=True in all cases, which is probably a security issue
…om Vite build vs the old Webpack. Also, the switch to Vite un-breaks the npm build on ARM64, so we can now use $BUILDPLATFORM for the nodebuilder stage rather than having to hard code amd64
I've done my best to fix up the Docker image build to work with the new Vite artifacts. There were a couple of wrinkles in this, most notably that it seems up until now we've always been running with Maybe we need a separate setting for vite dev server vs static assets, since we want to be able to run the various test suites against the production assets but is there anything else in the tests that assumes |
Changes to be made to test settings:
|
This sounds like the best way to go. |
Also anyone have any idea why the workflows aren't running for this PR? |
There's a merge conflict. |
(the build previously worked for me because I had one left over in my working copy from a previous webpack build)
Jest Coverage
|
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.
Looks good to me as far as I can tell, aside from the discussion we had yesterday about moving the "dev server vs static assets" toggle to be independent of the the Django-wide DEBUG
flag.
Ensure index.html template is always generated even without manifest Removed test videos generated by cypress component testing Updated documentation
I've added a |
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. Should cypress
be in devDependencies
rather than dependencies
for the frontend or does it not make a difference?
Practically it should not make a difference as during deployment we only use the static files generated from vite and that will only have libraries which are directly imported from |
Resolves #309
Changes to code and build chain
@
alias can still be used when doing module imports but file extensions should now be used when importing.vue
files e.g.import DeleteModal from "@/components/DeleteModal"
import DeleteModal from "@/components/DeleteModal.vue"
.vue
files, imports should use the ECMA 6 compliantimport
command and not node/commonjs'srequire
v18.8.0
frontend/dist/static/assets
directoryfrontend/base_index.html
, this gets merged withfrontend/dist/manifest.json
and outputs tofrontend/templates/index.html
so that the correct hashed js and css files are importedChanges to frontend testing
npm run test:component
/frontend/tests/component
and should have the extension.cy.js
npm run test:unit
/frontend/tests/unit
and retains the previous extension.spec.js
/examples
folder/cypress/e2e
, this is the standard convention for updating to their latest version