Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
feat: Rewrite with TypeScript
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The default export has been removed and been replaced by a named export.
  • Loading branch information
nprail committed Oct 28, 2019
1 parent 2c8c1f5 commit 362bbe9
Show file tree
Hide file tree
Showing 13 changed files with 2,026 additions and 7,257 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

35 changes: 27 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

# Created by https://www.gitignore.io/api/node,code
# Edit at https://www.gitignore.io/?templates=node,code

### Code ###
# Visual Studio Code - https://code.visualstudio.com/
.settings/
.vscode/
tsconfig.json
jsconfig.json
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### Node ###
# Logs
Expand All @@ -15,6 +16,10 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
Expand All @@ -27,11 +32,12 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
Expand All @@ -50,6 +56,9 @@ jspm_packages/
# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

Expand All @@ -67,6 +76,7 @@ typings/

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand All @@ -77,13 +87,22 @@ typings/
# nuxt.js build output
.nuxt

# react / gatsby
public/

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# End of https://www.gitignore.io/api/node,code

out
docs/
dist/
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ npm install @filiosoft/fly
### Use

```javascript
const Fly = require("@filiosoft/fly");
const { Fly } = require("@filiosoft/fly");

const fly = new Fly("your-access-token");

const hostnames = await fly.getHostnames('name-of-site')
```

You can find the full docs [here](https://oss.eventone.page/fly-api/Fly.html).
You can find the full docs [here](https://oss.eventone.page/fly-api/).

## License

Expand Down
3 changes: 3 additions & 0 deletions example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { Fly } = require('./dist/index')

const fly = new Fly()
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

134 changes: 0 additions & 134 deletions lib/flyApi.js

This file was deleted.

Loading

0 comments on commit 362bbe9

Please sign in to comment.