Skip to content

Commit c40e431

Browse files
authored
feat: TypeScript migration (#253)
* chore: remove flow types * chore: clean the repository * chore: add eslint and prettier configs * chore: fix eslint rules * build: add node and web builds * test: fix tests and ci * chore: update CODEOWNERS * chore: remove airbnb config * chore: fix pre-publish * chore: try to fix Travis web test in karma * chore: separate web test from node version * chore: bump travis node version
1 parent 08b81e9 commit c40e431

File tree

385 files changed

+33936
-63193
lines changed

Some content is hidden

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

385 files changed

+33936
-63193
lines changed

.babelrc

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

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint', 'mocha', 'prettier'],
5+
extends: ['plugin:@typescript-eslint/recommended'],
6+
rules: {
7+
'prettier/prettier': 'error',
8+
'no-underscore-dangle': 0,
9+
'no-param-reassign': 0,
10+
'max-len': ['error', { code: 120, tabWidth: 2 }],
11+
'no-restricted-globals': 0,
12+
'consistent-return': 0,
13+
'object-curly-newline': 0,
14+
'no-restricted-exports': 0,
15+
'operator-linebreak': 0,
16+
'implicit-arrow-linebreak': 0,
17+
'class-methods-use-this': 0,
18+
'no-prototype-builtins': 1,
19+
'prefer-destructuring': 0,
20+
},
21+
};

.eslintrc.yml

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

.flowconfig

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

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
* @are @raipubnub @mohitpubnub @parfeon
2-
.github/* @parfeon @are @raipubnub @mohitpubnub
1+
* @are @phairow @mohitpubnub @parfeon
2+
.github/* @parfeon @are @phairow @mohitpubnub
33
README.md @techwritermat @kazydek

.github/workflows/release/pre-github-release-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ set -e
44
# Check whether previous builds already generated artifacts or not.
55
if ! [[ -d "$(pwd)/upload" ]]; then
66
npm ci
7-
gulp compile
7+
npm run build
88
fi

.github/workflows/release/pre-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
set -e
33

44
npm ci
5-
gulp compile
5+
npm run build

.github/workflows/release/pre-s3-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ set -e
44
# Check whether previous builds already generated artifacts or not.
55
if ! [[ -d "$(pwd)/upload" ]]; then
66
npm ci
7-
gulp compile
7+
npm run build
88
fi

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"printWidth": 120,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

.travis.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,28 @@ addons:
1414
- g++-4.8
1515

1616
stages:
17-
- name: "test"
17+
- name: 'test'
1818
if: |
1919
type != pull_request
20-
- name: "test pr branch"
20+
- name: 'test pr branch'
2121
if: |
2222
type == pull_request
2323
2424
jobs:
2525
include:
26-
- stage: "test"
27-
name: 'NodeJS 8.10.0'
28-
node_js: '8.10.0'
29-
script: gulp test
30-
- name: 'NodeJS 10.13.0'
31-
node_js: '10.13.0'
32-
script: gulp test
3326
- name: 'NodeJS 12'
3427
node_js: '12'
35-
script: gulp test
36-
- stage: "test pr branch"
37-
name: 'NodeJS 12'
38-
node_js: '12'
39-
script: gulp test
28+
script: npm run ci:node
29+
- name: 'NodeJS 14'
30+
node_js: '14'
31+
script: npm run ci:node
32+
- name: 'NodeJS 16'
33+
node_js: '16'
34+
script: npm run ci:node
35+
- name: 'Web'
36+
node_js: '16'
37+
script: npm run ci:web
38+
- stage: 'test pr branch'
39+
name: 'NodeJS 16'
40+
node_js: '16'
41+
script: npm run ci

bower.json

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

0 commit comments

Comments
 (0)