@tarojs/rn-runner 3.5.0-beta.4 → 3.5.0-beta.7

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.
@@ -1,3 +1,2 @@
1
- // import { v4 as uuidv4 } from 'uuid';
2
1
  import * as fileBuild from 'expo-file-system/build/FileSystem'
3
2
  console.log({fileBuild})
@@ -1,3 +1,2 @@
1
- // import { v4 as uuidv4 } from 'uuid';
2
1
  import silblings from 'react-native-root-siblings'
3
2
  console.log({silblings})
@@ -4,5 +4,5 @@
4
4
  "jsx": "react",
5
5
  "sourceMap": true,
6
6
  "module": "commonjs"
7
- },
7
+ }
8
8
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRNConfigBabelPlugin = exports.getRNConfigTransformer = exports.getRNConfigOutput = exports.getRNConfigEntry = exports.getRNConfig = exports.getConfig = void 0;
3
+ exports.getRNConfigTransformer = exports.getRNConfigOutput = exports.getRNConfigEntry = exports.getRNConfigBabelPlugin = exports.getRNConfig = exports.getConfig = void 0;
4
4
  const lodash_1 = require("lodash");
5
5
  const fs = require('fs');
6
6
  let config;
@@ -1 +1 @@
1
- {"version":3,"file":"config-holder.js","sourceRoot":"","sources":["../../src/config/config-holder.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAG9B,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAExB,IAAI,MAAc,CAAA;AAClB,IAAI,QAAkB,CAAA;AAEtB,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IACzB,MAAM,QAAQ,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,kBAAkB,CAAA;IACnD,IAAI,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC3B,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC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AA;AAChC,CAAC,CAAA;AAiCwD,4CAAgB;AA/BzE,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,EAAE;IAC9B,WAAW,EAAE,CAAA;IACb,IAAI,QAAQ,CAAC,MAAM,EAAE;QACnB,IAAI,CAAC,KAAK,KAAK,EAAE;YACf,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAA;SAC3B;aAAM;YACL,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAA;SAC/B;KACF;SAAM;QACL,OAAO,IAAI,CAAA;KACZ;AACH,CAAC,CAAA;AAoB0E,8CAAiB;AAlB5F,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,WAAW,EAAE,CAAA;IACb,IAAI,QAAQ,CAAC,WAAW,EAAE;QACxB,OAAO,QAAQ,CAAC,WAAW,CAAA;KAC5B;SAAM;QACL,OAAO,IAAI,CAAA;KACZ;AACH,CAAC,CAAA;AAW6F,wDAAsB;AATpH,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAClC,WAAW,EAAE,CAAA;IACb,IAAI,QAAQ,CAAC,WAAW,EAAE;QACxB,OAAO,QAAQ,CAAC,WAAW,CAAA;KAC5B;SAAM;QACL,OAAO,IAAI,CAAA;KACZ;AACH,CAAC,CAAA;AAEgC,wDAAsB"}
package/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  module.exports = require('./dist/index.js').default
2
+
2
3
  module.exports.default = module.exports
package/package.json CHANGED
@@ -1,21 +1,12 @@
1
1
  {
2
2
  "name": "@tarojs/rn-runner",
3
- "version": "3.5.0-beta.4",
3
+ "version": "3.5.0-beta.7",
4
4
  "description": "ReactNative build tool for taro",
5
5
  "main": "index.js",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/NervJS/taro.git"
9
9
  },
10
- "scripts": {
11
- "build": "tsc",
12
- "dev": "tsc --watch",
13
- "lint": "eslint .",
14
- "test": "jest --silent",
15
- "test:dev": "jest --watch",
16
- "test:ci": "jest --silent --coverage false",
17
- "test:coverage": "jest --coverage"
18
- },
19
10
  "keywords": [
20
11
  "taro"
21
12
  ],
@@ -30,6 +21,7 @@
30
21
  "npm": ">=6.0.0"
31
22
  },
32
23
  "dependencies": {
24
+ "@react-native-community/cli": "^7.0.3",
33
25
  "@react-native-community/cli-plugin-metro": "^7.0.0",
34
26
  "@react-native-community/cli-server-api": "^7.0.0",
35
27
  "@rollup/plugin-babel": "^5.3.1",
@@ -37,10 +29,10 @@
37
29
  "@rollup/plugin-json": "^4.1.0",
38
30
  "@rollup/plugin-node-resolve": "^13.3.0",
39
31
  "@rollup/plugin-replace": "^4.0.0",
40
- "@tarojs/helper": "3.5.0-beta.4",
41
- "@tarojs/rn-style-transformer": "3.5.0-beta.4",
42
- "@tarojs/rn-supporter": "3.5.0-beta.4",
43
- "@tarojs/rn-transformer": "3.5.0-beta.4",
32
+ "@tarojs/helper": "3.5.0-beta.7",
33
+ "@tarojs/rn-style-transformer": "3.5.0-beta.7",
34
+ "@tarojs/rn-supporter": "3.5.0-beta.7",
35
+ "@tarojs/rn-transformer": "3.5.0-beta.7",
44
36
  "acorn-jsx": "^5.3.2",
45
37
  "fs-extra": "^8.0.1",
46
38
  "lodash": "^4.17.21",
@@ -55,5 +47,18 @@
55
47
  "rollup-plugin-clear": "^2.0.7",
56
48
  "rollup-plugin-image-file": "^1.0.2"
57
49
  },
58
- "gitHead": "7aca7841ed7e2af1b182ff5d24e91f44730ce783"
59
- }
50
+ "devDependencies": {
51
+ "expo-file-system": "~14.0.0",
52
+ "react-is": "^16.13.0",
53
+ "react-native-root-siblings": "^4.1.1"
54
+ },
55
+ "scripts": {
56
+ "build": "tsc",
57
+ "dev": "tsc --watch",
58
+ "lint": "eslint .",
59
+ "test": "jest --silent",
60
+ "test:dev": "jest --watch",
61
+ "test:ci": "jest --silent --coverage false",
62
+ "test:coverage": "jest --coverage"
63
+ }
64
+ }
@@ -1,4 +1,5 @@
1
1
  import { merge } from 'lodash'
2
+
2
3
  import { Config, RNConfig } from '../types'
3
4
 
4
5
  const fs = require('fs')
@@ -66,4 +67,4 @@ const getRNConfigBabelPlugin = () => {
66
67
  }
67
68
  }
68
69
 
69
- export { getConfig, getRNConfig, getRNConfigEntry, getRNConfigOutput, getRNConfigTransformer, getRNConfigBabelPlugin }
70
+ export { getConfig, getRNConfig, getRNConfigBabelPlugin, getRNConfigEntry, getRNConfigOutput, getRNConfigTransformer }
@@ -1,55 +1,55 @@
1
1
  // https://taro-docs.jd.com/taro/docs/config-detail/
2
2
  interface Output {
3
- android: string,
3
+ android: string
4
4
  ios: string
5
5
  }
6
6
 
7
7
  interface Copy {
8
- patterns: [],
8
+ patterns: []
9
9
  options: Record<string, any>
10
10
  }
11
11
 
12
12
  interface Csso {
13
- enable: boolean,
13
+ enable: boolean
14
14
  config: Record<string, any>
15
15
  }
16
16
 
17
17
  interface Sass {
18
- resource: [],
19
- projectDirectory: string,
18
+ resource: []
19
+ projectDirectory: string
20
20
  data: string
21
21
  }
22
22
 
23
23
  export interface Config {
24
- projectName?: string,
25
- date?: string,
26
- designWidth?: number,
27
- deviceRatio?: Record<string, any>,
28
- sourceRoot?: string,
29
- outputRoot?: string,
30
- defineConstants?: Record<string, any>,
31
- alias?: Record<string, any>,
32
- env?: Record<string, any>,
33
- sass?: Sass,
34
- copy?: Copy,
35
- plugins?: [],
36
- presets?: [],
37
- terser?: Record<string, any>,
38
- csso?: Csso,
39
- framework?: Record<string, any>,
40
- mini?: Record<string, any>,
41
- h5?: Record<string, any>,
42
- rn?: Record<string, any>,
24
+ projectName?: string
25
+ date?: string
26
+ designWidth?: number
27
+ deviceRatio?: Record<string, any>
28
+ sourceRoot?: string
29
+ outputRoot?: string
30
+ defineConstants?: Record<string, any>
31
+ alias?: Record<string, any>
32
+ env?: Record<string, any>
33
+ sass?: Sass
34
+ copy?: Copy
35
+ plugins?: []
36
+ presets?: []
37
+ terser?: Record<string, any>
38
+ csso?: Csso
39
+ framework?: Record<string, any>
40
+ mini?: Record<string, any>
41
+ h5?: Record<string, any>
42
+ rn?: Record<string, any>
43
43
  }
44
44
 
45
45
  export interface RNConfig extends Config {
46
- appName?: boolean,
47
- entry?: string,
48
- output?: Output,
49
- sourceDir?: string,
50
- postcss?: Record<string, any>,
51
- less?: Record<string, any>,
52
- stylus?: Record<string, any>,
53
- transformer?: any,
54
- babelPlugin?: any,
46
+ appName?: boolean
47
+ entry?: string
48
+ output?: Output
49
+ sourceDir?: string
50
+ postcss?: Record<string, any>
51
+ less?: Record<string, any>
52
+ stylus?: Record<string, any>
53
+ transformer?: any
54
+ babelPlugin?: any
55
55
  }
package/tsconfig.json CHANGED
@@ -6,5 +6,5 @@
6
6
  "sourceMap": true,
7
7
  "module": "commonjs"
8
8
  },
9
- "include": ["./src"],
9
+ "include": ["./src"]
10
10
  }