Skip to content

Commit

Permalink
Merge pull request #1 from commenthol/master
Browse files Browse the repository at this point in the history
pull from origin
  • Loading branch information
mdmunir authored Jun 26, 2020
2 parents 0c76462 + 083288a commit 98a2d8c
Show file tree
Hide file tree
Showing 201 changed files with 40,235 additions and 53,865 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ coverage/
data/
lib/
tmp/
es/
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ coverage/
output/
attic/
tmp/
lib/
es/
*.log
*.tgz
.eslintcache
.nyc_output
yarn.lock
.DS_Store
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ tmp/
*.tgz
.*
Makefile
package-lock.json
yarn.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ sudo: false
language: node_js

node_js:
- 4
- 6
- 12
- 14
- node

install:
- npm install

before_script:
- npm run build

script:
- npm test
- SLOWTESTS=1 npm test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: build

test: v0.12 v4. v6. v7.
test: v12. v14.

v%:
n $@ \
Expand All @@ -18,7 +18,7 @@ build: clean lib/

lib/: src/*.js
npm run lint \
&& npm run transpile \
&& npm run build \
&& npm run test

clean:
Expand Down
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,21 @@ ES6 Syntax
// instead of
import {base} from 'astronomia'
// use
import base from 'astronomia/lib/base'
import base from 'astronomia/src/base'
```

To access dedicated VSOP87 data sets use e.g.

```js
const {vsop87Bvenus} = require('astronomia').data
// or
const vsop87Bvenus = require('astronomia/data/vsop87Bvenus')
```

## Migration from v1

Please take a look at [./docs/migrate_v1.md](./docs/migrate_v1.md)

## Running tests

npm test
Expand All @@ -141,14 +153,9 @@ See [LICENSE][] for more info.

## References

<!-- !ref -->

* [LICENSE][LICENSE]
* [meeus][meeus]
* [VSOP87 dataset][VSOP87 dataset]

<!-- ref! -->
* VSOP87 dataset ftp://cdsarc.u-strasbg.fr/pub/cats/VI/81

[meeus]: https://github.com/soniakeys/meeus.git
[LICENSE]: ./LICENSE
[VSOP87 dataset]: ftp://cdsarc.u-strasbg.fr/pub/cats/VI/81
12 changes: 6 additions & 6 deletions data/deltat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions data/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
var deltat = require('./deltat.js')
var earth = require('./vsop87Bearth.js')
var jupiter = require('./vsop87Bjupiter.js')
var mars = require('./vsop87Bmars.js')
var mercury = require('./vsop87Bmercury.js')
var neptune = require('./vsop87Bneptune.js')
var saturn = require('./vsop87Bsaturn.js')
var uranus = require('./vsop87Buranus.js')
var venus = require('./vsop87Bvenus.js')

module.exports = {
deltat: deltat,
earth: earth,
jupiter: jupiter,
mars: mars,
mercury: mercury,
neptune: neptune,
saturn: saturn,
uranus: uranus,
venus: venus,
vsop87Bearth: earth,
vsop87Bjupiter: jupiter,
vsop87Bmars: mars,
vsop87Bmercury: mercury,
vsop87Bneptune: neptune,
vsop87Bsaturn: saturn,
vsop87Buranus: uranus,
vsop87Bvenus: venus,
}
Loading

0 comments on commit 98a2d8c

Please sign in to comment.