This repository has been archived by the owner. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +334
-615
lines changed Expand file tree Collapse file tree 5 files changed +334
-615
lines changed Original file line number Diff line number Diff line change 1
1
name : Node CI
2
-
3
- on : [push]
4
-
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
5
7
jobs :
6
8
build :
7
-
8
- runs-on : ubuntu-latest
9
-
10
9
strategy :
11
10
matrix :
12
11
node-version : [10.x, 12.x]
13
-
12
+ runs-on : ubuntu-latest
14
13
steps :
15
- - uses : actions/checkout@v1
16
- - name : Use Node.js ${{ matrix.node-version }}
17
- uses : actions/setup-node@v1
18
- with :
19
- node-version : ${{ matrix.node-version }}
20
- - name : yarn install, build, and test
21
- run : |
22
- yarn
23
- yarn ci:test
24
- env :
25
- CI : true
14
+ - name : Checkout
15
+ uses : actions/checkout@v1
16
+ - name : Use Node.js ${{ matrix.node-version }}
17
+ uses : actions/setup-node@v1
18
+ with :
19
+ node-version : ${{ matrix.node-version }}
20
+ - name : yarn install, build, and test
21
+ env :
22
+ CI : true
23
+ run : |
24
+ yarn
25
+ yarn ci:test
Original file line number Diff line number Diff line change 1
1
const BatchedBridge = require ( "react-native/Libraries/BatchedBridge/BatchedBridge" ) ;
2
2
BatchedBridge . registerCallableModule ( "ReactExperienceLoader" , {
3
- load : ( ...names ) => names . forEach ( codegen . require ( "inlineRequireModules" ) )
3
+ load : ( ...names ) => names . forEach ( codegen . require ( "inlineRequireModules" ) ) ,
4
4
} ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const fs = require("fs");
4
4
const { experiences } = JSON . parse (
5
5
fs . readFileSync (
6
6
require . resolve ( "./package.json" , {
7
- paths : [ "." , ...( module . parent ? module . parent . paths : [ ] ) ]
7
+ paths : [ "." , ...( module . parent ? module . parent . paths : [ ] ) ] ,
8
8
} ) ,
9
9
"utf8"
10
10
)
@@ -17,7 +17,7 @@ if (!experiences) {
17
17
module . exports = `name => {
18
18
switch (name) {
19
19
${ Object . keys ( experiences )
20
- . map ( name => `case "${ name } ": return require("${ experiences [ name ] } ");` )
20
+ . map ( ( name ) => `case "${ name } ": return require("${ experiences [ name ] } ");` )
21
21
. join ( "" ) }
22
22
}
23
23
}` ;
Original file line number Diff line number Diff line change 28
28
"scripts" : {
29
29
"ci:test" : " yarn format && yarn codegen && git diff && test $(git diff | grep -c '$') -eq 0" ,
30
30
"codegen" : " babel --plugins codegen index.js > index.js.out" ,
31
- "format" : " prettier --write *.js *.json"
31
+ "format" : " prettier --write $(git ls-files ' *.js' ' *.json') "
32
32
},
33
33
"dependencies" : {
34
34
"@babel/core" : " ^7.0.0-0" ,
39
39
},
40
40
"devDependencies" : {
41
41
"@babel/cli" : " ^7.0.0" ,
42
- "prettier" : " ^1.18.0 "
42
+ "prettier" : " 2.0.5 "
43
43
},
44
44
"experiences" : {
45
45
"FeatureA" : " @contoso/feature-a" ,
You can’t perform that action at this time.
0 commit comments