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

dx improvements #1253

Open
4 tasks
shakyShane opened this issue Nov 20, 2016 · 1 comment
Open
4 tasks

dx improvements #1253

shakyShane opened this issue Nov 20, 2016 · 1 comment

Comments

@shakyShane
Copy link
Contributor

A list of improvements that could improve the developer experience:

CLI:

  • if no commands/args given, look for bs-config.js in local dir, so that browser-sync will work as expected for users that have previously created a config using browser-sync init 2bf65b8

  • if no commands/args given and the current directory has no bs-config file, start in server mode with some sane defaults.

  • allow multiple configs to be given on CLI and merge into 1. This will allow a 'base' configuration and then can be overriden by passing multiple paths, eg:

    browser-sync conf1.js conf2.js

    where conf1.js contains a full config, but then conf2.js can override anything in the first

  • if no commands given, but instead something that looks like a URL, automatically jump into proxy mode, eg:

    browser-sync https://example.com 

    Would just do what you'd expect and start a proxy for that address

Any more from the community, would be glad to hear suggestions :)

@fregante
Copy link

fregante commented Nov 21, 2016

All excellent points!

What would "sane defaults" be for 2? Start server in current folder and watch 2 levels of files excluding some commonly excluded folders? (Node_modules, etc)

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

2 participants