Skip to content
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

feat: npm watch synced with live-refresh demo #61

Merged

Conversation

wesleyboar
Copy link
Member

Overview

Re-build stylesheets on source file change, and—afterward—trigger demo server auto-refresh.

Related

N/A

Changes

  • .gitignore the new utility file
  • document how to preview build server and preview dev server
  • install and configure npm watch
  • configure live-refresh after auto-rebuild

Testing

Have two terminals, one code editor, and one browser all visible at once.

  1. (terminal A) npm ci
  2. (terminal A) npm start
  3. (browser) View any pattern.
  4. (terminal B) npm run watch
  5. (code editor) Change source CSS file of pattern you are viewing such that visual will dramatically change.
  6. (browser) Watch page auto-refresh one time—expect no change.
  7. (browser) Watch page auto-refresh second time—expect dramatic change.

UI

Skipped.

I am lazy. I don't want to re-arrange all my screens to one window to prove this works to just me, who is the only one looking at these PR's right now.

@wesleyboar wesleyboar merged commit 276baa7 into main Nov 11, 2022
@wesleyboar wesleyboar deleted the task/npm-watch-source-file-and-live-refresh-demo-sync branch November 11, 2022 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant