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

Add a "watch_patterns" (opposite of ignore_patterns) #14

Open
tomcornall opened this issue Nov 1, 2017 · 0 comments
Open

Add a "watch_patterns" (opposite of ignore_patterns) #14

tomcornall opened this issue Nov 1, 2017 · 0 comments

Comments

@tomcornall
Copy link
Contributor

Suggested by a customer - like using "ignore_patters", a "watch_patterns" could denote patterns that are being watched by LemonSync, and only those denoted are being watched.

By adding this, we could include a smart set of default "watch_patterns" that followed the default theme structure that we expect, for instance:

{
  "store": "http://testetattaet.local.io",
  "theme_code": "zest",
  "api_token": "1244j11kj2hf34hj12g4",
  "ignore_patterns": [
    "*.tmp",
    "*/.git*",
    ".ds_store"
  ],
  "watch_patterns": [
    "content/",
    "pages/",
    "partials/",
    "resources/",
    "templates/",
    "package.json/",
    "theme.yaml/"
  ]

This could lead to many fewer unexpected theme stuff being uploaded by mistake - think large node_modules folders.

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

No branches or pull requests

1 participant