chore(ui-toolkit): update react-bundle

This commit is contained in:
Sérgio Ramos 2018-02-15 20:05:29 +00:00 committed by Sérgio Ramos
parent 99ceda9033
commit a5ea102ab3
4 changed files with 40 additions and 32 deletions

View File

@ -1,12 +1,15 @@
'use strict';
const Brule = require('brule'); const Brule = require('brule');
const Hapi = require('hapi'); const Hapi = require('hapi');
const Inert = require('inert');
const Main = require('apr-main');
const Rollover = require('rollover'); const Rollover = require('rollover');
const { homedir } = require('os');
const { join } = require('path');
const Sso = require('minio-proto-auth'); process.env.SDC_KEY_PATH =
process.env.SDC_KEY_PATH || join(homedir(), '.ssh/id_rsa');
const Sso = require('hapi-triton-auth');
const Ui = require('my-joy-beta'); const Ui = require('my-joy-beta');
const Nav = require('joyent-navigation'); const Nav = require('joyent-navigation');
const Api = require('cloudapi-gql'); const Api = require('cloudapi-gql');
@ -29,17 +32,17 @@ const server = Hapi.server({
host: '127.0.0.1' host: '127.0.0.1'
}); });
Main(async () => { async function main () {
await server.register([ await server.register([
// { {
// plugin: Rollover, plugin: Rollover,
// options: { options: {
// rollbar: { rollbar: {
// accessToken: ROLLBAR_SERVER_TOKEN, accessToken: ROLLBAR_SERVER_TOKEN,
// reportLevel: 'error' reportLevel: 'error'
// } }
// } }
// }, },
{ {
plugin: Brule, plugin: Brule,
options: { options: {
@ -80,6 +83,12 @@ Main(async () => {
server.auth.default('sso'); server.auth.default('sso');
process.on('unhandledRejection', (err) => {
server.log(['error'], err);
});
await server.start(); await server.start();
console.log(`server started at http://localhost:${server.info.port}`); console.log(`server started at http://localhost:${server.info.port}`);
}); }
main();

View File

@ -4,7 +4,7 @@
"private": true, "private": true,
"license": "MPL-2.0", "license": "MPL-2.0",
"scripts": { "scripts": {
"start": "NODE_ENV=development PORT=3069 REACT_APP_GQL_PORT=3069 REACT_APP_GQL_PROTOCOL=http node -r ./_env.js index.js", "start": "NODE_ENV=development PORT=3069 REACT_APP_GQL_PORT=3069 REACT_APP_GQL_PROTOCOL=http node index.js",
"lint-ci": "echo 0", "lint-ci": "echo 0",
"lint": "echo 0", "lint": "echo 0",
"test-ci": "echo 0", "test-ci": "echo 0",
@ -12,14 +12,13 @@
"prepublish": "echo 0" "prepublish": "echo 0"
}, },
"dependencies": { "dependencies": {
"apr-main": "^4.0.3",
"brule": "^3.1.0", "brule": "^3.1.0",
"cloudapi-gql": "^4.6.0", "cloudapi-gql": "^4.6.0",
"hapi": "^17.2.0", "hapi": "^17.2.0",
"hapi-triton-auth": "^1.0.0",
"inert": "^5.1.0", "inert": "^5.1.0",
"joyent-navigation": "^1.0.0", "joyent-navigation": "*",
"minio-proto-auth": "^1.1.0", "my-joy-beta": "*",
"my-joy-beta": "^1.0.0",
"rollover": "^1.0.0" "rollover": "^1.0.0"
} }
} }

View File

@ -34,7 +34,7 @@
"outy": "^0.1.2", "outy": "^0.1.2",
"pascal-case": "^2.0.1", "pascal-case": "^2.0.1",
"prop-types": "^15.6.0", "prop-types": "^15.6.0",
"react-bundle": "^1.0.4", "react-bundle": "^1.1.0",
"react-popper": "^0.7.5", "react-popper": "^0.7.5",
"react-responsive": "^4.0.3", "react-responsive": "^4.0.3",
"remcalc": "^1.0.10", "remcalc": "^1.0.10",

View File

@ -5035,6 +5035,16 @@ handlebars@^4.0.2, handlebars@^4.0.3:
optionalDependencies: optionalDependencies:
uglify-js "^2.6" uglify-js "^2.6"
hapi-triton-auth@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/hapi-triton-auth/-/hapi-triton-auth-1.0.0.tgz#b9fcf8808edae5dd1951683821eec4356d7b253e"
dependencies:
boom "7.1.x"
bounce "1.2.x"
cryptiles "4.1.x"
hoek "5.0.x"
wreck "14.0.x"
hapi@^17.2.0: hapi@^17.2.0:
version "17.2.0" version "17.2.0"
resolved "https://registry.yarnpkg.com/hapi/-/hapi-17.2.0.tgz#e5d74b65235b443225e05d7b7510cdb80d4887e7" resolved "https://registry.yarnpkg.com/hapi/-/hapi-17.2.0.tgz#e5d74b65235b443225e05d7b7510cdb80d4887e7"
@ -7241,16 +7251,6 @@ minimist@~0.0.1:
version "0.0.10" version "0.0.10"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
minio-proto-auth@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/minio-proto-auth/-/minio-proto-auth-1.1.0.tgz#6eb0487d9366ed07d42374107a6ba80795eec7e3"
dependencies:
boom "7.1.x"
bounce "1.2.x"
cryptiles "4.1.x"
hoek "5.0.x"
wreck "14.0.x"
mississippi@^1.3.0: mississippi@^1.3.0:
version "1.3.1" version "1.3.1"
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-1.3.1.tgz#2a8bb465e86550ac8b36a7b6f45599171d78671e" resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-1.3.1.tgz#2a8bb465e86550ac8b36a7b6f45599171d78671e"
@ -8722,7 +8722,7 @@ react-apollo@^2.0.4:
lodash.pick "^4.4.0" lodash.pick "^4.4.0"
prop-types "^15.5.8" prop-types "^15.5.8"
react-bundle@^1.0.4: react-bundle@^1.1.0:
version "1.1.0" version "1.1.0"
resolved "https://registry.yarnpkg.com/react-bundle/-/react-bundle-1.1.0.tgz#d243de62ecb28639440dfb35d25bc5721d93a9b1" resolved "https://registry.yarnpkg.com/react-bundle/-/react-bundle-1.1.0.tgz#d243de62ecb28639440dfb35d25bc5721d93a9b1"
dependencies: dependencies: