Skip to content

Commit

Permalink
Merge pull request #1 from fuseio/v1
Browse files Browse the repository at this point in the history
v1
  • Loading branch information
leonprou authored Jul 19, 2021
2 parents fe73c4f + 44c9fa4 commit c9b7deb
Show file tree
Hide file tree
Showing 20 changed files with 7,593 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/dist
25 changes: 25 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"standard"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
23 changes: 23 additions & 0 deletions .github/workflow/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy
on:
release:
types: [published]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflow/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn
- run: yarn lint
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules
/dist

yarn-error.log
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testTimeout: 30000
}
45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "@fuseio/rewards-sdk",
"version": "1.0.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"lint": "eslint .",
"lint-fix": "eslint . --fix",
"build": "tsc",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fuseio/rewards-sdk.git"
},
"keywords": ["fuseio", "rewards"],
"author": "Mulenga Bowa",
"license": "ISC",
"bugs": {
"url": "https://github.com/fuseio/rewards-sdk/issues"
},
"homepage": "https://github.com/fuseio/rewards-sdk#readme",
"dependencies": {
"@apollo/client": "^3.3.21",
"bignumber.js": "^9.0.1",
"cross-fetch": "^3.1.4",
"graphql": "^15.5.1",
"web3": "^1.4.0"
},
"devDependencies": {
"@types/jest": "^26.0.24",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"eslint": "^7.12.1",
"eslint-config-standard": "^16.0.3",
"eslint-config-standard-with-typescript": "^20.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"jest": "^27.0.6",
"standard": "^16.0.3",
"ts-jest": "^27.0.3",
"typescript": "^4.3.5"
}
}
Loading

0 comments on commit c9b7deb

Please sign in to comment.