Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 40d6342

Browse files
committed
Move generated proto file to assets folder
1 parent e2a0edf commit 40d6342

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
# production
1010
/build
1111

12+
# proto
13+
/assets/*.js
14+
1215
# misc
1316
.DS_Store
1417
.env.local

mobile/.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
node_modules/**/*
88
ios/Pods/**/*
99

10-
# proto
11-
lnrpc/*.js
12-
1310
# misc
1411
.env.local
1512
.env.development.local

mobile/lnrpc/.gitkeep

Whitespace-only changes.

mobile/rn-cli.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
stream: path.resolve(__dirname, 'node_modules/readable-stream'),
2323
zlib: path.resolve(__dirname, 'node_modules/browserify-zlib'),
2424
'base64-js': path.resolve(__dirname, 'node_modules/base64-js'),
25+
protobufjs: path.resolve(__dirname, 'node_modules/protobufjs'),
2526
sinon: path.resolve(__dirname, 'node_modules/sinon'),
2627
},
2728
getProjectRoots: () => [

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"build-storybook": "build-storybook -s public",
2727
"build-icon": "svgr --native --icon --filename-case kebab -d src/asset/icon src/asset/icon",
2828
"build-img": "svgr --native --filename-case kebab -d src/asset/img src/asset/img",
29-
"protobuf": "pbjs assets/rpc.proto -t static-module -w es6 -o mobile/lnrpc/protobuf.js"
29+
"protobuf": "pbjs assets/rpc.proto -t static-module -w es6 -o assets/rpc.js"
3030
},
3131
"dependencies": {
3232
"@grpc/proto-loader": "^0.3.0",

src/action/grpc-mobile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { Duplex } from 'stream';
88
import base64 from 'base64-js';
99

10-
import { lnrpc } from '../../mobile/lnrpc/protobuf';
10+
import { lnrpc } from '../../assets/rpc';
1111
import * as log from './log';
1212
import { toCaps } from '../helper';
1313

0 commit comments

Comments
 (0)