Repackage as libp2p-ts

This commit is contained in:
Cayman 2020-02-04 19:49:13 -06:00
parent a2689534c1
commit 9e537faac5
No known key found for this signature in database
GPG Key ID: 54B21AEC3C53E1F5
9 changed files with 257 additions and 12935 deletions

View File

@ -1,11 +0,0 @@
const base = require('@polkadot/dev/config/eslint');
module.exports = {
...base,
parserOptions: {
...base.parserOptions,
project: [
'./tsconfig.json'
]
}
};

View File

@ -1,54 +0,0 @@
name: PR
on: [pull_request]
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: lint
run: |
yarn install --frozen-lockfile
yarn lint
test:
name: Testing
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: test
run: |
yarn install --frozen-lockfile
yarn test
build_code:
name: Build Code
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: build
run: |
yarn install --frozen-lockfile
yarn build

View File

@ -1,42 +0,0 @@
name: Master
on:
push:
branches:
- master
jobs:
build_code:
name: Build Code
if: "! contains(github.event.head_commit.message, '[CI Skip]')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.GH_PAT }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: build
env:
GH_PAT: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install --frozen-lockfile
CI_NO_BETA=true yarn polkadot-dev-ghact-build
dummy:
name: Dummy
if: "contains(github.event.head_commit.message, '[CI Skip]')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: dummy
run: |
echo "Dummy skip step"

View File

@ -1,6 +1,6 @@
ISC License (ISC)
Copyright 2017-2020 @polkadot/ts authors & contributors
Copyright 2017-2020 @chainsafe/libp2p-ts authors & contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above

View File

@ -1,21 +1,8 @@
[![polkadotjs](https://img.shields.io/badge/polkadot-js-orange?style=flat-square)](https://polkadot.js.org)
![license](https://img.shields.io/badge/License-Apache%202.0-blue?logo=apache&style=flat-square)
[![npm](https://img.shields.io/npm/v/@polkadot/ts?logo=npm&style=flat-square)](https://www.npmjs.com/package/@polkadot/ts)
[![maintainability](https://img.shields.io/codeclimate/maintainability-percentage/polkadot-js/ts?logo=code-climate&style=flat-square)](https://codeclimate.com/github/polkadot-js/ts/maintainability)
[![npm](https://img.shields.io/npm/v/@chainsafe/libp2p-ts?logo=npm&style=flat-square)](https://www.npmjs.com/package/@chainsafe/libp2p-ts)
# @polkadot/ts
# @chainsafe/libp2p-ts
TypeScript definitions for packages that are not (yet) available on [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) but are used in `@polkadot` projects.
TypeScript definitions for packages that are not (yet) available on [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) but are used in `@chainsafe` projects.
In general, updates here should have corrsponding PRs on the DefinitelyTyped repo. Tracking should be provided for these.
# libraries
This following libraries are currently awaiting external merges or have been replaced by upstream.
- https://www.npmjs.com/package/@types/abstract-leveldown
- https://www.npmjs.com/package/@types/bn.js
- https://www.npmjs.com/package/@types/leveldown
- https://www.npmjs.com/package/@types/memdown
- https://www.npmjs.com/package/@types/store
- https://www.npmjs.com/package/@types/varint
In general, updates here should have corrsponding PRs on the DefinitelyTyped repo or upstream libp2p repos. Tracking should be provided for these.

View File

@ -1,5 +1,5 @@
#!/bin/bash
# Copyright 2017-2020 @polkadot/ts authors & contributors
# Copyright 2017-2020 @chainsafe/libp2p-ts authors & contributors
# This software may be modified and distributed under the terms
# of the ISC license. See the LICENSE file for details.

View File

@ -1,12 +1,11 @@
{
"name": "@polkadot/ts",
"version": "0.2.1",
"name": "@chainsafe/libp2p-ts",
"version": "0.1.0",
"description": "Typescript definitions that are not (yet) available on https://github.com/DefinitelyTyped/DefinitelyTyped",
"repository": "https://github.com/polkadot-js/ts.git",
"author": "Jaco Greeff <jacogr@gmail.com>",
"repository": "https://github.com/chainsafe/libp2p-ts.git",
"author": "ChainSafe Systems",
"license": "ISC",
"resolutions": {
"babel-core": "^7.0.0-bridge.0",
"typescript": "^3.7.5"
},
"scripts": {
@ -18,7 +17,6 @@
"@types/chrome": "^0.0.92"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@polkadot/dev": "^0.33.1"
"typescript": "^3.7.5"
}
}

View File

@ -1,5 +1,4 @@
{
"extends": "./node_modules/@polkadot/dev/config/tsconfig",
"exclude": [
"build/**/*",
"**/build/**/*"

13047
yarn.lock

File diff suppressed because it is too large Load Diff