Commit Graph
154 Commits
Author SHA1 Message Date
fisker Cheung a1423e05b4 Switch rollup-plugin-json to @rollup/plugin-json (#6987) 2019-11-17 17:29:11 +01:00
fisker Cheung ce9f4a4a2c Fix babel includes plugin (#6985) 2019-11-17 15:01:17 +01:00
fisker Cheung 56b4ce349f Enable replace-array-includes-with-indexof for all bundles (#6982) 2019-11-17 12:05:19 +01:00
Simon Lydell 44b819144b Support string-to-package config in JSON schema: (#6941)
Prettier supports having just a string in the config file to use a
shared config from a package. Example:

    "@company/prettier-config"

But the JSON schema generated by running `node
scripts/generate-schema.js` did not include that possibility.

See https://github.com/SchemaStore/schemastore/pull/855 for more
information.
2019-11-13 17:45:59 +01:00
Nick McCurdyandJed Fox 37846a70b1 Remove typescript-etw from build (#6919)
Co-authored-by: Jed Fox <git@twopointzero.us>
2019-11-12 17:46:28 +01:00
fisker Cheung 1d1a90144f Fix bin permissions (#6902) 2019-11-09 17:42:52 +01:00
Simon Lydell b091fd3b59 Remove out-of-date comment 2019-11-09 12:12:31 +01:00
Simon Lydell 4eb3e2650a Blog post, changelog and docs for 1.19 (#6787) 2019-11-09 01:23:57 +01:00
fisker Cheung d05be09406 Fix unpkg links in docs (#6872) 2019-11-08 17:33:28 +01:00
dependabot-preview[bot] 5458fb5f17 Bump @typescript-eslint/typescript-estree from 2.6.0 to 2.6.1 (#6805)
* Bump @typescript-eslint/typescript-estree from 2.6.0 to 2.6.1

Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.6.1/packages/typescript-estree)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* add shim for path.extname
2019-11-06 20:45:09 +01:00
fisker Cheung d789126c69 Switch rollup-plugin-alias to @rollup/plugin-alias (#6764)
* Switch `rollup-plugin-alias` to `@rollup/plugin-alias

* fix build script
2019-10-31 14:16:58 +02:00
fisker Cheung 417b92c636 Switch rollup-plugin-replace to @rollup/plugin-replace (#6750) 2019-10-30 15:07:01 +02:00
fisker Cheung b5a201b0ae Prevent webpack generate .LICENSE file when minify (#6737)
* check build result

* list dist file

* Update build script

* restore ci script [skip ci]
2019-10-30 14:33:52 +02:00
Georgii Dolzhykov 69b481758c set up cspell (#6684)
* set up cspell

* fix actual misspellings

* add cspell.json to .prettierignore

* rebase and fix issues in CHANGELOG.unreleased.md
2019-10-25 00:07:17 +03:00
fisker Cheung d52021ecbf Minor tweaks for build configs (#6663)
* Minor tweaks for build configs

* fix `@angular/compiler` path
2019-10-16 07:08:30 +02:00
fisker Cheung b5cc13a5df Remove usage of require.extensions in parser-glimmer.js (#6658)
* Fix usage of `require.extensions`

* try cjs build

* update comment
2019-10-15 18:00:32 +02:00
fisker Cheung c949f5ba20 Use babel plugin replace includes (#6659) 2019-10-15 13:48:56 +02:00
fisker Cheung 3f13d2ec1b Support typescript 3.6 (#6519) 2019-10-03 15:24:03 +03:00
fisker Cheung f86a5bfae3 Update webpack to v4.41.0 (#6560)
* Update `webpack` to v4.41.0

* update cache version
2019-09-28 15:40:28 +02:00
fisker Cheung a0eddb1c8c Update rollup related deps (#6484) 2019-09-16 08:33:40 -03:00
fisker Cheung 71d9a08488 Minify postcss parser (#6395)
* Update webpack to v4

* add todo

* add link

* Minify postcss parser

* update yarn.lock

* chore: update yarn.lock
2019-09-16 12:13:32 +03:00
fisker Cheung 370e827217 Update webpack to v4 (#6366)
* Update webpack to v4

* add todo

* add link
2019-09-14 00:55:30 +03:00
fisker Cheung 7829caa818 Fix .eslintrc.yml code style (#6388) 2019-08-12 18:23:13 +03:00
fisker Cheung 0e77cd3d33 Update ESLint to v6 (#6364) 2019-08-08 13:21:32 +03:00
Lucas Duailibe 3805034bdf Improve Rollup setup 2019-06-07 18:20:40 -03:00
fisker Cheung 99d4b86c18 Rollup update (#6200) 2019-06-07 16:58:05 -03:00
Lucas Duailibe 277b92a883 [release script] Update changelog script 2019-06-07 09:46:19 -03:00
Lucas Duailibe 4cc99242a8 Bump Prettier dependency to 1.18.0 2019-06-06 18:48:11 -03:00
Lucas Duailibe bb1fd59e00 Remove eval() call from the bundle (#6129) 2019-05-17 10:15:45 -03:00
Lucas Duailibe bd8e22497d Stop handling 'global' in the Node-specific bundles (#6124) 2019-05-15 12:57:04 -03:00
Alex Rattray 850493e424 Add doc build (#6009) 2019-03-25 09:44:22 -07:00
James Henry 1143619600 chore: update typescript-estree to new package name (#5799) 2019-01-28 19:46:51 -05:00
Ika 3d7970a673 chore(scripts): add update-stable-docs to release script (#5772)
Ref: https://github.com/prettier/prettier/pull/5676#issuecomment-449624247
2019-01-20 11:43:26 +08:00
James Henry ef6386015d fix: update typescript and typescript-estree to latest (#5728) 2019-01-12 11:10:52 +08:00
Jimmy Gaussen 282597c1e5 docs: fix Windows build (#5742) (#5743) 2019-01-10 18:33:43 -05:00
Ika f744a84858 feat(website): enable docs versioning (#5676) 2018-12-25 08:20:35 +08:00
Jed Fox b74f94d6dd Remove the dynamic require() call in the standalone bundle (#5612)
* Remove the dynamic `require()` call in the standalone bundle

* Liiiint

* Just use `replaceStrings`

* Reword error message
2018-12-11 05:59:59 -05:00
Wei-Wei Wu c28dc2f19c Updating cosmiconfig to not cache .js config files when told not to (#5558) 2018-11-29 09:49:33 +08:00
Ika bd3834010c chore(build): es5 compatibility for browser (#5560) 2018-11-28 12:52:05 +08:00
Ika 5e8a4a115a feat: support HTML/Vue/Angular (#5259) 2018-11-04 23:03:07 +08:00
Ika 13147facc5 feat(html): switch to htmlparser2 (#5127)
- switch to [`htmlparser2`](https://github.com/fb55/htmlparser2)
  - no need to fork
  - won't generate pseudo nodes ([`parse5` will](https://github.com/prettier/prettier/issues/5098#issuecomment-423055181))
  - should be [faster](https://github.com/fb55/htmlparser2#performance)
- support custom self-closing tags
- support HTML entities
- remove extra trailing newline for `<template>`
- distinguish empty/empty-string attributes (`<tag x>`/`<tag x="">`)
- rename `--parser parse5` with `--parser html`
- enable `html` since 1.15, which means it's enabled by default if you install the dev version from GitHub after this PR merged.
2018-09-22 21:53:38 +08:00
Ika 835f4c05b0 chore: copy LICENSE to dist (#5114) 2018-09-19 20:43:26 +08:00
Ika 79f4251e26 chore: enable html on preview playground (#5105) 2018-09-19 09:19:18 +08:00
Ika 91206891cd fix(markdown): do not add whitespaces between Latin and Hangul (#5040)
Based on https://github.com/prettier/prettier/issues/5028#issuecomment-417825085, it seems Korean text uses conventional space so we're not going to add whitespaces between Latin and Hangul.
2018-09-02 16:20:22 +08:00
Ika db2bc3636d fix(yaml): update parsers (#5027)
- upgrade to `yaml@1.0.0-rc.8` and `yaml-unist-parser@1.0.0-rc.4`
- refactor some logic since the AST has slightly changed (ikatyang/yaml-unist-parser#82)
- unmatched aliases are now errors since it may introduce invalid AST from `yaml`
- rewrite the document separator (`...`/`---`) logic, this fixes some cases where it can use `---` but we printed `...`
- removed some unnecessary duplicate trailing newline
- trailing comments on `document` (`... #comment`) and `documentHead` (`--- #comment`) are preserved (i.e. they won't be moved somewhere)
2018-09-01 20:04:37 +08:00
Ika 8973caf4bb chore: improve release scripts (#4933)
- use the latest git tag as the previous version
- restore/bump the version on master in `bump-prettier.js`
- use `stdio: "inherit"` for `npm publish` so that we could input the OTP
- do not use `--runInBand` for local `test:dist`
- remove `Updating integration snapshots`
- remove `Attach all files in dist/ folder`
2018-08-08 23:49:22 +08:00
Ika 308863e061 fix(typescript): no invalid output for ImportType in TypeReference (#4939) 2018-08-07 18:53:11 +08:00
Brian Ng 1597578b05 Bump babel-parser (#4910) 2018-08-02 22:19:21 -05:00
Ika 1915cc3c46 chore: enable glimmer parser on preview playground (#4915) 2018-08-01 15:44:37 +08:00
Ika 440ab4f60b refactor: upgrade to cosmiconfig@5 (#4899)
* refactor: upgrade to cosmiconfig@5

* fix: use custom require
2018-07-29 16:57:36 +08:00