Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Local dev watch mode #104

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mikemitchel
Copy link

@mikemitchel mikemitchel commented Apr 30, 2021

This changes the local front end dev environment to use a dev.sh script that allows for local front end dev changes to antidote-web and antidote-ui-components to be seen in the browser with a page refresh rather than restarting the docker container.

Current Steps to set up this environment:

  1. uncomment line Guacamole mouse tracking isn't working with tabs #50 in rollup.config.js to get the correct Terminal (due to npm link below)

  2. npm run dev from the src/ directory

  • installs dependencies
  • links local antidote-ui-components sibling repo to antidote-web node_modules
  • cleans up and recreates python templates
  • starts container
  1. npm run watch from the src/ directory after step 2 completes
  • starts rollup.js bundler in watch mode, will re-bundle on local dev changes
  • volumes map in docker-compose.yml line Fix iframe reference/path #20 copies any updates to the container without restart

TODO:

  • Allow style changes in a local nre-styles repo to also be updated via .less watch mode, possibly this https://www.npmjs.com/package/less-watch-compiler
  • Automatically start rollup.js in watch mode
  • Handle update to rollup.config.js base on dev mode being used (with linked npm sources or not)
  • Make npm link for components optional?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant