Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Publish @parity/jsonrpc #4365

Merged
merged 3 commits into from
Jan 31, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow ci:build:jsonrpc
  • Loading branch information
jacogr committed Jan 31, 2017
commit 3c3579087514f00099b964bc9d72f4a3dc0210eb
4 changes: 3 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@
"ci:build:lib": "NODE_ENV=production webpack --config webpack/libraries",
"ci:build:dll": "NODE_ENV=production webpack --config webpack/vendor",
"ci:build:npm": "NODE_ENV=production webpack --config webpack/npm",
"ci:build:jsonrpc": "babel-node ./scripts/build-rpc-json.js --output .npmjs/jsonrpc",
"start": "npm install && npm run build:lib && npm run build:dll && npm run start:app",
"start:app": "node webpack/dev.server",
"clean": "rm -rf ./.build ./.coverage ./.happypack ./.npmjs ./build",
@@ -135,7 +136,8 @@
"webpack-dev-middleware": "1.9.0",
"webpack-error-notification": "0.1.6",
"webpack-hot-middleware": "2.14.0",
"websocket": "1.0.24"
"websocket": "1.0.24",
"yargs": "6.6.0"
},
"dependencies": {
"bignumber.js": "3.0.1",
5 changes: 4 additions & 1 deletion js/scripts/build-rpc-json.js
Original file line number Diff line number Diff line change
@@ -16,10 +16,13 @@

import fs from 'fs';
import path from 'path';
import yargs from 'yargs';

import interfaces from '../src/jsonrpc';

const INDEX_JSON = path.join(__dirname, '../release/index.json');
const argv = yargs.default('output', 'release').argv;

const INDEX_JSON = path.join(__dirname, `../${argv.output}/index.json`);
const methods = [];

function formatDescription (obj) {