mirror of https://github.com/status-im/metro.git
8242229b59
Summary: Includes React Native and its dependencies Fresco, Metro, and Yoga. Excludes samples/examples/docs. find: ^(?:( *)|( *(?:[\*~#]|::))( )? *)?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+?BSD[\s\S]+?(?:this source tree|the same directory)\.$ replace: $1$2$3Copyright (c) $4-present, Facebook, Inc.\n$2\n$1$2$3This source code is licensed under the MIT license found in the\n$1$2$3LICENSE file in the root directory of this source tree. Reviewed By: TheSavior, yungsters Differential Revision: D7007050 fbshipit-source-id: 37dd6bf0ffec0923bfc99c260bb330683f35553e |
||
---|---|---|
.. | ||
blog | ||
core | ||
i18n | ||
pages/en | ||
static | ||
README.md | ||
languages.js | ||
package.json | ||
publish-gh-pages.js | ||
sidebars.json | ||
siteConfig.js |
README.md
You will need Node 6 or newer in order to build the Metro website.
Run the server
The first time, get all the dependencies loaded via
yarn
in the root directory.
Then, run the server via
npm start
Open http://localhost:3000
Anytime you change the contents, just refresh the page and it's going to be updated
Publish the website
The Metro 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=metro-bot CIRCLE_PROJECT_USERNAME=facebook CIRCLE_PROJECT_REPONAME=metro npm run gh-pages
Staging
Run the above command against your own fork of facebook/metro
:
DEPLOY_USER=YOUR_GITHUB_USERNAME GIT_USER=YOUR_GITHUB_USERNAME CIRCLE_PROJECT_USERNAME=YOUR_GITHUB_USERNAME CIRCLE_PROJECT_REPONAME=metro npm run gh-pages