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
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
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
James Henry
ef6386015d
fix: update typescript and typescript-estree to latest ( #5728 )
2019-01-12 11:10:52 +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
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
Jed Fox
60f1e1d37b
Remove code removing a key I removed from package.json ( #4859 )
2018-07-17 16:11:48 -04:00
Jed Fox
dc362c212d
Report test summaries to CircleCI ( #4704 )
...
* Report test summaries to CircleCI
* Don’t run jest-junit on Node <6
(it uses default function parameters)
* Address @lydell’s comment
* Use @duailibe’s suggestion
* 🔥 `jest-junit` key in production package.json
* Move config to jest.config.js
2018-07-07 12:11:04 -04:00
Lucas Duailibe
3f91d6427d
Correctly replace 'process.env.NODE_ENV' ( #4787 )
2018-07-01 11:22:40 -03:00
Lucas Duailibe
576e570711
Fix custom require's ( #4766 )
2018-06-28 15:56:25 -03:00
Ika
dcf44ffbdc
feat: support YAML ( #4563 )
...
* feat: support YAML
* fix: do not indent sequence in mappingValue
* docs: add yaml to index.md
* fix: reduce `SyntaxError: Node#parse consumed no characters`
* chore: remove old-build and new-worker.js
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* fix: no space after `<<`
* fix: add yaml to standalone test
* test: add tests
* fix: next empty line in flow collection
* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/
* fix: update parser
* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id
* chore: fix node 4
* chore: add tools_yaml.svg
* chore: remove resolved TODO
* refactor: remove unnecessary workaround
* chore(worker): importScriptOnce
* chore(build): rename with babelPlugins
* make it rollup compatible
* feat: support singleQuote
* refactor
2018-06-21 10:29:42 +08:00
Lucas Duailibe
9ec1da1ad1
[internal] Cache build results ( #4693 )
2018-06-18 15:16:40 -03:00
Lucas Duailibe
0780adbb0d
Fix build output in CircleCi
2018-06-14 11:15:04 -03:00
Lucas Duailibe
78ac229956
Transpile webpack generated bundles ( #4689 )
2018-06-13 17:23:33 -03:00
Lucas Duailibe
f0907a049d
chore(rollup): Refactor native shims plugin
2018-06-13 12:49:35 -03:00
Lucas Duailibe
889b7dab79
Run tests using the standalone build in an empty context ( #4668 )
...
Validate that our build is stripping all the "native" dependencies (native modules and env vars).
2018-06-12 15:05:40 -03:00
Lucas Duailibe
54b1f8562d
Introduce Release script ( #4631 )
2018-06-05 16:37:52 -03:00
Ika
26b13b6274
chore(scripts): update ISSUE_TEMPLATE and exclude tarball ( #4620 )
2018-06-01 10:58:16 -03:00
Lucas Duailibe
8a67378f97
Nicer logging on build script ( #4590 )
2018-05-29 14:59:57 -03:00
Suchipi Izumi
89c84e5ee0
Fix some build script issues
...
* Copy README to dist
* Fix strings in prepublishOnly
2018-05-29 00:22:59 -06:00
Lucas Duailibe
174a7736c1
[build] Always transpile everything ( #4548 )
2018-05-25 12:47:01 -03:00
Lucas Duailibe
ded8524acd
Drop node 4 support for development ( #4537 )
2018-05-24 15:49:57 -03:00
Lucas Duailibe
52a2a46b3c
New build system ( #4449 )
2018-05-24 15:30:45 -03:00
Ika
1062f2a889
feat: support JSON.stringify formatting ( #4450 )
...
* test: move tests
* feat: support legacy JSON formatting
* fix: add missing assertion
* test: fix coverage
* fix: same output as JSON.stringify
* refactor: fix linting
* refactor: rename to json-stringify
* refactor: fix linting
* fix: should fix the production build
* docs: remove outdated name
* fix(playgound): add lib/parser-json-stringify.js
* feat(playgound): add example for json-stringify
* fix: no error on singleQuote string
* fix(playground): correctly load json-stringify
* fix: identifier is only allowed in ObjectProperty.key
* refactor: clearer
2018-05-14 09:12:25 +08:00
Lucas Duailibe
f48dd0ea3b
Simplify `build-docs.js` ( #4453 )
2018-05-09 14:41:51 -03:00
Lucas Duailibe
091edee99c
New playground ( #3573 )
2018-04-20 12:08:05 -03:00
Brian Ng
9c15f9ed9e
Remove workaround in rollup config for flow parser
2018-04-17 09:50:27 -05:00
Lucas Duailibe
1c8dd0c1e7
more stuff
2018-04-12 13:28:28 -03:00
Lucas Duailibe
46c8a4cd9d
Move sw-toolbox to `website` dependencies ( #4297 )
2018-04-11 11:38:48 -03:00
Joseph Frazier
286601f5fa
Don't publish nested tarballs ( #4197 )
...
Fixes https://github.com/prettier/prettier/issues/4179
I tried the `.gitignore` idea, but it didn't work, presumably because we
publish from `dist/` instead of the repo root. See here for more details
on how/why this solution works:
https://docs.npmjs.com/files/package.json#files
2018-03-24 19:11:24 -04:00
Sandhose
6b5765da36
Use the animated logo on the website's landing page ( #3910 )
...
* Use the animated logo on the landing page
* docs: Add build step to copy logo css
* docs: Shrink the logo when the screen is small
2018-02-07 09:47:14 +11:00
Christopher Chedeau
9ba0d69cb9
Upgrade flow to 0.64 ( #3899 )
...
* Upgrade flow to 0.64
This also enables spread operator on jsx on the flow parser:
```js
<div>{...list}</div>
```
I had no idea it was even a thing.
I had to comment out a flow test that no longer parses, but it's no longer in the flow repo and the comment said that it shouldn't be working anyway so I don't think it's going to be a problem.
* Fix build script
2018-02-06 09:01:58 -08:00
Lucas Azzola
a10418ee80
Bump Prettier to 1.10.1 ( #3699 )
...
* Bump Prettier to 1.10.1
* Fix relative paths
2018-01-11 01:13:09 +11:00