react-native-macos/website
Hector Ramos 00904e2fc9 Move out some common JavaScript code to scripts.js
Summary:
Move reusable code into scripts.js

Tested each of the documents locally.
Closes https://github.com/facebook/react-native/pull/14212

Differential Revision: D5142983

Pulled By: hramos

fbshipit-source-id: 84571539860e5848a2bf80c382a482463e58d8bd
2017-05-26 18:33:45 -07:00
..
core website: Update prism regexes for better JavaScript code highlight 2017-05-26 17:52:04 -07:00
jsdocs Replace @provides with @providesModule 2017-02-02 08:58:33 -08:00
layout Remove examples from API/Components 2017-04-26 20:35:57 -07:00
server Flat ReactNative renderer bundle [WIP] 2017-05-26 11:03:06 -07:00
src/react-native Move out some common JavaScript code to scripts.js 2017-05-26 18:33:45 -07:00
.gitignore Generate Atom feed for the React Native blog. 2016-10-28 13:28:37 -07:00
README.md Fix instructions so react-native packages are installed first 2016-06-01 17:58:22 -07:00
package.json Upgrade prop-types and fix RN website yarnfile 2017-04-21 13:16:15 -07:00
publish-gh-pages.js Deploy showcase, support when building gh-pages on master. 2016-09-20 15:58:48 -07:00
setup.sh Docs for website setup 2015-12-28 12:47:09 -08:00
showcase.json Update the blog link of discord app in showcase. 2017-05-24 17:01:54 -07:00

README.md

Install prerequisites

Before running the website, make sure you've run the following:

git clone https://github.com/facebook/react-native.git
cd react-native
npm install

Run the website server

The first time, get all the website dependencies loaded via

cd website
npm install

Then, run the server via

npm start
open http://localhost:8079/react-native/index.html

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

Publish the website

cd website
npm run publish-website