Lucas Duailibe
eea6f068b4
refactors
2018-04-12 18:09:37 -03:00
Lucas Duailibe
1c8dd0c1e7
more stuff
2018-04-12 13:28:28 -03:00
Lucas Duailibe
47430d0c19
some huge changes
2018-04-11 18:22:03 -03:00
Lucas Duailibe
d474d5c550
Merge branch 'master' into new-playground
2018-04-10 21:49:46 -03:00
Ika
7029346887
fix(playground): correct rangeStart/rangeEnd value ( #4273 )
2018-04-06 22:06:33 +08:00
James Henry
74ad0014aa
Playground: Add support for rangeStart and rangeEnd ( #4216 )
...
This allows users to more easily reproduce and report issues such as:
- https://github.com/prettier/prettier/issues/3789
- https://github.com/prettier/prettier/issues/4206
...etc...
2018-04-04 15:54:05 -04:00
Lucas Azzola
b1a7787e87
Fix vue self-closing tags ( #3693 )
2018-01-10 18:44:18 +11: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
Lucas Duailibe
0f548ebe47
Merge branch 'master' into new-playground
2017-12-31 09:41:18 -03: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
Lucas Duailibe
8811e45002
Merge branch 'master' into new-playground
2017-12-29 13:20:48 -03:00
Lipis
6a75f66731
Add Google Analytics on Playground ( #3576 )
2017-12-29 09:59:49 -05: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
Lucas Duailibe
225bfa7d97
playground wip
2017-12-26 00:22:17 -03: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
20373d6fee
Prettify style in playground and code block languages ( #3419 )
2017-12-05 19:48:11 -07:00
Lipis
23b8224240
Change cursor and remove outline in summaries on playground ( #3415 )
2017-12-05 21:21:02 -02:00
Lucas Duailibe
40af2e0514
Show a right border on sidebar
2017-12-05 18:29:49 -02:00
Lucas Duailibe
8bb6e169e2
Change playground options layout ( #3374 )
2017-12-05 17:54:07 -02:00
Ika
f3e7ca2210
chore(playground): add new options ( #3350 )
2017-12-05 21:22:10 +11:00
Ika
ed0f91f7be
feat(playground): add options ( #3222 )
...
* chore(playground): add options
* chore(playground): re-reorder options
2017-11-09 22:30:38 +11:00
Lucas Azzola
b4e7942bc0
Add markdown parser to playground ( #3165 )
2017-11-07 17:11:31 +11:00
Mitermayer Reis
2169357c17
Making sure playground can have shorter urls ( #3063 )
...
* Making sure playground can haver shorter urls
* Fixing linting
* Including lz-string on the service worker
2017-10-22 20:10:15 +11:00
Simon Lydell
0313ce6299
Fix the playground for 1.7.1
2017-09-27 20:38:16 +02:00
Simon Lydell
c6bac7cfe6
Split Less and SCSS parsing into different parsers ( #2844 )
...
* Split Less and SCSS parsing into different parsers
Now, .less files are always parsed with postcss-less, and .scss files
areare always parsed with postcss-scss. This:
- Is less hacky.
- Is meant to avoid issues like #2829 .
- Is probably more performant.
`parser: "postcss"` and `--parser postcss` continue to work like before:
First trying postcss-less, and if that fails, postcss-scss, unless a
regex says that we should try in the opposite order. The new values for
the parser option are "postcss-less" and "postcss-scss".
* Remove postcss from package.json since it is not used
* Rename parser-less to less and parser-scss to scss
* Deprecate parser:postcss in favor of parser:css
* Fix CSS tests
2017-09-26 07:08:11 +02:00
Simon Lydell
2ef7173f13
Fix playground button color
2017-09-14 19:40:38 +02:00
Simon Lydell
1469ef9cea
Use the jsx CodeMirror mode instead of javascript
...
Unfortunately, the "neat" theme we were using for CodeMirror does not
appear to support JSX, so I removed it and went back to the default
theme.
2017-09-14 08:49:20 +02:00
Simon Lydell
5d0ed5c671
Remove 1px page scrollbar in playground
2017-09-14 01:03:38 +02:00
Simon Lydell
1375e6880a
Generate ISSUE_TEMPLATE.md on build
2017-09-14 00:14:35 +02:00
Simon Lydell
ecaeec5b59
Add feature to test idempotency in playground
2017-09-13 23:40:51 +02:00
Simon Lydell
5b576f4e78
Add more buttons to the playground
2017-09-13 23:07:19 +02:00
Simon Lydell
323941bfd8
Clean up playground CSS and design
...
- Move the version to the header. Saves some vertical space.
- Use system font.
- Simplify CSS.
- Better header alignment.
2017-09-13 21:01:11 +02:00
Simon Lydell
cf9d52e9f3
Hide ast and doc editors while loading the playground
2017-09-13 16:47:21 +02:00
Simon Lydell
8ba2acadbb
Make sure that shown playground Prettier version always is in sync
2017-09-12 22:17:06 +02:00
Simon Lydell
482a1d8311
Improve doc and ast editor appearance
2017-09-12 22:17:06 +02:00
Simon Lydell
d6eeaae29b
Fix some playground HTML errors and warnings
2017-09-11 19:59:03 +02:00
Simon Lydell
cdb7c0d4e3
Set playground Codemirror mode based on parser
2017-09-11 19:55:15 +02:00
Simon Lydell
1827d65d93
Add a "Copy as markdown" button to the playground
2017-09-11 19:27:56 +02:00
Frank Li
80f38ce75b
Website ( #2241 )
...
* initial docusaurus set-up
* Delete why-prettier.md
* Update README.md
* Update Docusaurus structure
* Update package.json
* Update siteConfig.js
* Remove ~ files
* chore(website): update build script
* Add redirect script
* Get eslint working on website
* Fix to allow for baseUrl of '/'
* Update docusaurus version
* Update README.md
* Change redirect script to use baseUrl of '/'
* Fix index.js formatting
* Load redirect script
* General cleanup
* Add projects using prettier
* Update service worker to just scope to playground
* Reduce link repeatition
* Link "Try it out" button to /playground/
* Make header of playground approximately same as main site
* Remove .html from URLs (e.g. users.html -> users/)
* Link Gitter Chat
* Add circleci.yml
* Only run builds on master
* Do deployment using Travis
2017-07-02 10:14:24 +10:00