startupjs 0.56.0-alpha.2 → 0.56.0-alpha.22

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.
package/README.md CHANGED
@@ -4,3 +4,10 @@ This is a `startupjs` Meta-package which wraps all the main packages together
4
4
  for easier distribution as a single package.
5
5
 
6
6
  For the overall StartupJS readme refer to the root monorepo`s README.
7
+
8
+ ## Extra dependencies
9
+
10
+ - `events` is added here as an explicit dependency since it's used inside `racer`.
11
+ Which does not list it in its own dependencies. Usually on the browser it will be polyfilled by
12
+ webpack, but in our case Metro does not polyfill it on it's own so we have to have it
13
+ present in our dependencies somewhere.
package/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
3
 
4
- import cli from '@startupjs/cli'
4
+ import { run } from '@startupjs/cli'
5
5
  import { fileURLToPath } from 'url'
6
6
  import path, { dirname } from 'path'
7
7
 
@@ -10,4 +10,4 @@ const __dirname = dirname(__filename)
10
10
 
11
11
  const templatesPath = path.join(__dirname, 'templates')
12
12
 
13
- cli.run({ templatesPath })
13
+ run({ templatesPath })
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { default as BASE_URL } from '@startupjs/utils/BASE_URL'
1
2
  export { default as axios } from '@startupjs/utils/axios'
2
3
  export * from '@startupjs/react-sharedb'
3
4
  export { default as $, signal } from '@startupjs/signals'
package/index.js CHANGED
@@ -3,6 +3,7 @@ import dummyMockBrowserify from '@startupjs/utils/mockBrowserify'
3
3
 
4
4
  ;(_ => _)([dummyMockBrowserify]) // prevent dead-code elimination
5
5
 
6
+ export { default as BASE_URL } from '@startupjs/utils/BASE_URL'
6
7
  export { default as axios } from '@startupjs/utils/axios'
7
8
  export * from '@startupjs/react-sharedb'
8
9
  export { default as $, signal } from '@startupjs/signals'
package/loadConfig.js CHANGED
@@ -1 +1,4 @@
1
+ // manually load the startupjs config instead of using the one which is
2
+ // automatically loaded from the startupjs.config.js file in the project root.
3
+ // This is useful when using startupjs in client-only mode and without its compilation pipeline.
1
4
  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.2",
4
+ "version": "0.56.0-alpha.22",
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.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
- "@startupjs/i18n": "^0.56.0-alpha.0",
48
- "@startupjs/init": "^0.56.0-alpha.1",
42
+ "@startupjs/app": "^0.56.0-alpha.13",
43
+ "@startupjs/backend": "^0.56.0-alpha.13",
44
+ "@startupjs/bundler": "^0.56.0-alpha.18",
45
+ "@startupjs/cli": "^0.56.0-alpha.22",
46
+ "@startupjs/hooks": "^0.56.0-alpha.18",
47
+ "@startupjs/i18n": "^0.56.0-alpha.7",
48
+ "@startupjs/init": "^0.56.0-alpha.18",
49
49
  "@startupjs/isomorphic-helpers": "^0.56.0-alpha.0",
50
50
  "@startupjs/orm": "^0.56.0-alpha.0",
51
- "@startupjs/patches": "^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"
51
+ "@startupjs/react-sharedb": "^0.56.0-alpha.18",
52
+ "@startupjs/registry": "^0.56.0-alpha.11",
53
+ "@startupjs/server": "^0.56.0-alpha.18",
54
+ "@startupjs/utils": "^0.56.0-alpha.18",
55
+ "babel-preset-startupjs": "^0.56.0-alpha.18",
56
+ "events": "^3.3.0"
57
57
  },
58
- "gitHead": "97f1ce92de18e3300d02321986936890df822dc2"
58
+ "gitHead": "5965e69bcf1a996c8f026dec065545497b2c8b0b"
59
59
  }
package/startServer.js CHANGED
@@ -1,3 +1,2 @@
1
1
  import startServer from '@startupjs/server'
2
- await startServer()
3
- export default () => {}
2
+ export const { server, backend, session, channel, expressApp } = await startServer()
@@ -1,59 +1,3 @@
1
1
  {
2
- "root": true,
3
- "env": {
4
- "browser": true,
5
- "es6": true,
6
- "node": true
7
- },
8
- "extends": [
9
- "standard",
10
- "standard-react",
11
- "plugin:react/recommended",
12
- "plugin:react-pug/all"
13
- ],
14
- "globals": {
15
- "Atomics": "readonly",
16
- "SharedArrayBuffer": "readonly"
17
- },
18
- "parserOptions": {
19
- "ecmaFeatures": {
20
- "legacyDecorators": true
21
- },
22
- "ecmaVersion": "latest",
23
- "sourceType": "module"
24
- },
25
- "plugins": [
26
- "react",
27
- "react-pug",
28
- "eslint-plugin-import-helpers"
29
- ],
30
- "rules": {
31
- "prefer-const": "error",
32
- "eol-last": "error",
33
- "react/jsx-handler-names": "off",
34
- "react/prop-types": "off",
35
- "react-pug/empty-lines": "off",
36
- "react-pug/no-interpolation": "off",
37
- "react-pug/prop-types": "off",
38
- "react-pug/quotes": "off",
39
- "import-helpers/order-imports": [
40
- "warn",
41
- {
42
- "newlinesBetween": "ignore",
43
- "groups": [
44
- "/^react$/",
45
- "/react-native/",
46
- "/^react.*/",
47
- "/^startupjs/",
48
- "/^@?startupjs.*/",
49
- "/^@?dmapper.*/",
50
- "module",
51
- "/^components/",
52
- ["/^helpers/", "/^hooks/"],
53
- ["sibling", "parent"],
54
- "/.\/index.styl/"
55
- ]
56
- }
57
- ]
58
- }
2
+ "extends": ["startupjs"]
59
3
  }
@@ -1,5 +1,3 @@
1
- import { createProject } from 'startupjs/registry'
2
-
3
- export default createProject({
1
+ export default {
4
2
  plugins: {}
5
- })
3
+ }
@@ -2,7 +2,8 @@ import React, { useState, useEffect } from 'react'
2
2
  import { pug, observer, useApi, useDoc } from 'startupjs'
3
3
  import { Br, Button, Card, Div, Span } from '@startupjs/ui'
4
4
  import axios from 'axios'
5
- import { faPlus, faMinus } from '@fortawesome/free-solid-svg-icons'
5
+ import { faPlus } from '@fortawesome/free-solid-svg-icons/faPlus'
6
+ import { faMinus } from '@fortawesome/free-solid-svg-icons/faMinus'
6
7
  import './index.styl'
7
8
 
8
9
  export default observer(function TestComponent ({ style }) {
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { pug, observer, emit, useValue, useLocal } from 'startupjs'
3
3
  import { Button, Div, H1, Layout, Menu, SmartSidebar } from '@startupjs/ui'
4
- import { faBars } from '@fortawesome/free-solid-svg-icons'
4
+ import { faBars } from '@fortawesome/free-solid-svg-icons/faBars'
5
5
  import APP from '../../app.json'
6
6
  import './index.styl'
7
7