Skip to content

Commit 17b5258

Browse files
committed
Move to typyscript
1 parent 992248b commit 17b5258

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+10771
-7794
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc

Lines changed: 0 additions & 47 deletions
This file was deleted.

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
env: {
3+
browser: false,
4+
node: true
5+
},
6+
extends: [
7+
'airbnb-typescript/base',
8+
'plugin:@typescript-eslint/eslint-recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
11+
'prettier',
12+
'prettier/@typescript-eslint'
13+
],
14+
parser: '@typescript-eslint/parser',
15+
parserOptions: {
16+
project: 'tsconfig.json',
17+
sourceType: 'module'
18+
},
19+
plugins: ['@typescript-eslint'],
20+
rules: {
21+
'no-underscore-dangle': 'off',
22+
'@typescript-eslint/no-unsafe-call': 'off',
23+
'@typescript-eslint/ban-types': 'off',
24+
'@typescript-eslint/ban-ts-comment': 'off',
25+
'@typescript-eslint/camelcase': 'off',
26+
'@typescript-eslint/no-unsafe-assignment': 'off',
27+
'@typescript-eslint/no-unsafe-return': 'off'
28+
}
29+
}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ jspm_packages
3737
.node_repl_history
3838

3939
coverage
40+
.idea
41+
.DS_Store
42+
43+
dist
44+
docs

.jsdoc.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true,
6+
"arrowParens": "avoid"
7+
}

.travis.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
language: node_js
22
node_js:
3-
- '4'
4-
- '5'
5-
- '6'
6-
- 'node'
7-
before_install:
8-
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
9-
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
10-
- sudo apt-get update -qq
11-
- sudo apt-get install -y -qq yarn
12-
install: yarn
3+
- '10'
4+
135
services:
146
- redis-server
7+
158
after_success:
169
- npm run lint
1710
- npm run coveralls
11+
12+
deploy:
13+
provider: pages
14+
local_dir: docs
15+
skip_cleanup: true
16+
github_token: $GITHUB_TOKEN
17+
keep_history: true
18+
on:
19+
branch: master
20+
21+
cache:
22+
directories:
23+
- node_modules

Dockerfile

Lines changed: 0 additions & 18 deletions
This file was deleted.

Dockerfile.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:alpine
2+
3+
WORKDIR /app
4+
5+
ADD . /app
6+
RUN npm install
7+
8+
CMD ["npm", "test"]

LICENSE

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2-
Version 2, December 2004
1+
# Released under MIT License
32

4-
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
3+
Copyright (c) 2013 Mark Otto.
54

6-
Everyone is permitted to copy and distribute verbatim or modified
7-
copies of this license document, and changing it is allowed as long
8-
as the name is changed.
5+
Copyright (c) 2017 Andrew Fong.
96

10-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
128

13-
0. You just DO WHAT THE FUCK YOU WANT TO.
9+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
version: '2'
1+
version: '3'
22
services:
33
sut:
44
environment:
55
NODE_ENV: development
6-
DEBUG: lib.*
6+
DEBUG: src.*
77
REDIS_HOST: redis
88
build:
9-
context: ../
10-
dockerfile: ./test/Dockerfile.test
9+
context: .
10+
dockerfile: ./Dockerfile.test
1111
command: 'npm test'
1212
links:
1313
- redis
1414
redis:
15-
image: redis:3.0-alpine
15+
image: redis:6.0-alpine

0 commit comments

Comments
 (0)