Skip to content

Commit

Permalink
setup v2
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahZinsmeister committed Jan 8, 2020
1 parent 57c6584 commit 7038e3a
Show file tree
Hide file tree
Showing 34 changed files with 3,168 additions and 3,739 deletions.
11 changes: 0 additions & 11 deletions .eslintrc

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
pull_request:
branches:
- v2
push:
branches:
- v2

jobs:
test:
strategy:
matrix:
node: ['10.x', '12.x']
os: [ubuntu-latest, macOS-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: npm install -g yarn

- id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ matrix.os }}-yarn-
- run: yarn

- run: yarn lint
- run: yarn build
- run: yarn test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dist/
dist
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

Expand All @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# Uniswap SDK

[![npm (scoped)](https://img.shields.io/npm/v/@uniswap/sdk.svg)](https://www.npmjs.com/package/@uniswap/sdk)
[![Build Status](https://travis-ci.org/Uniswap/uniswap-sdk.svg?branch=master)](https://travis-ci.org/Uniswap/uniswap-sdk)
[![Coverage Status](https://coveralls.io/repos/github/Uniswap/uniswap-sdk/badge.svg?branch=master)](https://coveralls.io/github/Uniswap/uniswap-sdk?branch=master)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

## Documentation is available at [docs.uniswap.io](https://docs.uniswap.io/sdk-documentation/get-started)
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk)
4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

63 changes: 23 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,33 @@
{
"name": "@uniswap/sdk",
"version": "1.0.0-beta.4",
"description": "An SDK for building applications on top of the Uniswap exchange protocol.",
"license": "GPL-3.0-or-later",
"version": "2.0.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"repository": "https://github.com/Uniswap/uniswap-sdk.git",
"keywords": [
"Uniswap",
"Ethereum",
"SDK"
"uniswap",
"ethereum"
],
"main": "./dist/index.js",
"module": "dist/sdk.esm.js",
"scripts": {
"lint:base": "yarn eslint './src/**/*.ts'",
"format:base": "yarn prettier './src/**/*.ts'",
"fix:lint": "yarn lint:base --fix",
"fix:format": "yarn format:base --write",
"fix:all": "yarn fix:lint && yarn fix:format",
"check:lint": "yarn lint:base",
"check:format": "yarn format:base --check",
"check:all": "yarn check:lint && yarn check:format",
"prebuild": "rm -rf dist/",
"build": "tsc",
"watch": "yarn prebuild && tsc --watch",
"test": "jest",
"coverage": "jest --coverage --coverageReporters=text-lcov | coveralls"
"lint": "tsdx lint",
"build": "tsdx build",
"start": "tsdx watch",
"test": "tsdx test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Uniswap/uniswap-sdk.git"
},
"author": "Noah Zinsmeister <noahwz@gmail.com>",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@types/jest": "^24.0.13",
"@types/lodash.clonedeepwith": "^4.5.6",
"@typescript-eslint/eslint-plugin": "^1.9.0",
"@typescript-eslint/parser": "^1.9.0",
"coveralls": "^3.0.3",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"jest": "^24.8.0",
"prettier": "^1.17.1",
"ts-jest": "^24.0.2",
"typescript": "^3.4.5"
"@types/jest": "^24.0.25",
"tsdx": "^0.12.1",
"tslib": "^1.10.0",
"typescript": "^3.7.4"
},
"dependencies": {
"bignumber.js": "^9.0.0",
"ethers": "^4.0.28",
"lodash.clonedeepwith": "^4.5.0"
"prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": true
}
}
95 changes: 0 additions & 95 deletions src/__tests__/_utils.ts

This file was deleted.

Loading

0 comments on commit 7038e3a

Please sign in to comment.