Skip to content

Commit

Permalink
Merge pull request #10 from AlexanderGranhof/move-to-typescript
Browse files Browse the repository at this point in the history
Move to typescript
  • Loading branch information
AlexanderGranhof authored May 23, 2020
2 parents 0eaa6d0 + 7f90cfb commit cbfd15b
Show file tree
Hide file tree
Showing 16 changed files with 3,269 additions and 2,410 deletions.
98 changes: 62 additions & 36 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,37 +1,63 @@
{
"extends": [
"airbnb-base",
"plugin:mocha/recommended"
],
"plugins": [
"mocha"
],
"env": {
"mocha": true
},
"rules": {
"no-plusplus": "off",
"arrow-parens": "off",
"quotes": ["error", "double"],
"indent": ["error", 4],
"no-restricted-syntax": [ "off", "ForOfStatement" ]
},
"overrides": [{
"files": ["test/*.js"],
"rules": {
"func-names": "off",
"object-curly-newline": "off",
"max-len": "off",
"prefer-arrow-callback": 0,
"mocha/prefer-arrow-callback": 2
}
},
{
"files": ["lib/**/*.js"],
"rules": {
"consistent-return": "off",
"max-len": ["error", 150],
"no-ternary": "off"
}
}]
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"env": {
"mocha": true
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"max-classes-per-file": "off",
"lines-between-class-members": "off",
"class-methods-use-this": "off",
"import/extensions": "off",
"no-plusplus": "off",
"arrow-parens": "off",
"consistent-return": "off",
"max-len": "warn",
"@typescript-eslint/ban-ts-ignore": "off",
"quotes": [
"error",
"double"
],
"indent": [
"error",
4
],
"no-restricted-syntax": [
"off",
"ForOfStatement"
]
},
"overrides": [
{
"files": [
"test/*.ts"
],
"rules": {
"func-names": "off",
"object-curly-newline": "off",
"max-len": "off",
"prefer-arrow-callback": "off",
"mocha/prefer-arrow-callback": "off"
}
}
]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
lib
80 changes: 80 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Changelog

All notable changes to this project will be documented in this file.

## [3.0.5] - 2020-05-23

### Changed
- ported the repo from JS to TS

### Added
- type files for the drone and its methods
- this changelog

## [3.0.4] - 2020-03-15
### Changed
- fixed a link in the readme
- updated documentation on the options parameter


## [3.0.3] - 2020-03-15
### Added
- added missing z1 and z2 parameters of the curve command to tello-data.json

## [3.0.2] - 2020-03-15

### Added
- added missing rc command to tello-data.json

## [3.0.1] - 2019-11-27

### Changed
- added breaking changes note on readme


## [3.0.0] - 2019-11-27

### Added
- testing
- linting

### Changed
- removed delays from the tello-data.json file
- removed 'DELAYS' property from index.js
- removed 'bufferOffset' option
- changed the structure of the repository

## [2.1.0] - 2019-01-24

### Changed
- replaced large parts of code with native nodeJS modules (assert, events)
- changed drone function into a class
- removed 'sync' methods, package is now only async

## [2.0.1] - 2019-01-22

### Changed
- fixed bug where class did not send the 'command' command

## [2.0.0] - 2019-01-22

### Added
- added 'async' option to drone constructor
- added method syncSend()
- added method asyncSend()
- added method forceSendSync()
- added method forceSendAsync()

### Changed
- the send() method now handles sync or async depending on options

## [1.0.2] - 2019-01-07
Version patch, nothing changed

## [1.0.1] - 2019-01-07

### Changed
- Fixed spelling in method documentation

## [1.0.0] - 2019-01-07
First publish
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Im a student learning how to work and publish packages on NPM. This is a simple

This project is currently a work in progress, but as of 1.0.1 it can communicate with a tello drone with the sample code bellow.

## Changelog
You can see the latest changes in the **CHANGELOG.md** file in the root of this repository

## v3.0.0 Breaking changes
- Package is now only async.
- Removed offsetBuffer and async option from config.
Expand Down
152 changes: 0 additions & 152 deletions lib/classes.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/index.js

This file was deleted.

Loading

0 comments on commit cbfd15b

Please sign in to comment.