Skip to content

Files

Latest commit

472ce31 · Aug 10, 2017

History

History
This branch is 4673 commits behind jestjs/jest:main.

website

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 6, 2017
Jun 19, 2017
Jul 4, 2017
Jul 4, 2017
Jul 18, 2017
Jan 27, 2017
Aug 10, 2017
May 2, 2017
May 12, 2017
Jul 18, 2017
Aug 10, 2017

You will need Node 6 or newer in order to build the Jest website.

Run the server

The first time, get all the dependencies loaded via

npm install

Then, run the server via

npm start
Open http://localhost:8080/jest/index.html

Anytime you change the contents, just refresh the page and it's going to be updated

Publish the website

The Jest website is hosted as a GitHub page. A static site is generated by server/generate.js and its output is pushed to the gh-pages branch by CircleCI whenever master is updated.

To deploy the website manually, run the following command as a Git user with write permissions:

DEPLOY_USER=facebook GIT_USER=jest-bot CIRCLE_PROJECT_USERNAME=facebook CIRCLE_PROJECT_REPONAME=jest npm run gh-pages

Staging

Run the above command against your own fork of facebook/jest:

DEPLOY_USER=YOUR_GITHUB_USERNAME GIT_USER=YOUR_GITHUB_USERNAME CIRCLE_PROJECT_USERNAME=YOUR_GITHUB_USERNAME CIRCLE_PROJECT_REPONAME=jest npm run gh-pages