Skip to content

Commit

Permalink
feat: ✨ integrate ootk-core v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 17, 2024
1 parent ae37922 commit 101eeb6
Show file tree
Hide file tree
Showing 95 changed files with 3,905 additions and 2,860 deletions.
8 changes: 8 additions & 0 deletions .auto-changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"output": "CHANGELOG.md",
"template": "changelog.hbs",
"package": true,
"hideCredit": true,
"tagPrefix": "v",
"commitLimit": false
}
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
/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 @@ -5,13 +5,13 @@
"node": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jsdoc/recommended-typescript-error"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "jsdoc"],
"rules": {
"accessor-pairs": "error",
"array-bracket-newline": "error",
Expand Down Expand Up @@ -108,7 +108,7 @@
"no-extra-label": "error",
"no-extra-parens": "off",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-coercion": "off",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-inline-comments": "off",
Expand Down Expand Up @@ -163,7 +163,7 @@
"no-template-curly-in-string": "error",
"no-ternary": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "off",
Expand All @@ -182,7 +182,7 @@
"no-useless-return": "error",
"no-var": "error",
"no-void": "error",
"no-warning-comments": "error",
"no-warning-comments": "warn",
"no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": "error",
Expand Down
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
.idea
.vscode
.vscode/settings.json
coverage
lib
commonjs
dist
node_modules
*.log

test/performance
test/satellite/transform*
test/sgp4/sgp4prop

**/**.out
14 changes: 6 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
# Directories
.github
.vscode
coverage
examples
node_modules
scripts
src/*
test

# Files
.editorconfig
.auto-changelog
.eslintignore
.eslintrc
.eslintrc.json
.gitattributes
.gitignore
.npmignore
.prettierrc
babel.config.js
codecov.yml
jest.config.js
babel.config.cjs
changelog.hbs
jest.config.ts
package-lock.json
sandbox.html
tsconfig.*

17 changes: 0 additions & 17 deletions .prettierrc

This file was deleted.

77 changes: 77 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"command": "npm run build",
"type": "shell",
"args": [],
"isBackground": true,
"problemMatcher": [],
"icon": {
"id": "symbol-method",
"color": "terminal.ansiBlue"
}
},
{
"label": "Clean Dist Folder",
"command": "npm run clean",
"type": "shell",
"args": [],
"isBackground": true,
"problemMatcher": [],
"icon": {
"id": "trash",
"color": "terminal.ansiYellow"
}
},
{
"label": "Test for Coverage",
"command": "npm run test:coverage",
"type": "shell",
"args": [],
"isBackground": true,
"problemMatcher": [],
"icon": {
"id": "go-to-file",
"color": "terminal.ansiGreen"
}
},
{
"label": "Open Coverage in Brave",
"type": "process",
"command": "",
"windows": {
"command": "C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe",
"args": ["${workspaceFolder}/coverage/lcov-report/index.html"]
},
"icon": {
"id": "browser",
"color": "terminal.ansiCyan"
},
"presentation": {
"echo": false,
"reveal": "never",
"focus": false,
"panel": "new",
"showReuseMessage": false,
"clear": true,
"close": true
}
}
],
"extensions": {
"recommendations": [
"prettier.prettier-vscode",
"dbaeumer.vscode-eslint",
"steoates.autoimport",
"vivaxy.vscode-conventional-commits",
"usernamehw.errorlens",
"usernamehw.remove-empty-lines",
"aljazsim.tsco"
]
},
"settings": {
"typescript.tsdk": "node_modules/typescript/lib"
}
}
1 change: 0 additions & 1 deletion babel.config.js → babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line no-undef
module.exports = {
presets: [
[
Expand Down
33 changes: 33 additions & 0 deletions changelog.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
### Changelog

This is an automatic changelog that automatically records all changes made to the project. Generated from Git commit
messages, it details updates like bug fixes and new features, providing a clear history of the project's development.

{{#each releases}}
{{#if href}}
###{{#unless major}}#{{/unless}} [{{title}}]({{href}})
{{else}}
#### {{title}}
{{/if}}

{{#if tag}}
{{#each commits}}
{{#if @first}}> {{niceDate}} {{/if}}
{{/each}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#each merges}}
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{message}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{#each fixes}}
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{commit.subject}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{#each commits}}
- {{#if breaking}}**Breaking change:** {{/if}}{{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
{{/each}}

{{/each}}
24 changes: 5 additions & 19 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,14 @@ const jestConfig = {
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)'],
testMatch: ['**/test/**/?(*.)+(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',
},
moduleDirectories: ['node_modules'],
modulePathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/test/sgp4/sgp4prop'],
coverageReporters: ['lcov', 'html', 'text'],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/lib/', '/scripts/', '/coverage/'],
coveragePathIgnorePatterns: ['/node_modules/', '/dist/', '/lib/', '/commonjs/', '/test/', '/scripts/', '/coverage/'],
globalSetup: '<rootDir>/test/lib/globalSetup.js',
};

export default jestConfig;
Loading

0 comments on commit 101eeb6

Please sign in to comment.