Skip to content

Commit 29308c3

Browse files
authored
Thrift files to automatically pull from cadence-idl on npm install (#90)
* remove existing thrift files from repo * added submodule * updating path to point to thrift files * removing git submodule * installed napa which gets a github repo without a package.json. Updated thrift file locations in the code. * 3.8.0-beta.7 * moving napa to a dependency from devDep * 3.8.0-beta.8 * fixing tests * 3.8.0-beta.9 * making copy command to copy idl to server folder so it can be read on deploy * 3.8.0-beta.10 * 3.8.0
1 parent 62c8f38 commit 29308c3

16 files changed

+27
-3479
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist/
44
.vscode
55
.idea
66
package-lock.json
7+
server/idl

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "cadence-web",
3-
"version": "3.7.1",
3+
"version": "3.8.0",
44
"description": "Cadence Web UI",
55
"main": "server/index.js",
66
"licence": "MIT",
77
"scripts": {
88
"dev": "NODE_ENV=development node server.js",
99
"eslint": "eslint --ext .js,.vue client --fix",
10+
"install": "napa && cp -R node_modules/cadence-idl/thrift server/idl",
1011
"start": "npm run build && NODE_ENV=production node server.js",
1112
"test": "mocha server/test && mocha-chrome http://localhost:8090",
1213
"test:unit": "jest",
@@ -53,6 +54,7 @@
5354
"long": "^3.2.0",
5455
"lossless-json": "^1.0.2",
5556
"moment": "^2.19.1",
57+
"napa": "^3.0.0",
5658
"prismjs": "^1.14.0",
5759
"promise.prototype.finally": "^3.1.0",
5860
"stylus": "^0.54.5",
@@ -101,5 +103,8 @@
101103
"prettier": "^1.19.1",
102104
"supertest": "^3.0.0",
103105
"webpack-hot-client": "^1.3.0"
106+
},
107+
"napa": {
108+
"cadence-idl": "uber/cadence-idl#db27bb7ac668de0b4ba582b4de9bbc280b5a1243"
104109
}
105110
}

server/idl/admin.thrift

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)