prepack/website/package.json
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

31 lines
773 B
JSON

{
"name": "prepack",
"version": "0.2.4-alpha.0",
"description": "Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.",
"homepage": "https://github.com/facebook/prepack",
"repository": {
"type": "git",
"url": "git://github.com/facebook/prepack.git"
},
"bugs": {
"url": "https://github.com/facebook/prepack/issues"
},
"scripts": {
"prettier": "node ./scripts/prettier/index.js write-changed",
"prettier-all": "node ./scripts/prettier/index.js write"
},
"devDependencies": {
"chalk": "^1.1.3",
"glob": "^7.1.2",
"prettier": "^1.4.4"
},
"engines": {
"node": ">=6.1.0"
},
"keywords": [
"prepack"
],
"license": "BSD-3-Clause",
"author": "Facebook"
}