Commit Graph
68 Commits
Author SHA1 Message Date
fisker Cheung e8b299d164 Rename native shims to .mjs (#9079) 2020-08-28 10:03:36 +08:00
fisker Cheung 5223b78dcd Build: Quick fix for #8639 (#9035)
* Quick fix for #8639

* style

* style (prettier)
2020-08-24 19:19:13 +09:00
fisker Cheung 038d1642b2 Build: remove --max-old-space-size (#8994) 2020-08-18 21:52:02 +08:00
fisker Cheung b8a3f84c19 Build: Avoid PREFER_NAMED_EXPORTS warning (#8814) 2020-07-24 13:01:43 +08:00
fisker Cheung f8e6c215ce Refactor: Move parsers to language index (#8765) 2020-07-17 09:06:00 +08:00
fisker Cheung 0c2b918078 ESLint: enable import/order (#8635) 2020-06-26 20:30:21 +08:00
b3ea679958 Fix encoding in postcss-parser build (#8534)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-06-12 09:12:42 +08:00
fisker Cheung 23567c4e43 Switch rollup-plugin-babel to @rollup/plugin-babel (#8282)
* Switch `rollup-plugin-babel` to `@rollup/plugin-babel`

* Add `babelHelpers: "bundled"`

* Update cache version

* Remove `babelHelpers` for webpack

* Move `babelHelpers` to rollup only
2020-05-11 21:27:54 +03:00
fisker Cheung 01c2015f72 Update CI cache key (#8236)
* Update CI  cache  key

* Update build script, expect missing cache
2020-05-07 03:51:25 +08:00
fisker Cheung 207d5245c5 Build: exclude index.js from bin-prettier (#8119) 2020-05-06 18:43:04 +08:00
fisker Cheung ea2169a97f Build: Fix cache logic (#8128) 2020-04-24 11:00:06 +08:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
fisker Cheung 23079c461e Update babel target (#7418) 2020-01-29 09:03:36 +09:00
fisker Cheung afd3e5d101 Fix some String#repeat (#7335) 2020-01-19 00:48:04 +02:00
fisker Cheung eac6fba2c3 Fix new usage for builtin objects (#6968) 2019-11-17 11:36:21 +01:00
fisker Cheung e44c360c62 Update build scripts to target Node.js 10 (#6908) 2019-11-13 18:08:40 +01:00
fisker Cheung 1d1a90144f Fix bin permissions (#6902) 2019-11-09 17:42:52 +01: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
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 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 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 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
James Henry ef6386015d fix: update typescript and typescript-estree to latest (#5728) 2019-01-12 11:10:52 +08: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 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 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 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 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
Lucas Duailibe 1c8dd0c1e7 more stuff 2018-04-12 13:28:28 -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
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
Robert Webb 833666a394 Support handlebars (#3534)
* 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
2017-12-29 18:14:31 +01:00