Skip to content

Commit 6fc483f

Browse files
committed
Merge pull request #127 from snowplow-incubator/release/0.2.0
Release/0.2.0
2 parents a1c89d6 + f029c19 commit 6fc483f

34 files changed

+3823
-2409
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# don't lint node_modules
2+
node_modules
3+
# don't lint build output
4+
dist

.eslintrc.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
project: './tsconfig.json',
6+
ecmaVersion: 6,
7+
ecmaFeatures: {
8+
impliedStrict: true,
9+
jsx: true,
10+
},
11+
sourceType: 'module',
12+
},
13+
ignorePatterns: ['.eslintrc.js', 'rollup.config.js'],
14+
env: {
15+
es6: true,
16+
node: true,
17+
},
18+
globals: {
19+
__DEV__: 'readonly',
20+
},
21+
plugins: [
22+
'@typescript-eslint',
23+
'promise'
24+
],
25+
extends: [
26+
'plugin:@typescript-eslint/recommended',
27+
'plugin:promise/recommended',
28+
'eslint:recommended'
29+
],
30+
rules: {
31+
// eslint
32+
'consistent-return': ['warn'],
33+
curly: ['warn', 'all'],
34+
indent: ['warn', 2],
35+
'linebreak-style': ['warn', 'unix'],
36+
'no-async-promise-executor': ['warn'],
37+
'no-await-in-loop': ['warn'],
38+
'no-constructor-return': ['warn'],
39+
'no-global-assign': ['warn'],
40+
'no-mixed-spaces-and-tabs': ['warn', 'smart-tabs'],
41+
'no-param-reassign': ['warn'],
42+
'no-promise-executor-return': ['warn'],
43+
'no-return-await': ['warn'],
44+
'no-var': ['warn'],
45+
'no-undef': ['warn'],
46+
'no-useless-return': ['warn'],
47+
quotes: ['warn', 'single'],
48+
'require-await': ['warn'],
49+
'require-atomic-updates': ['warn'],
50+
semi: ['warn', 'always'],
51+
// promise plugin
52+
'promise/always-return': ['warn'],
53+
'promise/avoid-new': ['warn'],
54+
'promise/catch-or-return': ['warn'],
55+
'promise/no-callback-in-promise': ['warn'],
56+
'promise/no-native': 'off',
57+
'promise/no-nesting': ['warn'],
58+
'promise/no-new-statics': ['warn'],
59+
'promise/no-promise-in-callback': ['warn'],
60+
'promise/no-return-in-finally': ['warn'],
61+
'promise/no-return-wrap': ['warn'],
62+
'promise/param-names': ['warn'],
63+
'promise/valid-params': ['warn'],
64+
// typescript
65+
'@typescript-eslint/explicit-function-return-type': ['warn'],
66+
'@typescript-eslint/no-floating-promises': ['warn', { ignoreVoid: false }],
67+
'@typescript-eslint/no-misused-promises': ['warn'],
68+
'@typescript-eslint/no-unnecessary-condition': ['warn'],
69+
'@typescript-eslint/no-unnecessary-type-constraint': ['warn'],
70+
'@typescript-eslint/no-unsafe-assignment': ['warn'],
71+
'@typescript-eslint/no-unsafe-return': ['warn'],
72+
'@typescript-eslint/no-unused-vars': ['warn'],
73+
'@typescript-eslint/no-use-before-define': ['warn'],
74+
'@typescript-eslint/strict-boolean-expressions': ['warn'],
75+
},
76+
};

.github/workflows/build.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,33 @@ on:
77
pull_request:
88

99
jobs:
10+
test:
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: 14
21+
22+
- name: Install node modules
23+
run: npm ci
24+
25+
- name: Compile TypeScript
26+
run: npm run compile
27+
28+
- name: Install node modules for DemoApp
29+
working-directory: DemoApp
30+
run: yarn install --frozen-lockfile
31+
32+
- name: Lint
33+
run: npm run lint
34+
1035
build_android:
36+
needs: ["test"]
1137
runs-on: ubuntu-20.04
1238

1339
steps:
@@ -22,7 +48,12 @@ jobs:
2248
with:
2349
node-version: 14
2450

25-
- name: Install node_modules
51+
- name: Build tracker dist files
52+
run: |
53+
npm ci
54+
npm run build
55+
56+
- name: Install node_modules in DemoApp
2657
working-directory: DemoApp
2758
run: |
2859
yarn install --frozen-lockfile
@@ -33,6 +64,7 @@ jobs:
3364
./gradlew assembleDebug
3465
3566
build_ios:
67+
needs: ["test"]
3668
runs-on: macos-10.15
3769

3870
steps:
@@ -44,7 +76,12 @@ jobs:
4476
with:
4577
node-version: 14
4678

47-
- name: Install node_modules
79+
- name: Build tracker dist files
80+
run: |
81+
npm ci
82+
npm run build
83+
84+
- name: Install node_modules in DemoApp
4885
working-directory: DemoApp
4986
run: |
5087
yarn install --frozen-lockfile

.github/workflows/deploy.yml

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ on:
66
- '*.*.*'
77

88
jobs:
9+
test:
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
21+
- name: Install node modules
22+
run: npm ci
23+
24+
- name: Compile TypeScript
25+
run: npm run compile
26+
27+
- name: Install node modules for DemoApp
28+
working-directory: DemoApp
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Lint
32+
run: npm run lint
33+
934
version_check:
1035
runs-on: ubuntu-20.04
1136
outputs:
@@ -33,7 +58,7 @@ jobs:
3358
exit 1
3459
3560
build_android:
36-
needs: ["version_check"]
61+
needs: ["test", "version_check"]
3762
runs-on: ubuntu-20.04
3863

3964
steps:
@@ -48,6 +73,11 @@ jobs:
4873
with:
4974
node-version: 14
5075

76+
- name: Build dist files
77+
run: |
78+
npm ci
79+
npm run build
80+
5181
- name: Install node_modules
5282
working-directory: DemoApp
5383
run: |
@@ -59,7 +89,7 @@ jobs:
5989
./gradlew assembleDebug
6090
6191
build_ios:
62-
needs: ["version_check"]
92+
needs: ["test", "version_check"]
6393
runs-on: macos-10.15
6494

6595
steps:
@@ -71,6 +101,11 @@ jobs:
71101
with:
72102
node-version: 14
73103

104+
- name: Build dist files
105+
run: |
106+
npm ci
107+
npm run build
108+
74109
- name: Install node_modules
75110
working-directory: DemoApp
76111
run: |
@@ -108,8 +143,10 @@ jobs:
108143
node-version: 14
109144
registry-url: 'https://registry.npmjs.org'
110145

111-
- name: Npm ci
112-
run: npm ci
146+
- name: Build dist files
147+
run: |
148+
npm ci
149+
npm run build
113150
114151
- name: NPM Publish
115152
run: |

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Distribution files
2+
dist
13

24
# OSX
35
#

CHANGELOG

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Version 0.2.0 (2021-06-21)
2+
--------------------------
3+
Bump dependencies in DemoApp (#114)
4+
Port to TypeScript (#115)
5+
Handle asyncronous issues internally (#78)
6+
Use ESLint (#126)
7+
Add homepage and repository in package.json (#125)
8+
Remove unused files (#124)
9+
110
Version 0.1.7 (2021-05-24)
211
--------------------------
312
Remove waitForEventStore method and upgrade Android tracker (#92)

0 commit comments

Comments
 (0)