facebook/osquery — pull request #366 by theopolis (2014-11-05 10:26:02+00:00)
Title: [site] Add tables API page

This adds an API generation script and a React page to display the API.

To generate the API for master or a tagged-release:
```
python ./tools/genapi.py > ./site/src/api/v1.0.3.js
```
Then modify `./site/src/pages/TablesPage.js` and add the new tag to the `ValidTags` map.

I could not run: `npm run build`:

```
[reed@reed-mbp] ~/git/github/osquery/site(branch:site_tables) » npm run build
npm info it worked if it ends with ok
npm verb cli [ 'node', '/usr/local/bin/npm', 'run', 'build' ]
npm info using npm@2.1.6
npm info using node@v0.10.33
npm verb node symlink /usr/local/bin/node
npm verb run-script [ 'prebuild', 'build', 'postbuild' ]
npm info prebuild osquery-site@0.0.1
npm info build osquery-site@0.0.1

> osquery-site@0.0.1 build /Users/reed/git/github/osquery/site
> node build.js && browserify client.js | uglifyjs -cm 2>/dev/null > ./assets/bundle.js

fs.js:653
return binding.mkdir(pathModule._makeLong(path),
^
Error: EEXIST, file already exists '/Users/reed/git/github/osquery/site'
at Object.fs.mkdirSync (fs.js:653:18)
at /Users/reed/git/github/osquery/site/build.js:14:12
at Object.cb [as oncomplete] (fs.js:168:19)

npm verb unsafe-perm in lifecycle true
npm info osquery-site@0.0.1 Failed to exec build script
npm verb stack Error: osquery-site@0.0.1 build: `node build.js && browserify client.js | uglifyjs -cm 2>/dev/null > ./assets/bundle.js`
npm verb stack Exit status 8
npm verb stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:212:16)
npm verb stack at ChildProcess.emit (events.js:98:17)
npm verb stack at maybeClose (child_process.js:756:16)
npm verb stack at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm verb pkgid osquery-site@0.0.1
npm verb cwd /Users/reed/git/github/osquery/site
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v0.10.33
npm ERR! npm v2.1.6
npm ERR! code ELIFECYCLE
npm ERR! osquery-site@0.0.1 build: `node build.js && browserify client.js | uglifyjs -cm 2>/dev/null > ./assets/bundle.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the osquery-site@0.0.1 build script.
npm ERR! This is most likely a problem with the osquery-site package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build.js && browserify client.js | uglifyjs -cm 2>/dev/null > ./assets/bundle.js
npm ERR! You can get their info via:
npm ERR! npm owner ls osquery-site
npm ERR! There is likely additional logging output above.
npm verb exit [ 1, true ]

npm ERR! Please include the following file with any support request:
npm ERR! /Users/reed/git/github/osquery/site/npm-debug.log
```