startupjs 0.54.0 → 0.54.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "startupjs",
3
3
  "type": "module",
4
- "version": "0.54.0",
4
+ "version": "0.54.2",
5
5
  "engines": {
6
6
  "node": ">= 14"
7
7
  },
@@ -10,21 +10,21 @@
10
10
  "bin": "./cli.js",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@startupjs/app": "^0.54.0",
14
- "@startupjs/backend": "^0.54.0",
15
- "@startupjs/bundler": "^0.54.0",
16
- "@startupjs/cli": "^0.54.0",
13
+ "@startupjs/app": "^0.54.2",
14
+ "@startupjs/backend": "^0.54.2",
15
+ "@startupjs/bundler": "^0.54.2",
16
+ "@startupjs/cli": "^0.54.2",
17
17
  "@startupjs/docker": "^0.54.0",
18
- "@startupjs/hooks": "^0.54.0",
19
- "@startupjs/i18n": "^0.54.0",
20
- "@startupjs/init": "^0.54.0",
21
- "@startupjs/isomorphic-helpers": "^0.54.0",
22
- "@startupjs/orm": "^0.54.0",
23
- "@startupjs/patches": "^0.54.0",
24
- "@startupjs/react-sharedb": "^0.54.0",
25
- "@startupjs/server": "^0.54.0",
26
- "babel-preset-startupjs": "^0.54.0",
18
+ "@startupjs/hooks": "^0.54.2",
19
+ "@startupjs/i18n": "^0.54.2",
20
+ "@startupjs/init": "^0.54.2",
21
+ "@startupjs/isomorphic-helpers": "^0.54.2",
22
+ "@startupjs/orm": "^0.54.2",
23
+ "@startupjs/patches": "^0.54.1",
24
+ "@startupjs/react-sharedb": "^0.54.2",
25
+ "@startupjs/server": "^0.54.2",
26
+ "babel-preset-startupjs": "^0.54.2",
27
27
  "react-native-web": "^0.18.0"
28
28
  },
29
- "gitHead": "6ff1f85289a0b0aa9aef46f55b9cbbb556707f0c"
29
+ "gitHead": "92667aeef94a9b0c9e88a428cff742504bcfc6f2"
30
30
  }
@@ -3,7 +3,6 @@ import startupjsServer from 'startupjs/server'
3
3
  import { initApp } from 'startupjs/app/server'
4
4
  import orm from '../model'
5
5
  import api from './api'
6
- import getMainRoutes from '../main/routes'
7
6
 
8
7
  // Init startupjs ORM.
9
8
  init({ orm })
@@ -11,10 +10,7 @@ init({ orm })
11
10
  // Check '@startupjs/server' readme for the full API
12
11
  startupjsServer({
13
12
  secure: false, // TODO: https://github.com/startupjs/startupjs#security
14
- getHead,
15
- appRoutes: [
16
- ...getMainRoutes()
17
- ]
13
+ getHead
18
14
  }, (ee, options) => {
19
15
  initApp(ee)
20
16
 
@@ -23,7 +19,7 @@ startupjsServer({
23
19
  })
24
20
  })
25
21
 
26
- function getHead (appName) {
22
+ function getHead () {
27
23
  return `
28
24
  <title>App</title>
29
25
  <!-- Put vendor JS and CSS here -->
@@ -22,7 +22,12 @@
22
22
  "jsx": true
23
23
  },
24
24
  "ecmaVersion": 10,
25
- "sourceType": "module"
25
+ "sourceType": "module",
26
+ "babelOptions": {
27
+ "parserOpts": {
28
+ "plugins": ["jsx"]
29
+ }
30
+ }
26
31
  },
27
32
  "plugins": [
28
33
  "react",
@@ -4,26 +4,16 @@ FROM node:20-alpine
4
4
  # - MONGO_URL
5
5
  # - REDIS_URL
6
6
 
7
- # Here you can specify your organization's npm token
8
- # to get access to private npm packages:
9
- ARG NPM_TOKEN=
10
-
11
7
  ADD . /app
12
8
  WORKDIR /app
13
9
 
14
10
  RUN \
15
- # optionally use a custom npm token (if defined above)
16
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc && \
17
11
  # install build tools
18
12
  apk add --no-cache make gcc g++ python3 git && \
19
- # ffmpeg is required at runtime for video & audio conversion libraries
20
- apk add --no-cache ffmpeg && \
21
13
  # install dependencies
22
14
  yarn && \
23
15
  # build production bundles of server and web
24
16
  yarn build && \
25
- # cleanup yarn
26
- yarn cache clean && \
27
17
  # cleanup build tools
28
18
  apk del make gcc g++ python3 git
29
19
 
@@ -16,7 +16,7 @@ startupjsServer({
16
16
  })
17
17
  })
18
18
 
19
- function getHead (appName) {
19
+ function getHead () {
20
20
  return `
21
21
  <title>App</title>
22
22
  <!-- Put vendor JS and CSS here -->
@@ -1,11 +1,10 @@
1
1
  import init from 'startupjs/init'
2
2
  import startupjsServer from 'startupjs/server'
3
3
  import { initApp } from 'startupjs/app/server'
4
- import { initI18n, getI18nRoutes } from 'startupjs/i18n/server'
4
+ import { initI18n } from 'startupjs/i18n/server'
5
5
  import { getUiHead, initUi } from '@startupjs/ui/server'
6
6
  import orm from '../model'
7
7
  import api from './api'
8
- import getMainRoutes from '../main/routes'
9
8
 
10
9
  // Init startupjs ORM.
11
10
  init({ orm })
@@ -13,11 +12,7 @@ init({ orm })
13
12
  // Check '@startupjs/server' readme for the full API
14
13
  startupjsServer({
15
14
  secure: false, // TODO: https://github.com/startupjs/startupjs#security
16
- getHead,
17
- appRoutes: [
18
- ...getMainRoutes(),
19
- ...getI18nRoutes()
20
- ]
15
+ getHead
21
16
  }, (ee, options) => {
22
17
  initApp(ee)
23
18
  initUi(ee, options)
@@ -28,7 +23,7 @@ startupjsServer({
28
23
  })
29
24
  })
30
25
 
31
- function getHead (appName) {
26
+ function getHead () {
32
27
  return `
33
28
  ${getUiHead()}
34
29
  <title>HelloWorld</title>