@startupjs/app
Router component for multi apps
Last updated a day ago by yska .
MIT · Original npm · Tarball · package.json
$ cnpm install @startupjs/app 
SYNC missed versions from official npm registry.

startupjs app

Router component for multi apps

Installation

yarn add @startupjs/app

Installation

Critical Version

Create criticalVersion.json in the root of your project. This file will hold the critical version info of your application.

If the version, specified on the server, stops matching the one in the client-side <App />, the user will be required to download an update from the app store.

{
  "ios": 1,
  "android": 1,
  "web": 1,
  "meta": {
    "supportEmail": "admin@example.com",
    "iosUpdateLink": "itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=0000000000&mt=8",
    "androidUpdateLink": "market://details?id=company.example.app"
  }
}

client

// Root/App.js

import App from 'startupjs/app'
import * as main from '../main'
import * as admin from '../admin'
import CRITICAL_VERSION from '../criticalVersion.json'

return (
  <App
    apps={{ main, admin }}
    criticalVersion=CRITICAL_VERSION
  />
)

server

// server/index.js

import startupjsServer from 'startupjs/server'
import { initApp } from 'startupjs/app/server'
import CRITICAL_VERSION from '../criticalVersion.json'

startupjsServer({
  // ...
},
(ee, options) => {
  initApp(ee, { criticalVersion: CRITICAL_VERSION })
})

Licence

MIT

(c) Decision Mapper - http://decisionmapper.com

Current Tags

  • 0.22.0-canary.0                                ...           canary (3 months ago)
  • 0.23.45                                ...           latest (a day ago)
  • 0.22.0-alpha.39                                ...           next (4 months ago)

67 Versions

  • 0.23.45                                ...           a day ago
  • 0.23.44                                ...           a day ago
  • 0.23.39                                ...           a month ago
  • 0.23.37                                ...           a month ago
  • 0.23.33                                ...           a month ago
  • 0.23.20                                ...           2 months ago
  • 0.23.19                                ...           2 months ago
  • 0.23.18                                ...           2 months ago
  • 0.23.17                                ...           3 months ago
  • 0.23.0                                ...           3 months ago
  • 0.22.2                                ...           3 months ago
  • 0.22.1                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.22.0-canary.0                                ...           3 months ago
  • 0.22.0-alpha.39                                ...           4 months ago
  • 0.22.0-alpha.38                                ...           4 months ago
  • 0.22.0-alpha.36                                ...           4 months ago
  • 0.22.0-alpha.35                                ...           4 months ago
  • 0.22.0-alpha.33                                ...           4 months ago
  • 0.22.0-alpha.30                                ...           4 months ago
  • 0.22.0-alpha.29                                ...           4 months ago
  • 0.22.0-alpha.28                                ...           4 months ago
  • 0.22.0-alpha.27                                ...           4 months ago
  • 0.22.0-alpha.26                                ...           4 months ago
  • 0.22.0-alpha.25                                ...           4 months ago
  • 0.22.0-alpha.24                                ...           4 months ago
  • 0.22.0-alpha.23                                ...           4 months ago
  • 0.22.0-alpha.22                                ...           4 months ago
  • 0.22.0-alpha.20                                ...           4 months ago
  • 0.22.0-alpha.13                                ...           5 months ago
  • 0.22.0-alpha.11                                ...           5 months ago
  • 0.22.0-alpha.0                                ...           5 months ago
  • 0.21.1                                ...           5 months ago
  • 0.21.0                                ...           5 months ago
  • 0.20.0                                ...           5 months ago
  • 0.19.2                                ...           5 months ago
  • 0.19.1                                ...           5 months ago
  • 0.19.0                                ...           6 months ago
  • 0.18.4                                ...           6 months ago
  • 0.18.3                                ...           6 months ago
  • 0.18.2                                ...           6 months ago
  • 0.18.1                                ...           6 months ago
  • 0.18.0                                ...           6 months ago
  • 0.17.3                                ...           6 months ago
  • 0.17.2                                ...           6 months ago
  • 0.17.1                                ...           6 months ago
  • 0.17.0                                ...           6 months ago
  • 0.16.2                                ...           6 months ago
  • 0.16.0                                ...           6 months ago
  • 0.15.5                                ...           7 months ago
  • 0.15.0                                ...           7 months ago
  • 0.14.1                                ...           8 months ago
  • 0.13.0                                ...           8 months ago
  • 0.12.0                                ...           8 months ago
  • 0.11.0                                ...           9 months ago
  • 0.10.0                                ...           10 months ago
  • 0.9.11                                ...           10 months ago
  • 0.9.10                                ...           10 months ago
  • 0.9.6                                ...           10 months ago
  • 0.9.5                                ...           10 months ago
  • 0.9.4                                ...           10 months ago
  • 0.9.3                                ...           10 months ago
  • 0.9.2                                ...           10 months ago
  • 0.9.1                                ...           10 months ago
  • 0.9.0                                ...           10 months ago
  • 0.8.1                                ...           a year ago
  • 0.8.0                                ...           a year ago
Downloads
Today 0
This Week 23
This Month 0
Last Day 23
Last Week 0
Last Month 34
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |