Skip to content

Commit cbd200d

Browse files
authored
Refactor (#1)
* fix folder structure. add build command * remove mathjs, add jest * add jest, babel and test config * add prettier config * change extensions to ts * refactor package * use up to date jstat * refactor grubbs * add github actions * change workflow name
1 parent 262e34a commit cbd200d

File tree

19 files changed

+10068
-435
lines changed

19 files changed

+10068
-435
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on: push
2+
name: Run Tests
3+
jobs:
4+
run-tests:
5+
runs-on: ubuntu-latest
6+
container:
7+
image: node:14
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
with:
12+
fetch-depth: 1
13+
14+
- name: Run tests
15+
run: |
16+
npm ci
17+
npm run test

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"tabWidth": 2
4+
}

babel.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
["@babel/preset-env", { targets: { node: "current" } }],
4+
"@babel/preset-typescript",
5+
],
6+
};

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
preset: "ts-jest",
3+
testEnvironment: "node",
4+
testRegex: "tests/.*\\.ts$",
5+
};

labkar/analyte.js

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

labkar/index.js

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

mad/index.ts

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

0 commit comments

Comments
 (0)