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 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 (): void
8
- export function styl (): void
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.40.15",
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.40.9",
14
- "@startupjs/backend": "^0.40.6",
15
- "@startupjs/bundler": "^0.40.9",
16
- "@startupjs/cli": "^0.40.15",
17
- "@startupjs/hooks": "^0.40.2",
18
- "@startupjs/i18n": "^0.40.0",
19
- "@startupjs/init": "^0.40.2",
20
- "@startupjs/isomorphic-helpers": "^0.40.0",
21
- "@startupjs/orm": "^0.40.0",
22
- "@startupjs/patches": "^0.40.0",
23
- "@startupjs/react-sharedb": "^0.40.2",
24
- "@startupjs/server": "^0.40.15",
25
- "babel-preset-startupjs": "^0.40.9",
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": "39bf6b32f295a12394989edddc2a5972779b2fcf"
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
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { View, TouchableOpacity, Text } from 'react-native'
3
- import { observer, emit } from 'startupjs'
3
+ import { pug, observer, emit } from 'startupjs'
4
4
  import './index.styl'
5
5
 
6
6
  export default observer(function ({ children }) {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { Text, ScrollView } from 'react-native'
3
- import { observer } from 'startupjs'
3
+ import { pug, observer } from 'startupjs'
4
4
  import './index.styl'
5
5
 
6
6
  export default observer(function PAbout () {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { ScrollView } from 'react-native'
3
- import { observer } from 'startupjs'
3
+ import { pug, observer } from 'startupjs'
4
4
  import { TestComponent } from 'components'
5
5
  import './index.styl'
6
6
 
@@ -15,7 +15,7 @@
15
15
  "Atomics": "readonly",
16
16
  "SharedArrayBuffer": "readonly"
17
17
  },
18
- "parser": "babel-eslint",
18
+ "parser": "@babel/eslint-parser",
19
19
  "parserOptions": {
20
20
  "ecmaFeatures": {
21
21
  "legacyDecorators": true,
@@ -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++ python git && \
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++ python git
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'
@@ -5,6 +5,7 @@ import {
5
5
  TouchableOpacity
6
6
  } from 'react-native'
7
7
  import {
8
+ pug,
8
9
  observer,
9
10
  useDoc,
10
11
  useApi
@@ -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,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { Text, ScrollView } from 'react-native'
3
- import { observer } from 'startupjs'
3
+ import { pug, observer } from 'startupjs'
4
4
  import { Content } from '@startupjs/ui'
5
5
  import './index.styl'
6
6
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { ScrollView } from 'react-native'
3
- import { observer } from 'startupjs'
3
+ import { pug, observer } from 'startupjs'
4
4
  import { Content } from '@startupjs/ui'
5
5
  import { TestComponent } from 'components'
6
6
  import './index.styl'
@@ -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
- }