Commit Graph

7 Commits

Author SHA1 Message Date
Dominic Gannaway
414cc67b93 Re-adds Flow parsing and stripping when option is enabled
Summary:
Release notes: adds option to parse and strip Flow annotations

In a [tweet I made at the end of last year](https://twitter.com/trueadm/status/944908776896978946) I linked to a REPL example that contained Flow type annotations. The example is now broken as we removed Flow type annotation parsing. :(

This PR adds this back behind the option `stripFlow` which is now enabled by default on the REPL and for React tests. I've also added a test to match the REPL for regression checking so this doesn't happen.
Closes https://github.com/facebook/prepack/pull/1439

Differential Revision: D6976663

Pulled By: trueadm

fbshipit-source-id: 47e28bc0986f1a1a252180f26200ce32314a4e5b
2018-02-13 08:48:24 -08:00
Dominic Gannaway
b891ee1166 Changes to React mocks for internal testing
Summary:
Release notes: none

This PR changes `react-mocks` -> `fb-www` and adds some `RelayModern` mocks. This is mainly for internal testing to unblock work.
Closes https://github.com/facebook/prepack/pull/1347

Differential Revision: D6798242

Pulled By: trueadm

fbshipit-source-id: 9c8a4aeef074e2a29e44fdd26352633f47bbc862
2018-01-24 11:42:07 -08:00
Jeffrey Tan
50d9168dfc Fix duplicate edges issue in Prepack heap visualization
Summary:
Release Note: Fix duplicate edges issue in Prepack heap visualization.

This PR did two things:
1. Fix duplicate edges issue in Prepack heap visualization by using unique identifier for edge id field.(#1300)
2. Prepack heap visualization supports two formats: 1. Dot language formatted used by CLI. 2. JSON format used by Vis.js library to visualize in website REPL. This PR allows both.
Closes https://github.com/facebook/prepack/pull/1308

Differential Revision: D6656452

Pulled By: yinghuitan

fbshipit-source-id: 123ec5c9a031bc43e0d71c1b0510956ef1463143
2018-01-03 15:13:05 -08:00
Dominic Gannaway
1e1d94517b Extract out website changes for REPL.js
Summary:
Release notes: none

Extracted our website changes from commit: 1dbefcbd83

This was done as suggested in 1dbefcbd83 (commitcomment-26606024).
Closes https://github.com/facebook/prepack/pull/1310

Differential Revision: D6655550

Pulled By: trueadm

fbshipit-source-id: b603657a056ee5124bab7fa85ea277a19509268e
2018-01-03 05:53:23 -08:00
artiebits
7b3d0dba83 Fix website dropdowns
Summary:
Issue https://github.com/facebook/prepack/issues/1296.

The previous version of Tether Select that was used in the website had `z-index: 100;` (still can check it in `gh-pages` branch) but in the version that we use from CDN, in order to reduce the size of Prepack repo, there is no `z-index`. So I've added it to the website styles.
Closes https://github.com/facebook/prepack/pull/1298

Differential Revision: D6638548

Pulled By: NTillmann

fbshipit-source-id: 1fb05a37d7bd83a71936ac4aa4ed9a138825f032
2017-12-27 09:58:58 -08:00
Wuhan Zhou
45383c8785 Display heap graph in website
Summary:
Release note: add heap graph visualization to website
Moved from #1243

- read in the heap graph data from prepackSources result
- display the graph using [visjs](http://visjs.org/)
Closes https://github.com/facebook/prepack/pull/1265

Differential Revision: D6571860

Pulled By: JWZ2018

fbshipit-source-id: 4c2d9bae91eaffff58df8909214d4c7bc56d1359
2017-12-14 15:03:35 -08:00
James Nolan
3c9c6ac2a5 Make master/docs a single source of truth for gh-pages
Summary:
Release note: none

To address issue #956 .

The idea is to have all documentation (aka "the website") in a single `docs/` directory on the `master` branch like [Jest](https://github.com/facebook/jest/tree/master/docs) and [Relay](https://github.com/facebook/relay/tree/master/docs) do. This directory then serves as a single source of truth to publish the `gh-pages` branch.

This PR:
- Moves the current content of the `gh-pages` branch to a `docs/` directory in `master`
- Provides a bash script for maintainers to easily publish the `gh-pages` branch from the `docs/` directory. The script also builds `prepack.min.js` from master to make sure gh-pages always has the latest version of prepack.

Additionally, I noticed the `gh-pages` branch had two `prepack.min.js` files (one in `./` and one in `./js/`). I removed the first one because it is apparently not used but it may break other websites if they references that file.

0. Fork the repo to avoid modifying the real website

1. Change the site
`> git checkout master`
`> echo ".nav { background-color: chartreuse; }" >> docs/css/style.css`
`> git add docs/css/style.css`
`> commit -m "The navigation bar looks better in green"`
`> git push`

2. Run the publication script:
`> ./scripts/publish-gh-pages.sh`

3. Verify that the gh-pages has been updated:
`> git checkout gh-pages`
`> git pull`
`> git diff HEAD~ # should show the line you added`
Closes https://github.com/facebook/prepack/pull/1223

Differential Revision: D6547395

Pulled By: j-nolan

fbshipit-source-id: 6e6d3aec97c0bcc2555c421d6f4a889bcd8df208
2017-12-12 12:10:05 -08:00