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 +7 -0
- package/cli.js +2 -2
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/loadConfig.js +3 -0
- package/package.json +15 -15
- package/startServer.js +1 -2
- package/templates/simple/.eslintrc.json +1 -57
- package/templates/simple/startupjs.config.js +2 -4
- package/templates/ui/components/TestComponent/index.jsx +2 -1
- package/templates/ui/main/Layout/index.jsx +1 -1
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
|
|
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
|
-
|
|
13
|
+
run({ templatesPath })
|
package/index.d.ts
CHANGED
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.
|
|
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.
|
|
43
|
-
"@startupjs/backend": "^0.56.0-alpha.
|
|
44
|
-
"@startupjs/bundler": "^0.56.0-alpha.
|
|
45
|
-
"@startupjs/cli": "^0.56.0-alpha.
|
|
46
|
-
"@startupjs/hooks": "^0.56.0-alpha.
|
|
47
|
-
"@startupjs/i18n": "^0.56.0-alpha.
|
|
48
|
-
"@startupjs/init": "^0.56.0-alpha.
|
|
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/
|
|
52
|
-
"@startupjs/
|
|
53
|
-
"@startupjs/
|
|
54
|
-
"@startupjs/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
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": "
|
|
58
|
+
"gitHead": "5965e69bcf1a996c8f026dec065545497b2c8b0b"
|
|
59
59
|
}
|
package/startServer.js
CHANGED
|
@@ -1,59 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
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
|
}
|
|
@@ -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
|
|
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
|
|