hermes-windows/website
Vladimir Morozov 9596bdfa69 Merge branch 'meta/main'
# Conflicts:
#	API/hermes/hermes.h
#	CMakeLists.txt
#	include/hermes/VM/HermesValueTraits.h
#	include/hermes/VM/JSArrayBuffer.h
#	lib/Platform/Intl/PlatformIntlApple.mm
#	lib/VM/JSArrayBuffer.cpp
#	lib/VM/Profiler/SamplingProfilerPosix.cpp
#	npm/package.json
#	website/yarn.lock
2022-09-01 07:58:47 -07:00
..
plugins Update copyright headers from Facebook to Meta 2021-12-30 15:08:38 -08:00
src Re-applies docs style fixes. 2022-08-25 17:24:32 -07:00
static chore: expose docs files on the website (#430) 2020-12-11 23:36:13 -08:00
.gitignore Initial commit 2019-07-10 09:43:55 -07:00
README.md Replace `master` with `main` or `HEAD` 2021-07-16 18:55:55 -07:00
build-hermes.sh Update copyright headers from Facebook to Meta 2021-12-30 15:08:38 -08:00
docusaurus.config.js Re-applies docs style fixes. 2022-08-25 17:24:32 -07:00
package.json Fix CVE for got which is a dependency of docusaurus 2022-06-30 14:18:24 -07:00
postprocess.js Update copyright headers from Facebook to Meta 2021-12-30 15:08:38 -08:00
sidebars.json Improve the website in prep for 0.8 release 2021-05-11 16:10:16 -07:00
yarn.lock Bump terser from 5.11.0 to 5.14.2 in /website (#115) 2022-08-19 23:13:16 +00:00

README.md

Hermes JS Engine Website

This directory contains the source code for the Hermes JS Engine website available at https://hermesengine.dev/.

Developing

This project uses Docusaurus v2.

To develop locally run yarn to install dependencies and then yarn start to start the website and begin development. Docusaurus will watch the files and automatically compile changes and update the browser preview.

To develop the playground, see the playground Hermes section below.

For more information see the Docusaurus website.

Deploying

To deploy you must have push access.

We deploy the website to the gh-pages branch of this repo. At a high level, the process of deploying is to build the website assets using Docusaurus, copy the built files over to the gh-pages branch (replacing everything that's there except hermes.js and hermes.mem), verify the changes, and push to the gh-pages branch.

The full steps are:

  • git checkout main
  • cd website
  • Restore or update the playground Hermes
  • Run yarn build to build the site
  • Run npm run serve to preview the site
  • Verify the site is correct
  • Verify all file changes are correct
  • Run USE_SSH=true GIT_USER=<GITHUB_USERNAME> yarn deploy to deploy

GitHub will automatically update the site within minutes.

The Playground Hermes

The playground uses a Hermes WASM module built with emscripten. The built artifacts (hermes.js and hermes.wasm) are intentionally not checked-in, but are required to be present for developing the playground and deploying.

If you will not be compiling a new verison of Hermes for the playground with your deploy, simply download the hermes.js and hermes.wasm from the gh-pages branch and copy them under the static/.

If you would like to deploy a new version, you can run ./website/build-hermes with the required arguments (see building with emscripten for prerequisites) to compile from source. The script should automatically copy the built hermes.js and hermes.wasm to static/.