Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

Feature Request - start/watch --minimal mode #995

Open justinmetros opened 5 years ago

justinmetros commented 5 years ago

Problem

Not a problem at all. I like to use VS Code and generally have a terminal at the bottom of my app open. On every save, it outputs a ton of great info on the theme, its urls, etc. this is extremely helpful! Especially on start.

But if there is say a template error, it spits out first and then below it, is all the links to preview and such.

So if there is an error I generally need to scroll up to see it.

If there were a minimal flag ( I'm not a copywriter, something along those lines ) that just had the core info, that would be a pretty sweet little opt-in.

Replication steps

None

More Information

Current terminal output on every save:

✔  Compiled successfully in 0.121s!

✔  Files uploaded successfully!

★  You are editing files in theme 1234567890 on the following store:

      https://my-shop.myshopify.com?preview_theme_id=1234567890

   Your theme can be previewed at:

      https://localhost:3000/?preview_theme_id=1234567890 (Local)
      https://192.168.7.42:3000/?preview_theme_id=1234567890 (External)

   Assets are being served from:

      https://localhost:3001 (Local)
      https://192.168.7.42:3001 (External)

   The Browsersync control panel is available at:

      http://localhost:3002 (External)

Watching for changes...

Proposed output on every save under a flag:

✔  Compiled successfully in 0.321s!
✔  Files uploaded successfully!
★  You are editing files in theme 1234567890 on the following store:
      https://my-shop.myshopify.com?preview_theme_id=1234567890
Watching for changes...

Its a little thing but screen real estate is valuable.

dan-gamble commented 5 years ago

This is a neat idea. I think this could be a good example for someones first PR to the project!

https://github.com/Shopify/slate/blob/master/packages/slate-tools/cli/commands/start.js#L204

Is the file you'd be after

justinmetros commented 5 years ago

Is this repo really on ice? Please say it ain't so...