Commit Graph

153 Commits (84c603623da590487fa13bc6ae3fce4e80f465af)

Author SHA1 Message Date
TheDancingCode b0ad6ec9c3 Fix deprecation warning from Github Buttons on website (#3783)
Using data-show-count instead of data-count-api.
2018-01-22 07:56:28 -05:00
Jed Fox b92f1cd0ae
Use an SVG <object> tag to allow the Twitter button to be interactive (#3739)
* Use an SVG <object> tag to allow the Twitter button to be interactive

The interactive button links you to a page to follow the user directly, so I also added a direct link to the profile.

* Lint
2018-01-15 09:02:30 -05:00
Amadeus Demarzi 443e8fa3f3 Add Discord to users.yml (#3736) 2018-01-12 17:14:04 -07:00
Harry Wolff d0044074b1 Add MongoDB (#3733) 2018-01-12 14:10:58 -08:00
Michael Sharer 0e0fa5cc23 Add NHL to users list (#3703)
* Update users.yml

* Add NHL to users list
2018-01-11 00:23:15 +08:00
Haroen Viaene 408f3d3657 playground: add (s)css examples (#3696)
* playground: add (s)css examples

see #3667

* escape quotes

* add license notice

* lol fix prettier on prettier codebase
2018-01-10 07:57:04 -05:00
Jed Fox 9a1b57587d Add 1.10 blog post (#3659)
* Add 1.10 blog post

Copied from releases page

* Change a few things

* Add overview of changes

* Lint docs

* Scaffold out release notes

* Add prettier-ignores

* docs: add missing references

* docs: fix heading level

* docs: fix example

* Document plugin API

* Use shellsession

* docs: fix example

* docs: fix links

* Fix heading level

* change: ts upgrade -> numeric separator support

Instead of mentioning we updated the typescript version, we should emphasize on what value we added to users

* Fix repeated phrase

* add comment type annotation explanation

* Add note on no more wrapping () JSX elements

* Grammar

* Add more release notes

* Fill out remaining release notes

* Fix lint

* Add verb

* Fix heading level

* Update 2018-01-10-1.10.0.md

* Update 2018-01-10-1.10.0.md

* Add twitter buttons

* docs: add note for #3694

* Fix cake
2018-01-10 23:03:39 +11:00
Lucas Azzola b1a7787e87
Fix vue self-closing tags (#3693) 2018-01-10 18:44:18 +11:00
Marcel Jackwerth a27d19b2c1 Allow Plugins to preprocess text (#3664)
* Allow Plugins to preprocess text

* Actually pull up text

* Always expect the preprocessor to set the text

* Add tests for preprocessing

* Remove unused variable
2018-01-10 00:27:26 +11:00
Jed Fox dc4e44968f
Follow redirects in the user URLs (#3672)
(except the ones redirecting to `/en/` or similar)

Also remove trailing slashes on domains
2018-01-08 10:32:33 -05:00
Ika 5e2e7a2881 feat(playground): add example placeholder (#3657)
* feat(playground): add example placeholder

* Add TypeScript example

* fix: mock process.binding

* fix: add missing comma

* refactor: use legacy function

* fix: mock return `{}`

* Return the error stack when there’s a non-SyntaxError thrown

* Code style

* fix: mock path.resolve

* chore: cache placeholder.js

* fix mock path.resolve attempt 2

* fix: mock path.{parse,join,dirname}

* fix: mock process.cwd

* fix: mock path.parse root
2018-01-07 06:59:14 -05:00
michele e4e3c757fb Added GumGum to list of users (#3660) 2018-01-05 22:40:00 -02:00
Tejas Kumar 053202cc16 Added Contiamo to list of users (#3655) 2018-01-06 02:05:02 +11:00
Ika dbe0758b48 chore: shorten filename (#3636)
Context: https://github.com/prettier/prettier/pull/3627#issuecomment-354935942
2018-01-02 23:48:46 -05:00
Ika a627ca7b5d
docs: minor tweaks (#3627)
* docs(blog): replace `:emoji:` with `${emoji}`

* docs(blog): move images to assets

* docs(index): move images to assets

* docs(index): fix typo
2018-01-03 00:04:22 +08:00
Christopher Chedeau dcf04187db
Tweak CSS of the blog section (#3625)
* Tweak CSS of the blog section

* light codeblocks

![image](https://user-images.githubusercontent.com/197597/34471012-52212fba-eef2-11e7-8f75-404a3693c87d.png)
2018-01-01 17:08:47 -08:00
Lucas Azzola 800a1cf9d4
Add Blog, Populate with Release Notes (#3604)
* Add blog

* Rename files, add extra #

* Improve formatting

* Convert pull-request links

* Fix typo

* Update links in CHANGELOG.md, lint docs

* Add missing parens

* Remove banner images

* Add 1.0 release blog post

* Fix encoding bug

* Add truncate to 1.0 blog post

* TS syntax highlighting looks better than JS highlighting on Flow

* Add introductory sentences to older posts

* More highlighting fixes

* Fix mistake

* Fix more highlighting errors

* More highlighting fixes

* Add CSS fix

* fix truncate on 1.9.0 post

* fix truncate on 1.0.0 post

* Fix additional # and my name in 1.0.0

* Restore js -> ts on codeblocks
2017-12-31 15:23:17 +11:00
Ika 8a86c0cc9f fix(playground): fix report version (#3614) 2017-12-31 12:12:56 +11:00
Ika 0af436cd47 fix(playground): use `prVersion` (#3613) 2017-12-31 00:54:36 +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
Lipis 6a75f66731 Add Google Analytics on Playground (#3576) 2017-12-29 09:59:49 -05:00
Lucas Azzola b0647cb2c9
Fix PR Preview Playground (#3592)
* Fix PR Preview Playground

* Use module.exports for Prettier export

* Keep index for backwards compatibility
2017-12-28 22:37:47 +11:00
artiebits 15a68394dd Move playground styles to the single CSS file (#3588)
* Move playground styles to the single css file

* Add separateCss property to siteConfig.js
2017-12-27 17:32:37 -05:00
Jed Fox 1a3248bbc2 Change the changelog link to link to prettier/prettier (#3564)
* Change the changelog link to link to prettier/prettier

* Fix changelog links

* Double quotes
2017-12-26 00:04:02 -05: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
Christopher Chedeau c40b061b80
[vue] Introduce proper support for Vue Single File Components (SFC) (#3563)
There's a lot of demand for vue sfc (#2097). This introduces partial support for them: all the html is printed as is, except for the script and style tags which are printed using prettier. I believe that this should cover a lot of the use cases while being simple to support and if we want we can extend to more in the future.

I copy pasted the html parser used by vue (it's just a single 400 lines file) so that we don't run the chancesof conflicts. I'm also very conservative: I only print the style and script at the top level and for the lang attributes we support.

I expect this to be landable as is and provide value, review welcome :)
2017-12-25 01:15:33 +01:00
Jed Fox 9cbaecbb1e
Link the version text to the PR or changelog entry 2017-12-24 12:05:54 -05:00
Jed Fox eb30207fe5
Remove the `v` marker addition
It looks terrible on PRs.
2017-12-24 11:57:44 -05:00
Jed Fox 4497aa1efc
Make the playground header fit in with the rest of the site
Fixes https://github.com/prettier/prettier/issues/3542.
2017-12-24 11:49:47 -05:00
Lipis 3dfa2c07b2 Add Google Analytics tracking ID (#3506) 2017-12-24 15:42:36 +01:00
Jerome Leclanche 591a9cb6d0 Add HearthSim to users.yml (#3554) 2017-12-22 12:56:38 +11:00
Lipis 8b8268096f Refactor images for Users, Editors and Languages (#3479) 2017-12-19 10:42:16 -02:00
Lucas Azzola d1c97b3622
Convert eslint config and users/languages/editors files to YAML (#3516)
* YAML all the things

* Cleanup website data files

* Update edit links
2017-12-18 21:55:10 +11:00
Adam 56948a953e Add Troops to Users (#3505) 2017-12-18 09:48:30 +08:00
Praveen Durairaj f1680c3f22 Add hasura to list of users (#3504) 2017-12-16 15:56:54 +11:00
Matt Mulder b778df4fc2 Add Yelp to list of users (#3502) 2017-12-15 19:09:15 -02:00
Tom Bonnike 23ffddf94a Added N26 to the list of users (#3499) 2017-12-16 00:02:35 +08:00
Anton Vasin 67a51c1da6 Update mathrioshka url to https (#3498) 2017-12-15 22:46:22 +11:00
Kushagra Gour 57e821a28c add wingify to user list (#3497) 2017-12-15 03:12:22 -02:00
Anton Vasin 7f55cc5872 Add Mathrioshka to users (#3495) 2017-12-15 09:11:57 +08:00
Martin Irigaray f38c51269a IDEATI uses prettier (#3490) 2017-12-14 15:26:10 -02:00
Hemratna Bhimani 9157968159 Adding 7span.com to user.json (#3486)
At 7Span we user Prettier in our day to day workflow.
2017-12-14 20:51:40 +11:00
Hemratna Bhimani f8f18487d2 Adding 7Span logo. (#3487) 2017-12-14 20:51:12 +11:00
Christian Rackerseder 7b6f3eaeea Added HolidayCheck to website ☀️ (#3488) 2017-12-14 20:43:51 +11:00
Charles Pick d691c8d395 Add codemix to users (#3482) 2017-12-14 17:47:44 +11:00
James Henry 8f9798e792 Website: Add Nrwl to users (#3483)
* Update users.json

* Add nrwl logo
2017-12-14 10:47:25 +11:00
Emmanuel Vuigner 2816c45771 Add ZIP.ch to users.json (#3480) 2017-12-13 15:01:41 -02:00
Sorin Iclanzan 9d8429d420 Add Webflow to users (#3477) 2017-12-13 15:00:56 -02:00
Viktor Hubert 6cfa092979 Added Eventstag to users.json (#3478) 2017-12-13 12:51:34 -02:00
Fernando Montoya 00bc23ba5a Add Eye Square to users (#3476) 2017-12-13 12:19:28 -02:00