浏览代码

src2 --> src

Daniel Zlotin 8 年前
父节点
当前提交
193e3926a4

+ 1
- 1
.github/CONTRIBUTING 查看文件

@@ -1 +1 @@
1
-Before contributing...
1
+Before contributing... COMING SOON!

+ 14
- 9
package.json 查看文件

@@ -5,6 +5,12 @@
5 5
   "license": "MIT",
6 6
   "nativePackage": true,
7 7
   "author": "Tal Kol <talkol@gmail.com>",
8
+  "contributors": [
9
+    "Daniel Zlotin <zlotindaniel@gmail.com>",
10
+    "Guy Carmeli <guyc@wix.com>",
11
+    "Ran Greenberg <rang@wix.com>",
12
+    "Artal Druk <artald@wix.com>"
13
+  ],
8 14
   "publishConfig": {
9 15
     "registry": "https://registry.npmjs.org/"
10 16
   },
@@ -20,14 +26,13 @@
20 26
   "main": "src/index.js",
21 27
   "scripts": {
22 28
     "build": ":",
23
-    "lint": "eslint src2",
24
-    "test:js": "BABEL_ENV=test jest --coverage",
25
-    "test:android": "cd android && ./gradlew clean testDebugUnitTest",
26
-    "test:ios": ":",
27
-    "pretest": "npm run lint",
28
-    "test": "npm run test:js && npm run test:android && npm run test:ios",
29
-    "test:watch": "BABEL_ENV=test jest --coverage --watch",
30
-    "release": ": #npm version prerelease && npm publish --tag next && npm view react-native-navigation dist-tags && git push"
29
+    "lint": "eslint src",
30
+    "test-js": "BABEL_ENV=test jest --coverage",
31
+    "test-android": "cd android && ./gradlew clean testDebugUnitTest",
32
+    "test-ios": ":",
33
+    "test": "npm run lint && npm run test:js && npm run test:android && npm run test:ios",
34
+    "test-watch": "BABEL_ENV=test jest --coverage --watch",
35
+    "release": ":"
31 36
   },
32 37
   "peerDependencies": {
33 38
     "react-native": "*",
@@ -68,7 +73,7 @@
68 73
     "preset": "react-native",
69 74
     "testPathDirs": [
70 75
       "node_modules",
71
-      "src2"
76
+      "src"
72 77
     ],
73 78
     "resetMocks": true,
74 79
     "resetModules": true

src2/Navigation.js → src/Navigation.js 查看文件

@@ -140,7 +140,7 @@ export function newStack(params) {
140 140
 //}
141 141
 
142 142
 // new work on platformSpecificDeprecated.ios.js:
143
-import Navigation from './../Navigation';
143
+//import Navigation from './../Navigation';
144 144
 //import Controllers, {Modal, Notification} from './controllers';
145 145
 //+import _ from 'lodash';
146 146
 //+import PropRegistry from '../PropRegistry';

src2/Navigation.test.js → src/Navigation.test.js 查看文件


src2/commands/Commands.js → src/commands/Commands.js 查看文件


src2/commands/Commands.test.js → src/commands/Commands.test.js 查看文件


src2/commands/valid-commands.js → src/commands/valid-commands.js 查看文件


src2/containers/ContainerRegistry.js → src/containers/ContainerRegistry.js 查看文件


src2/containers/ContainerRegistry.test.js → src/containers/ContainerRegistry.test.js 查看文件


src2/containers/ContainerStore.js → src/containers/ContainerStore.js 查看文件


src2/containers/ContainerStore.test.js → src/containers/ContainerStore.test.js 查看文件


src2/containers/PropsStore.js → src/containers/PropsStore.js 查看文件


src2/containers/PropsStore.test.js → src/containers/PropsStore.test.js 查看文件


src2/env.test.js → src/env.test.js 查看文件


src2/index.js → src/index.js 查看文件


src2/index.test.js → src/index.test.js 查看文件


src2/integration/env.test.js → src/integration/env.test.js 查看文件


src2/integration/remx-support-component.js → src/integration/remx-support-component.js 查看文件


src2/integration/remx-support-store.js → src/integration/remx-support-store.js 查看文件


src2/integration/remx-support.test.js → src/integration/remx-support.test.js 查看文件


+ 3
- 3
wallaby.js 查看文件

@@ -13,12 +13,12 @@ module.exports = function(wallaby) {
13 13
 
14 14
     files: [
15 15
       'package.json',
16
-      'src2/**/*.js',
17
-      '!src2/**/*.test.js'
16
+      'src/**/*.js',
17
+      '!src/**/*.test.js'
18 18
     ],
19 19
 
20 20
     tests: [
21
-      'src2/**/*.test.js'
21
+      'src/**/*.test.js'
22 22
     ],
23 23
 
24 24
     compilers: {