Ika
84c603623d
feat: support external options ( #3775 )
...
* refactor: wrap
* refactor: replace
* refactor: replace
* refactor: replace
* refactor: extract
* refactor: logger
* refactor
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* feat(support): add `showInternal` option
* refactor: use internal
* refactor
* refactor: extract
* refactor: extract
* refactor
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: reorder
* refactor: remove unnecessary
* refactor: reorder
* refactor: move
* refactor
* refactor
* refactor
* refactor: remove unnecessary
* feat: external options from CLI
* refactor: push/pop plugins
* feat: external options from config file
* refactor: remove unnecessary
* refactor
* refactor
* refactor
* fix: use `json-stable-stringify`
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: move
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: move
* refactor: extract
* docs: add comments
* refactor: sort
* refactor: sort
* refactor: rename
* refactor: remove unnecessary
* style: remove trailing whitespace
2018-01-28 00:24:25 +08:00
Lucas Azzola
4c9d4061da
Prettier Plugin API ( #3536 )
...
* Move files around in preparation for refactor
* Update paths in build script
* Extract generic printing logic from the JavaScript printer
* Conform printer API
* Fixup decorator handling
* Fix multiparser
* Create plugin entry for markdown
* Create plugin entry for javascript/typescript
* Create plugin entry for html
* Create plugin entry for graphql
* Create plugin entry for css/less/scss
* Move JSON to JS plugin entry
* Integrate plugins into getSupportInfo()
* Move astFormat to parser definition
* Move util to common
* Implement parser loading
* remark -> mdast
* Rename cli/cli -> cli/index
* Rename builder -> doc package, fix printer resolution
* Fix doc shape assumption in CSS-in-JS logic
* Fix third-party.js prod resolution
* Fixup build-docs script
* Distribute multiparser code
* Remove requirement to forward options
* Flatten closure
* Remove debug directory
* Expose doc
* Add external plugins
* Pass options to loadPlugins
* Export getParsers
* Pin resolve version
* Use getSupportInfo in Markdown embed
* Document plugin API
* Update build-docs
* Add CLI for plugins
* Lint docs
* Fixup build.js
* Add vue language
* Fixup multiparser for vue
* Upgrade rollup and rollup-plugin-commonjs
* Fixup third-party build
* Change AST format in docs
2017-12-26 12:23:50 +11:00
Ika
7770356a51
test(integration): update title and catch all outputs ( #2951 )
2017-10-02 18:08:34 +02:00
Simon Lydell
43cb08c45c
Make production tests always run against dist/ (attempt 2) ( #2942 )
...
* Make production tests always run against dist/
* Try to mock process.stdin instead of get-stream
* fix: mock `get-stream` from `index.js`
* refactor: remove unnecessary variable
* Try `transform: {}` in jest.config.js
* Add comment explaining the unusual get-stream mocking
2017-10-02 17:58:55 +02:00
Ika
184e368a9a
feat: support detailed `--help` ( #2847 )
...
* feat: support detailed --help
* refactor: put alias first, separate with comma
* feat: support detailed --help for --no-option
* docs: add missing type
* docs: remove `This requires node 8 or a transform`
* docs: remove config-precedence's choice descriptions in option.description
* docs: replace `option-name` with `flag`
* docs: update docs for `choices`
* docs: update `help` description
* docs: update error message
* docs: replace `undocumented` with empty string
* refactor: extract `getOptionDefaultValue`
* refactor: dynamically generate `defaults to ...`
* refactor: extract `getOptionWithLevenSuggestion`
* refactor: extract `createChoiceUsages`
* refactor: remove `optionTitleName`
* test: add `--help` tests for all options
* fix: handle `--help --help`
* feat: support `--help <alias>`
* refactor: use `flattenArray`
* feat: handle `--help <unknown>`
* docs: add description for `semi`, `color` and `bracket-spacing`
* fix: remove unnecessary option in `--help`
2017-09-21 07:54:13 +02:00
ikatyang
6ab8edafd5
test: add tests
2017-09-09 11:49:22 +08:00
ikatyang
ac9fa43114
test(integration): add more tests
2017-09-03 21:31:33 +08:00