Skip to content

Commit ea55695

Browse files
committed
build: now producing bundles via rollup
fix batoulapps#88
1 parent 8246e67 commit ea55695

17 files changed

+8467
-17094
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/lib
2+
/Shared

.eslintrc.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ module.exports = {
44
sourceType: 'module',
55
},
66

7-
extends: ['eslint:recommended', 'plugin:jest/recommended'],
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:jest/recommended',
10+
'plugin:jest/style',
11+
'plugin:prettier/recommended',
12+
],
813

914
env: {
1015
node: true,
@@ -21,4 +26,6 @@ module.exports = {
2126
'prefer-const': 'error',
2227
'object-shorthand': 'error',
2328
},
29+
30+
plugins: ['jest'],
2431
};

.github/workflows/node.js.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
node-version: [10.x, 12.x, 14.x, 15.x]
20+
node-version: [12.x, 14.x, 16.x, 17.x]
2121

2222
steps:
2323
- uses: actions/checkout@v2
@@ -28,9 +28,6 @@ jobs:
2828
- run: npm install -g npm@7 # update to npm 7
2929
- run: npm ci # equivalent of npm ci
3030
- run: npm run build
31-
- run: ./scripts/ci-build-check.sh
32-
env:
33-
CI: true
3431

3532
# testing job
3633
test:
@@ -39,7 +36,7 @@ jobs:
3936

4037
strategy:
4138
matrix:
42-
node-version: [10.x, 12.x, 14.x, 15.x]
39+
node-version: [12.x, 14.x, 16.x, 17.x]
4340
steps:
4441
- uses: actions/checkout@v2
4542
- name: Testing on node ${{ matrix.node-version }} 🧪
@@ -48,6 +45,7 @@ jobs:
4845
node-version: ${{ matrix.node-version }}
4946
- run: npm install -g npm@7 # update to npm 7
5047
- run: npm ci
48+
- run: npm run lint
5149
- run: npm test
5250

5351
# coverage uploading job
@@ -64,6 +62,7 @@ jobs:
6462
node-version: 14.x
6563
- run: npm install -g npm@7 # update to npm 7
6664
- run: npm ci
65+
- run: npm run lint
6766
- run: npm test
6867
- name: Upload coverage to Codecov
6968
uses: codecov/codecov-action@v1
@@ -88,7 +87,7 @@ jobs:
8887
- uses: actions/setup-node@v1
8988
with:
9089
# latest nodejs LTS
91-
node-version: 14.x
90+
node-version: 16.x
9291
- run: npm install -g npm@7 # update to npm 7
9392
- run: npm ci
9493
- name: Preparing a release for npm and github 🚀

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ coverage/
33
.idea
44
.vscode/
55
.env
6+
lib/

.npmignore

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
test/
1+
.github/
2+
.husky/
3+
coverage/
4+
scripts/
25
Shared/
6+
src/
7+
test/
38
coverage/
9+
*.config.js
10+
.nvmrc
11+
.eslint*
12+
.prettier*
13+
.releaserc.json
414
example.html
5-
.travis.yml
6-
jest.config.js
7-
babel.config.js
8-
webpack.config.js

.prettierignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
/Adhan.js
2-
/Adhan.js.map
1+
/lib
32
/Shared

0 commit comments

Comments
 (0)