startupjs 0.56.0-alpha.0 → 0.56.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { createElement as el } from 'react'
2
+ import { ROOT_MODULE as MODULE } from '@startupjs/registry'
3
+
4
+ export default MODULE.dynamicPlugins(function StartupjsProvider ({ children }) {
5
+ return el(MODULE.RenderNestedHook, { name: 'renderRoot' }, children)
6
+ })
package/index.d.ts CHANGED
@@ -9,3 +9,6 @@ export * from '@startupjs/isomorphic-helpers'
9
9
  export function css (css: TemplateStringsArray): any
10
10
  export function styl (styl: TemplateStringsArray): any
11
11
  export function pug (pug: TemplateStringsArray): any
12
+
13
+ export { default as StartupjsProvider } from './StartupjsProvider.js'
14
+ export { default as t } from '@startupjs/i18n/client/t.js'
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // Make ShareDB client and Racer client work in React Native and in Webpack
2
2
  import dummyMockBrowserify from '@startupjs/utils/mockBrowserify'
3
- import dummyInit from '@startupjs/init/client-auto'
3
+
4
+ ;(_ => _)([dummyMockBrowserify]) // prevent dead-code elimination
4
5
 
5
6
  export { default as axios } from '@startupjs/utils/axios'
6
7
  export * from '@startupjs/react-sharedb'
@@ -14,9 +15,8 @@ export function css (cssString) { return cssString }
14
15
  export function styl (stylString) { return stylString }
15
16
  // dummy pug function (it gets compiled to jsx by babel pug plugin)
16
17
  export function pug (pugString) { return pugString }
18
+ export { default as StartupjsProvider } from './StartupjsProvider.js'
17
19
  export { default as t } from '@startupjs/i18n/client/t.js'
18
20
 
19
- // this library is pure side-effects, so we force usage of a dummy function
20
- // to prevent dead-code elimination
21
- dummyMockBrowserify()
22
- dummyInit() // prevent dead-code elimination
21
+ // init client at the very end. This is hacky solution to handle import loops
22
+ export { default as dummyInitClient } from './initClient.auto.js'
@@ -0,0 +1,9 @@
1
+ import dummyLoadConfig from '@startupjs/registry/loadStartupjsConfig.auto'
2
+ // - init connection to ShareDB server
3
+ // - setup baseUrl for axios
4
+ // - add rich-text support to ShareDB
5
+ import dummyInit from '@startupjs/init/client.auto'
6
+
7
+ ;(_ => _)([dummyLoadConfig, dummyInit])
8
+
9
+ export default () => {}
package/loadConfig.js ADDED
@@ -0,0 +1 @@
1
+ export { default } from '@startupjs/registry/loadStartupjsConfig'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "startupjs",
3
3
  "type": "module",
4
- "version": "0.56.0-alpha.0",
4
+ "version": "0.56.0-alpha.2",
5
5
  "engines": {
6
6
  "node": ">= 14"
7
7
  },
@@ -39,21 +39,21 @@
39
39
  "bin": "./cli.js",
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
- "@startupjs/app": "^0.56.0-alpha.0",
43
- "@startupjs/backend": "^0.56.0-alpha.0",
44
- "@startupjs/bundler": "^0.56.0-alpha.0",
45
- "@startupjs/cli": "^0.56.0-alpha.0",
46
- "@startupjs/hooks": "^0.56.0-alpha.0",
42
+ "@startupjs/app": "^0.56.0-alpha.1",
43
+ "@startupjs/backend": "^0.56.0-alpha.1",
44
+ "@startupjs/bundler": "^0.56.0-alpha.2",
45
+ "@startupjs/cli": "^0.56.0-alpha.1",
46
+ "@startupjs/hooks": "^0.56.0-alpha.1",
47
47
  "@startupjs/i18n": "^0.56.0-alpha.0",
48
- "@startupjs/init": "^0.56.0-alpha.0",
48
+ "@startupjs/init": "^0.56.0-alpha.1",
49
49
  "@startupjs/isomorphic-helpers": "^0.56.0-alpha.0",
50
50
  "@startupjs/orm": "^0.56.0-alpha.0",
51
51
  "@startupjs/patches": "^0.56.0-alpha.0",
52
- "@startupjs/react-sharedb": "^0.56.0-alpha.0",
53
- "@startupjs/registry": "^0.56.0-alpha.0",
54
- "@startupjs/server": "^0.56.0-alpha.0",
55
- "@startupjs/utils": "^0.56.0-alpha.0",
56
- "babel-preset-startupjs": "^0.56.0-alpha.0"
52
+ "@startupjs/react-sharedb": "^0.56.0-alpha.1",
53
+ "@startupjs/registry": "^0.56.0-alpha.2",
54
+ "@startupjs/server": "^0.56.0-alpha.2",
55
+ "@startupjs/utils": "^0.56.0-alpha.1",
56
+ "babel-preset-startupjs": "^0.56.0-alpha.2"
57
57
  },
58
- "gitHead": "076772b216a09281ed38b32866b576024562f099"
58
+ "gitHead": "97f1ce92de18e3300d02321986936890df822dc2"
59
59
  }
package/startServer.js ADDED
@@ -0,0 +1,3 @@
1
+ import startServer from '@startupjs/server'
2
+ await startServer()
3
+ export default () => {}