* globby@10 update (with fast-glob implementation)
with some minor test snapshot updates in tests_integration since
fast-glob does not always keep the same file order as node-glob
* with no `nodir: true` option
use of no `nodir: true` option was introduced in 639c52388
but it does not seem to be needed with some newer
versions of globby
* with workaround for fast-glob on Windows
ref: https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Christopher J. Brody <chris@brody.consulting>
* Revert "with no `nodir: true` option"
This reverts commit f7297cbceebc3d939bca0d90a904a1d3fea45345.
* revert updates to snapshots in tests_integration
* sort the file paths from globby
and update some snapshots in tests_integration
* Update build scripts
* replace `util.promisify` with `pify`
* style
* typo
* add pify to dict
* check index.js
* debug
* exclude `transform-async-to-generator`
* fix `bin-prettier.js`
* restore disabled script
* try depth:1
* remove depth add `./`
* sort dir
* disable expandDirectories
ref: https://github.com/sindresorhus/globby/blob/master/index.js#L95
* use absolute path
* remove sort()
* sort dir
* use `alphasorti` compare
* remove './'
* fix `findPluginsInNodeModules`
* fix `findPluginsInNodeModules`
* restore snap
* fix `findPluginsInNodeModules`
* return early
* code style
* sort
* update snap
* try mem
* mem `loadPlugins` function
* fix
* glob directories instead of package.json
* use deep
* remove mem
* improve speed
* support dot pattern
* expand directories test
* restore import order
* remove snap
* update test
* restore `findPluginsInNodeModules`
* Update `globby`
* `fast-glob` beta
* Restore logic
* Add tests for `globby` update
* Fix tests
* Remove option with default value
* Try new beta version of `fast-glob`
* Restore error info
* Add `path.sep` check
* Fix plugin resolution when path does not start with ./
* Minor consistency fix: use "if (resolvedPluginSearchDir) {...}" in load-plugins
* Use more appropriate quotes in plugin-resolution.js
* Try both local paths and node modules when resolving plugins manually
* Test bespoke plugin loading by node module name
* Simplify getFileInfo() as suggested by @j-f1
https://github.com/prettier/prettier/pull/4341#discussion_r187112707
* Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir
* Use find-parent-dir instead of find-up and test autoloading (with mocked fn)
* Add two test cases where --plugin-search-dir is not .
* Do not mutate pluginSearchDirs argument in load-plugins.js
* Do not test automatic plugin resolution as mocking of "find-parent-dir" does not work due to rollup
* Document --plugin-search-dir / pluginSearchDirs and improve spacing
* Address @ikatyang's review comments
* Fix require path for third-party
* Undo alphabetic sorting of third-party scripts
* refactor(cli): defer default value applying
* Allow plugins to override default options
* Move "defaultOptions" to top level of plugin
* Simplify implementation
* Attach plugin name
* Add pluginOptions to cli help
* Update snapshots
* Code review (immutable style)
* Add test for help output
* Use snapshot test, fix Object.assign
* Refactor to immutable style
* Add test case for automatic plugin resolution
* Add tests for applying and overriding default opts
* Remove "since" option
* Only set defaults for CLI args when no pluginDefaults are present
* Revert workaround, rebase to #4045
* Add basic documentation for `options` and `defaultOptions`
* Automatically load plugins from package.json
* Fix build by adding json extension
* Fixup misuse of options argument
* Rewire graceful-fs to fs
* Document graceful-fs issue
* Alias graceful-fs to fs in Rollup
* feat(glimmer): initial HTML/Handlebars/Glimmer support
* feat(glimmer): support un-escaped mustache expressions
* fix(glimmer): add 'as |foo|' syntax
* fix(glimmer): support {{foo bar}} syntax
* feat(glimmer): implement all AST types
* feat(glimmer): implement if/else if/else
* test(glimmer): ignore leading/trailing whitespace from AST_COMPARE
* fix(glimmer): do not use trailing slash for void self-closing elements
* chore(build): disable html tests until we can sort out the glimmer dependency
* feat(html): complete rebase on parse5 addition
* Prettier Support For Glimmer VM/Handlebars
Polished Support for Sub Expressions
Added test cases for glimmer primitives
Added support for concat statements
Attempted to make element nodes work
Attempted block statements
Element Nodes are OK
Added support for block elements that are not else-if related
Added support for Else/If
Cleaning up
Rebase
Switch node 4 syntax
Update build
* Removed dead code/partials
* Added new lines to end of test files.
* Rebase after plugin change
* Added ignores to code coverage
* Split up comment printing
* Refactor plugin handling
* Allow multiparser to use options normalization
* Rename to canAttachComment
* Add inline comment
* Format code
* Use prettier.__debug to get AST