startupjs 0.40.15 → 0.41.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/index.d.ts +3 -2
- package/index.js +4 -2
- package/package.json +15 -15
- package/templates/routing/Root/index.jsx +1 -1
- package/templates/routing/main/Layout/index.jsx +1 -1
- package/templates/routing/main/pages/PAbout/index.jsx +1 -1
- package/templates/routing/main/pages/PHome/index.jsx +1 -1
- package/templates/simple/.eslintrc.json +1 -1
- package/templates/simple/Dockerfile +2 -2
- package/templates/simple/Root/index.jsx +1 -1
- package/templates/simple/components/TestComponent/index.jsx +1 -0
- package/templates/simple/tsconfig.json +20 -0
- package/templates/ui/Root/index.jsx +1 -1
- package/templates/ui/components/TestComponent/index.jsx +1 -5
- package/templates/ui/main/Layout/index.jsx +1 -1
- package/templates/ui/main/pages/PAbout/index.jsx +1 -1
- package/templates/ui/main/pages/PHome/index.jsx +1 -1
- package/templates/ui/.eslintrc.json +0 -60
package/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export * from '@startupjs/hooks'
|
|
|
4
4
|
// on the server and on the client
|
|
5
5
|
export * from '@startupjs/isomorphic-helpers'
|
|
6
6
|
// dummy babel macro functions for @startupjs/babel-plugin-rn-stylename-inline
|
|
7
|
-
export function css ():
|
|
8
|
-
export function styl ():
|
|
7
|
+
export function css (css: TemplateStringsArray): any
|
|
8
|
+
export function styl (styl: TemplateStringsArray): any
|
|
9
|
+
export function pug (pug: TemplateStringsArray): any
|
package/index.js
CHANGED
|
@@ -4,6 +4,8 @@ export * from '@startupjs/hooks'
|
|
|
4
4
|
// on the server and on the client
|
|
5
5
|
export * from '@startupjs/isomorphic-helpers'
|
|
6
6
|
// dummy babel macro functions for @startupjs/babel-plugin-rn-stylename-inline
|
|
7
|
-
export function css () {}
|
|
8
|
-
export function styl () {}
|
|
7
|
+
export function css (cssString) { return cssString }
|
|
8
|
+
export function styl (stylString) { return stylString }
|
|
9
|
+
// dummy pug function (it gets compiled to jsx by babel pug plugin)
|
|
10
|
+
export function pug (pugString) { return pugString }
|
|
9
11
|
export { default as t } from '@startupjs/i18n/client/t.js'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "startupjs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.41.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">= 14"
|
|
7
7
|
},
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
"bin": "./cli.js",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@startupjs/app": "^0.
|
|
14
|
-
"@startupjs/backend": "^0.
|
|
15
|
-
"@startupjs/bundler": "^0.
|
|
16
|
-
"@startupjs/cli": "^0.
|
|
17
|
-
"@startupjs/hooks": "^0.
|
|
18
|
-
"@startupjs/i18n": "^0.
|
|
19
|
-
"@startupjs/init": "^0.
|
|
20
|
-
"@startupjs/isomorphic-helpers": "^0.
|
|
21
|
-
"@startupjs/orm": "^0.
|
|
22
|
-
"@startupjs/patches": "^0.
|
|
23
|
-
"@startupjs/react-sharedb": "^0.
|
|
24
|
-
"@startupjs/server": "^0.
|
|
25
|
-
"babel-preset-startupjs": "^0.
|
|
13
|
+
"@startupjs/app": "^0.41.2",
|
|
14
|
+
"@startupjs/backend": "^0.41.2",
|
|
15
|
+
"@startupjs/bundler": "^0.41.2",
|
|
16
|
+
"@startupjs/cli": "^0.41.2",
|
|
17
|
+
"@startupjs/hooks": "^0.41.2",
|
|
18
|
+
"@startupjs/i18n": "^0.41.2",
|
|
19
|
+
"@startupjs/init": "^0.41.2",
|
|
20
|
+
"@startupjs/isomorphic-helpers": "^0.41.2",
|
|
21
|
+
"@startupjs/orm": "^0.41.2",
|
|
22
|
+
"@startupjs/patches": "^0.41.2",
|
|
23
|
+
"@startupjs/react-sharedb": "^0.41.2",
|
|
24
|
+
"@startupjs/server": "^0.41.2",
|
|
25
|
+
"babel-preset-startupjs": "^0.41.2",
|
|
26
26
|
"react-native-web": "^0.14.3"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "521a4e72e2630b1fb71b246b2cc7b375c4c68792"
|
|
29
29
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { Platform } from 'react-native'
|
|
3
3
|
import init from 'startupjs/init'
|
|
4
4
|
import App from 'startupjs/app'
|
|
5
|
-
import { observer, model } from 'startupjs'
|
|
5
|
+
import { pug, observer, model } from 'startupjs'
|
|
6
6
|
import { BASE_URL } from '@env'
|
|
7
7
|
import orm from '../model'
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ RUN \
|
|
|
15
15
|
# optionally use a custom npm token (if defined above)
|
|
16
16
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc && \
|
|
17
17
|
# install build tools
|
|
18
|
-
apk add --no-cache make gcc g++
|
|
18
|
+
apk add --no-cache make gcc g++ python3 git && \
|
|
19
19
|
# ffmpeg is required at runtime for video & audio conversion libraries
|
|
20
20
|
apk add --no-cache ffmpeg && \
|
|
21
21
|
# install dependencies
|
|
@@ -25,7 +25,7 @@ RUN \
|
|
|
25
25
|
# cleanup yarn
|
|
26
26
|
yarn cache clean && \
|
|
27
27
|
# cleanup build tools
|
|
28
|
-
apk del make gcc g++
|
|
28
|
+
apk del make gcc g++ python3 git
|
|
29
29
|
|
|
30
30
|
CMD yarn start-production
|
|
31
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Platform } from 'react-native'
|
|
3
|
-
import { observer, model } from 'startupjs'
|
|
3
|
+
import { pug, observer, model } from 'startupjs'
|
|
4
4
|
import init from 'startupjs/init'
|
|
5
5
|
import { BASE_URL } from '@env'
|
|
6
6
|
import { TestComponent } from 'components'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"allowSyntheticDefaultImports": true,
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"isolatedModules": true,
|
|
7
|
+
"jsx": "react",
|
|
8
|
+
"lib": ["es6"],
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"strict": false,
|
|
12
|
+
"target": "esnext"
|
|
13
|
+
},
|
|
14
|
+
"exclude": [
|
|
15
|
+
"node_modules",
|
|
16
|
+
"babel.config.js",
|
|
17
|
+
"metro.config.js",
|
|
18
|
+
"jest.config.js"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { Platform } from 'react-native'
|
|
3
3
|
import init from 'startupjs/init'
|
|
4
4
|
import App from 'startupjs/app'
|
|
5
|
-
import { observer, model } from 'startupjs'
|
|
5
|
+
import { pug, observer, model } from 'startupjs'
|
|
6
6
|
import { registerPlugins } from 'startupjs/plugin'
|
|
7
7
|
import { uiAppPlugin } from '@startupjs/ui'
|
|
8
8
|
import { BASE_URL } from '@env'
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
observer,
|
|
4
|
-
useApi,
|
|
5
|
-
useDoc
|
|
6
|
-
} from 'startupjs'
|
|
2
|
+
import { pug, observer, useApi, useDoc } from 'startupjs'
|
|
7
3
|
import { Br, Button, Card, Div, Row, Span } from '@startupjs/ui'
|
|
8
4
|
import axios from 'axios'
|
|
9
5
|
import { faPlus, faMinus } from '@fortawesome/free-solid-svg-icons'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { observer, emit, useValue, useLocal } from 'startupjs'
|
|
2
|
+
import { pug, observer, emit, useValue, useLocal } from 'startupjs'
|
|
3
3
|
import { Button, Div, H1, Layout, Menu, Row, SmartSidebar } from '@startupjs/ui'
|
|
4
4
|
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
|
5
5
|
import APP from '../../app.json'
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"es6": true,
|
|
6
|
-
"node": true,
|
|
7
|
-
"mocha": true
|
|
8
|
-
},
|
|
9
|
-
"extends": [
|
|
10
|
-
"standard",
|
|
11
|
-
"standard-react",
|
|
12
|
-
"plugin:react-pug/all"
|
|
13
|
-
],
|
|
14
|
-
"globals": {
|
|
15
|
-
"Atomics": "readonly",
|
|
16
|
-
"SharedArrayBuffer": "readonly"
|
|
17
|
-
},
|
|
18
|
-
"parser": "babel-eslint",
|
|
19
|
-
"parserOptions": {
|
|
20
|
-
"ecmaFeatures": {
|
|
21
|
-
"legacyDecorators": true,
|
|
22
|
-
"jsx": true
|
|
23
|
-
},
|
|
24
|
-
"ecmaVersion": 10,
|
|
25
|
-
"sourceType": "module"
|
|
26
|
-
},
|
|
27
|
-
"plugins": [
|
|
28
|
-
"react",
|
|
29
|
-
"react-pug",
|
|
30
|
-
"eslint-plugin-import-helpers"
|
|
31
|
-
],
|
|
32
|
-
"rules": {
|
|
33
|
-
"prefer-const": "off",
|
|
34
|
-
"react/jsx-handler-names": "off",
|
|
35
|
-
"react/prop-types": "off",
|
|
36
|
-
"react-pug/empty-lines": "off",
|
|
37
|
-
"react-pug/no-interpolation": "off",
|
|
38
|
-
"react-pug/prop-types": "off",
|
|
39
|
-
"react-pug/quotes": "off",
|
|
40
|
-
"import-helpers/order-imports": [
|
|
41
|
-
"warn",
|
|
42
|
-
{
|
|
43
|
-
"newlinesBetween": "ignore",
|
|
44
|
-
"groups": [
|
|
45
|
-
"/^react$/",
|
|
46
|
-
"/react-native/",
|
|
47
|
-
"/^react.*/",
|
|
48
|
-
"/^startupjs/",
|
|
49
|
-
"/^@?startupjs.*/",
|
|
50
|
-
"/^@?dmapper.*/",
|
|
51
|
-
"module",
|
|
52
|
-
"/components/",
|
|
53
|
-
["/helpers/", "/hooks/"],
|
|
54
|
-
["sibling", "parent"],
|
|
55
|
-
"/.\/index.styl/"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|