Skip to content

Commit

Permalink
build: 🔥 simplify build process
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 14, 2024
1 parent d26b6b7 commit fdef8dd
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 248 deletions.
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 @@
/lib
/examples/commonjs/satellite-js-migration.js
/examples/mjs/satellite-js-migration.mjs
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.idea
.vscode/settings.json
coverage
/commonjs/
/lib/
dist
node_modules
*.log

Expand Down
5 changes: 1 addition & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# Directories
.github
.vscode
coverage
examples
node_modules
scripts
src/*
test

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

5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"proseWrap": "always",
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "lf",
"embeddedLanguageFormatting": "off"
"embeddedLanguageFormatting": "off",
"plugins": [
"prettier-plugin-organize-imports"
]
}
10 changes: 3 additions & 7 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@

Run the examples using tsx as below:

## Typescript
## TypeScript

npx tsx ./examples/typescript/satellite-js-migration.ts

## ES6 Module
## JavaScript

npx tsx ./examples/es6/satellite-js-migration.mjs

## CommonJs

node ./examples/commonjs/satellite-js-migration.cjs
npx tsx ./examples/javascript/satellite-js-migration.mjs
120 changes: 0 additions & 120 deletions examples/commonjs/satellite-js-migration.cjs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable multiline-comment-style */
/* eslint-disable no-console */

import { calcGmst, DEG2RAD, GroundPosition, Satellite, Sgp4 } from '../../lib/index.js';
import { calcGmst, DEG2RAD, GroundPosition, Satellite, Sgp4 } from '../../dist/index.js';

// Example Date
const exampleDate = new Date(1705109326817);
Expand Down
Loading

0 comments on commit fdef8dd

Please sign in to comment.