-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,587 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.