Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #23

Merged
merged 32 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
90d0d2e
feat: :sparkles: add fov functions to sensor
thkruz Aug 23, 2022
cbfd7e4
1.7.0
thkruz Aug 23, 2022
46ffa20
feat: :sparkles: add getDayOfYear functionality
thkruz Aug 24, 2022
5cebc6a
1.8.0
thkruz Aug 24, 2022
d69200f
fix: :ambulance: fix radians vs degrees in sensor.ts
thkruz Aug 24, 2022
c7a1344
1.8.1
thkruz Aug 24, 2022
475df09
feat: :sparkles: add new functions to the sat object
thkruz Aug 28, 2022
48cb0de
fix: :label: mark parameters optional per @weedgrease suggestion
thkruz Mar 5, 2023
a0ce1d5
refactor: :lock: update dependencies
thkruz Mar 5, 2023
097e50b
refactor: :rotating_light: fix linter error on enum
thkruz Mar 5, 2023
a9917c3
fix: :bug: fix rng vs range usage
thkruz Mar 5, 2023
ff98aa0
fix: :label: add strict typing for units
thkruz May 16, 2023
a372498
refactor: :rotating_light: hide wasm work
thkruz May 16, 2023
d790d63
fix: :label: fix incorrect units
thkruz May 16, 2023
f028e5e
build: :construction_worker: update babel config
thkruz Jul 23, 2023
039b195
test: :construction_worker: update jest and ts configs
thkruz Jul 23, 2023
b90e585
chore: :rotating_light: update eslint config
thkruz Jul 23, 2023
6a816c9
chore: :art: update prettier config
thkruz Jul 23, 2023
a4efe23
build: :package: update package scripts and dependencies
thkruz Jul 23, 2023
1d034da
feat: :hammer: add dev script for opening lcov
thkruz Jul 23, 2023
9c5a87d
refactor: :fire: remove assemblyscript references
thkruz Jul 23, 2023
4b14b64
refactor: :recycle: refactor with better typing and _ suffix for priv…
thkruz Jul 23, 2023
2bef00d
test: :white_check_mark: add more testing to sensor
thkruz Jul 23, 2023
c836753
feat: :sparkles: add transforms for radar coordinate systems
thkruz Jul 23, 2023
a517a24
docs: :label: expand documentation of types
thkruz Jul 23, 2023
2c3a843
feat: :label: use generics
thkruz Sep 6, 2023
0f4f74c
refactor: :green_heart: improve build
thkruz Sep 6, 2023
7e30df4
refactor: :label: improved type checking
thkruz Sep 6, 2023
de70bda
refactor: :recycle: reduce complexity
thkruz Sep 6, 2023
1e841de
refactor: :label: update return type
thkruz Sep 6, 2023
96792e9
build: :bug: fix jest dependencies
thkruz Sep 6, 2023
27ed272
test: :white_check_mark: add more tests
thkruz Sep 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/dist
/lib
/src/sgp4/asc
10 changes: 5 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"id-denylist": "error",
"id-length": "off",
"id-match": "error",
"implicit-arrow-linebreak": "error",
"implicit-arrow-linebreak": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"indent-legacy": ["error", 2, { "SwitchCase": 1 }],
"init-declarations": "error",
Expand Down Expand Up @@ -156,7 +156,7 @@
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-shadow": "error",
"no-shadow": "off",
"no-spaced-func": "error",
"no-sync": "error",
"no-tabs": "error",
Expand All @@ -166,7 +166,7 @@
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "error",
"no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
Expand Down Expand Up @@ -219,7 +219,7 @@
"semi": "error",
"semi-spacing": "error",
"semi-style": "error",
"sort-imports": "error",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "error",
"space-before-blocks": "error",
Expand All @@ -234,7 +234,7 @@
"template-curly-spacing": "error",
"template-tag-spacing": "error",
"unicode-bom": "error",
"valid-jsdoc": "error",
"valid-jsdoc": "off",
"vars-on-top": "error",
"wrap-iife": "error",
"wrap-regex": "error",
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Load Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "17.x"
node-version: '17.x'

- name: Install all dependencies
run: npm install
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "17.x"
node-version: '17.x'

- name: Get cached modules
uses: actions/cache@v2
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: "17.x"
node-version: '17.x'

- name: Get cached modules
uses: actions/cache@v2
Expand Down
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "consistent",
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "never",
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "lf",
"embeddedLanguageFormatting": "off"
}
16 changes: 16 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// eslint-disable-next-line no-undef
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
esmodules: true,
},
// modules: "umd", -- THIS IS FOR DOING THE LIB VERSION OF KEEPTRACK
},
],
'@babel/preset-typescript',
],
compact: 'auto',
};
30 changes: 30 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const jestConfig = {
testEnvironment: 'node',
transform: {
'\\.(js|ts|jsx|tsx)$': 'babel-jest',
},
testPathIgnorePatterns: ['<rootDir>/dist', '<rootDir>/lib', '<rootDir>/scripts', '<rootDir>/coverage'],
transformIgnorePatterns: ['dist', 'scripts', 'coverage'],
testMatch: ['**/?(*.)+(spec|test).?(m)[jt]s?(x)'],
moduleFileExtensions: ['js', 'mjs', 'ts'],
// setupFiles: [''],
coverageDirectory: '<rootDir>/coverage',
moduleDirectories: ['node_modules', 'offline'],
modulePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/coverage/',
'<rootDir>/dist/',
'<rootDir>/scripts/',
'<rootDir>/test/sgp4/sgp4prop',
],
moduleNameMapper: {
'^@lib(.*)$': '<rootDir>/lib/$1',
'^@dist(.*)$': '<rootDir>/dist/$1',
'^@src(.*)$': '<rootDir>/src/$1',
'^@test(.*)$': '<rootDir>/test/$1',
},
coverageReporters: ['lcov', 'html', 'text'],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/lib/', '/scripts/', '/coverage/'],
};

export default jestConfig;
Loading
Loading