Updates for new monorepo packages (#25)
* Update badges * Add badges * Cleanup scripts * Shorthand * Align build spec * User @polkadot/api-jsonrpc dev dep * Update deps
This commit is contained in:
1
.eslintignore
Normal file
1
.eslintignore
Normal file
@@ -0,0 +1 @@
|
||||
**/build/*
|
||||
@@ -6,8 +6,8 @@ cache:
|
||||
directories:
|
||||
- node_modules
|
||||
before_install:
|
||||
- npm install -g yarn --cache-min 999999999
|
||||
- npm install --global yarn --cache-min 999999999
|
||||
install:
|
||||
- yarn
|
||||
script:
|
||||
- yarn run polkadot-dev-build-travis
|
||||
- yarn polkadot-dev-build-travis
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||

|
||||
[](https://www.npmjs.com/package/@polkadot/util)
|
||||
[](https://travis-ci.org/polkadot-js/util)
|
||||
[](https://coveralls.io/github/polkadot-js/util?branch=master)
|
||||
[](https://greenkeeper.io/)
|
||||
@@ -6,7 +8,7 @@
|
||||
|
||||
# @polkadot/util
|
||||
|
||||
Various useful utility functions that are used across all projects in the @polkadot namespace. It provides utlitiy functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
|
||||
Various useful utility functions that are used across all projects in the @polkadot namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
10
package.json
10
package.json
@@ -24,13 +24,13 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/util#readme",
|
||||
"scripts": {
|
||||
"build": "polkadot-dev-build-babel && polkadot-dev-build-docs",
|
||||
"check": "eslint src && flow check",
|
||||
"test": "jest --coverage src"
|
||||
"build": "yarn polkadot-dev-build-babel && yarn polkadot-dev-build-docs",
|
||||
"check": "yarn eslint src && yarn flow check",
|
||||
"test": "yarn jest --coverage src"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.8.1",
|
||||
"@polkadot/jsonrpc": "^0.3.9"
|
||||
"@polkadot/api-jsonrpc": "^0.5.1",
|
||||
"@polkadot/dev": "^0.9.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-runtime": "^6.26.0",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
const jsonrpcSignature = require('./signature');
|
||||
|
||||
/**
|
||||
@summary Convenience functions for values from @polkadot/jsonrpc
|
||||
@summary Convenience functions for values from @polkadot/api-jsonrpc
|
||||
*/
|
||||
module.exports = {
|
||||
jsonrpcSignature
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// ISC, Copyright 2017 Jaco Greeff
|
||||
// @flow
|
||||
|
||||
import type { InterfaceInputType, InterfaceOutputType } from '@polkadot/jsonrpc/types';
|
||||
import type { InterfaceInputType, InterfaceOutputType } from '@polkadot/api-jsonrpc/types';
|
||||
|
||||
function formatParam (param: InterfaceInputType | InterfaceOutputType): string {
|
||||
return param.name
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// ISC, Copyright 2017 Jaco Greeff
|
||||
|
||||
const chai = require('chai');
|
||||
const sinonChai = require('sinon-chai');
|
||||
|
||||
chai.use(sinonChai);
|
||||
|
||||
global.expect = chai.expect;
|
||||
@@ -1 +0,0 @@
|
||||
-r ./test/mocha.config
|
||||
22
yarn.lock
22
yarn.lock
@@ -54,9 +54,15 @@
|
||||
lodash "^4.2.0"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@polkadot/dev@^0.8.1":
|
||||
version "0.8.1"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.8.1.tgz#828994b8017a7b780e2b162172551016920e5b48"
|
||||
"@polkadot/api-jsonrpc@^0.5.1":
|
||||
version "0.5.1"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/api-jsonrpc/-/api-jsonrpc-0.5.1.tgz#e94e2a23249897df40d1f00557ca46b59fbf9247"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
|
||||
"@polkadot/dev@^0.9.2":
|
||||
version "0.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.9.2.tgz#5d4911764372183283332bf46c9878719b693703"
|
||||
dependencies:
|
||||
babel-cli "^6.26.0"
|
||||
babel-core "^6.26.0"
|
||||
@@ -89,12 +95,6 @@
|
||||
stylelint "^8.2.0"
|
||||
stylelint-config-standard "^18.0.0"
|
||||
|
||||
"@polkadot/jsonrpc@^0.3.9":
|
||||
version "0.3.18"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.3.18.tgz#7693f2bb60e2f53e6a58202f6e8f1e0333e1d840"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
|
||||
abab@^1.0.3:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e"
|
||||
@@ -1296,8 +1296,8 @@ combined-stream@^1.0.5, combined-stream@~1.0.5:
|
||||
delayed-stream "~1.0.0"
|
||||
|
||||
commander@^2.11.0:
|
||||
version "2.12.1"
|
||||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.1.tgz#468635c4168d06145b9323356d1da84d14ac4a7a"
|
||||
version "2.12.2"
|
||||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.2.tgz#0f5946c427ed9ec0d91a46bb9def53e54650e555"
|
||||
|
||||
commander@~2.9.0:
|
||||
version "2.9.0"
|
||||
|
||||
Reference in New Issue
Block a user