Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMove standard --format into a separate module #340
Comments
This comment has been minimized.
This comment has been minimized.
|
I am okay with this, and maybe revisit adding it back if we can get it down to a much smaller set of deps. |
This comment has been minimized.
This comment has been minimized.
|
We should pull the editor plugin authors into this discussion too cc @stephenkubovic thoughts? |
This comment has been minimized.
This comment has been minimized.
|
yeah, +1 on not including |
This comment has been minimized.
This comment has been minimized.
|
+1. This should also avoid formatting issues being opened in the linter. |
This comment has been minimized.
This comment has been minimized.
|
|
feross
added
the
v6
label
Nov 21, 2015
This comment has been minimized.
This comment has been minimized.
|
Here are some real-world measurements with npm3. With
Without
So it cuts install time in half. And it removes the following dependencies:
|
This comment has been minimized.
This comment has been minimized.
|
I'm okay with removing |
This comment has been minimized.
This comment has been minimized.
|
\o/ |
This comment has been minimized.
This comment has been minimized.
|
Also, standard-format is definitely looking for some help. There are lots of ES6 issues that probably require modification of upstream deps, and some attention to reducing the number of dependencies that it pulls in would also improve things a lot. It works great for the tried and true ES5 style JS, but you end up having to work around it for ES6 and react stuff. I'll try to clean up the issues over the next week and document ways people can help out. |
This comment has been minimized.
This comment has been minimized.
|
I like @yoshuawuyts idea of running |
This comment has been minimized.
This comment has been minimized.
jzaefferer
commented
Nov 23, 2015
|
You can print an error otherwise, something like |
This comment has been minimized.
This comment has been minimized.
|
Never done anything like that before, but I like the idea, with the fallback to a message like @jzaefferer mentioned. |
This comment has been minimized.
This comment has been minimized.
|
Maybe we can do a |
This comment has been minimized.
This comment has been minimized.
|
Yes, a hackathon for getting |
This comment has been minimized.
This comment has been minimized.
tjmehta
commented
Dec 22, 2015
|
@feross lmk about a |
feross
added
the
feature request
label
Dec 25, 2015
mafintosh
added a commit
to mafintosh/standard
that referenced
this issue
Feb 1, 2016
This comment has been minimized.
This comment has been minimized.
|
This is completed now, and in the |
feross
closed this
Feb 4, 2016
feross
added a commit
that referenced
this issue
Feb 4, 2016
This comment has been minimized.
This comment has been minimized.
tunnckoCore
commented
Feb 6, 2016
|
Why not just moved it to devDependencies and save the |
This comment has been minimized.
This comment has been minimized.
|
@tunnckoCore |
This comment has been minimized.
This comment has been minimized.
tunnckoCore
commented
Feb 7, 2016
|
@watson I know that. And exactly because of that, this will throw to the users and they will install it if they want/use formating. |
This comment has been minimized.
This comment has been minimized.
junosuarez
commented
Feb 8, 2016
|
My CI builds thank you |
This comment has been minimized.
This comment has been minimized.
|
@jden |
This comment has been minimized.
This comment has been minimized.
|
I think keeping |
This comment has been minimized.
This comment has been minimized.
SGTM. |
This comment has been minimized.
This comment has been minimized.
tunnckoCore
commented
Feb 9, 2016
|
|
This comment has been minimized.
This comment has been minimized.
|
@dcousens @bcomnes @tunnckoCore This change is already shipped in |
mafintosh commentedNov 19, 2015
Currently around ~1/3 of the dependencies are there to support
standard --format. I propose we move that command to a separate modulestandard-formatsince it isn't related to linting and would make standard a lot "lighter" to install.