-
Notifications
You must be signed in to change notification settings - Fork 27
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
special-pages: integrated watch mode #1317
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✅ Deploy Preview for content-scope-scripts ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Temporary Branch UpdateThe temporary branch has been updated with the latest changes. Below are the details:
Please use the above install command to update to the latest version. |
[Beta] Generated file diffTime updated: Mon, 16 Dec 2024 13:10:45 GMT Android
File has changed Removed Files
❌ File only exists in old changeset Integration
File has changed Windows
File has changed Apple
File has changed New Files
❌ File only exists in new changeset |
import { init } from '../../app/index.js'; | ||
import { Environment } from '../../../shared/environment.js'; | ||
import { createSpecialPageMessaging } from '../../../shared/create-special-page-messaging.js'; | ||
import { init } from '../app/index.js'; |
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.
import { init } from '../app/index.js'; | |
import { init } from '../app/index.js'; | |
import '../../../shared/live-reload.js'; |
import { mockTransport } from './mock-transport.js'; | ||
import { init } from '../../app/index.js'; | ||
import { init } from '../app/index.js'; |
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.
import { init } from '../app/index.js'; | |
import { init } from '../app/index.js'; | |
import '../../../shared/live-reload.js'; |
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.
This is brilliant 🤩 . Only missing live-reload setup for example and special-error, but looks good otherwise. Works really well locally!
18d5123
to
760c5e8
Compare
Asana Task/Github Issue:
Description
** Before **
When running
npm run watch
- changes to ANY file would cause every special-page to be rebuilt from scratch.This worked ok with few pages and very little assets. But now as the projects grow in size and complexity, we need to consider them as isolated applications in terms of development.
** After **
When running
npm run watch — —page=onboarding
, only files in the onboarding project are watched 💪🏻.Testing Steps
special-pages
, runnpm run watch — —page=onboarding
(or any other page)Checklist
Please tick all that apply: