Skip to content

Commit

Permalink
fix: use eslint, switch to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Mar 3, 2019
1 parent 2fb4154 commit b0f5a90
Show file tree
Hide file tree
Showing 10 changed files with 1,587 additions and 869 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
node: true,
jest: true,
},
extends: ['xo-space/esnext', 'xo-typescript', 'prettier/@typescript-eslint'],
rules: {
'object-curly-spacing': ['error', 'always'],
'@typescript-eslint/indent': ['error', 2, { SwitchCase: 1 }],
'@typescript-eslint/explicit-function-return-type': 0,
'capitalized-comments': 0,
'comma-dangle': ['error', 'always-multiline'],
'no-mixed-operators': 0,
'no-await-in-loop': 0,
'@typescript-eslint/camelcase': 0,
},
};
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# transmission [![npm](https://img.shields.io/npm/v/@ctrl/transmission.svg?maxAge=3600)](https://www.npmjs.com/package/@ctrl/transmission) [![build status](https://travis-ci.com/TypeCtrl/transmission.svg?branch=master)](https://travis-ci.org/typectrl/transmission) [![coverage status](https://codecov.io/gh/typectrl/transmission/branch/master/graph/badge.svg)](https://codecov.io/gh/typectrl/transmission)
# transmission [![npm](https://img.shields.io/npm/v/@ctrl/transmission.svg?maxAge=3600)](https://www.npmjs.com/package/@ctrl/transmission) [![CircleCI](https://circleci.com/gh/TypeCtrl/transmission.svg?style=svg)](https://circleci.com/gh/TypeCtrl/transmission) [![coverage status](https://codecov.io/gh/typectrl/transmission/branch/master/graph/badge.svg)](https://codecov.io/gh/typectrl/transmission)

> TypeScript api wrapper for [transmission](https://transmissionbt.com/) using [got](https://github.com/sindresorhus/got)
Expand Down Expand Up @@ -30,3 +30,6 @@ async function main() {
```ts
const transmission = new Transmission();
```

### See Also
deluge - https://github.com/typectrl/deluge
59 changes: 59 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: 2.1
jobs:
test:
docker:
- image: circleci/node:10
- image: linuxserver/transmission
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: npm-install
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: test
command: npm run test:ci
- run:
name: lint
command: npm run lint
- run:
name: codecov
command: bash <(curl -s https://codecov.io/bash)
release:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: npm install
- run: npm run build
- run: npm run semantic-release
- run:
name: Install and configure dependencies
command: |
git config credential.helper "cache --timeout=120"
git config user.email "scttcper@gmail.com"
git config user.name "ci-build"
ssh-add -D
- run: npm run build:docs
- run: npx gh-pages -x -d docs -m "update docs [ci skip]" -r https://${GH_TOKEN}@github.com/typectrl/transmission.git

workflows:
version: 2
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test
- release:
filters:
branches:
only:
- master
requires:
- test
Loading

0 comments on commit b0f5a90

Please sign in to comment.