Skip to content

Commit 267e767

Browse files
DaleHerringDale HerringNathan Lyle Black
authored
DEV-86 - translate coffeescript to typescript (#17) (#19)
* DEV-1 - Add Admin Automation category apis * DEV-86 - translate coffeescript to typescript * DEV86 - address pr comments, add content type helper, additonal testing * DEV86 - add yml file * DEV86 - gitlab yml edit * DEV86 - add done to all tests * DEV86 - add install types node yml * DEV86 - test file fix * DEV-86 - remove json.parse from test * DEV86 - specify node image version * DEV86 - remove test data from index.ts * DEV86 - add detectOpenHandles flag to yml * DEV86 - switch back to node:latest * DEV86 - add readme * Dev86 - ESLint + Prettier updates (#18) Wire up ESLint + Prettier * DEV86 - address pr comments * DEV86 - import URLSearchPArams * DEV86 - clean up merged tests * DEV86 - api calls added to readme * lint --fix * Fix remaining lint/TS errors * DEV86 - add test data * DEV86 - changelog file added * Add breaking section to changelog * lint --fix * DEV86 - increade pipe timeout * DEV86 - add timeout to jest test pipe call * Fix remaining lint/TS errors * DEV86 - switch pipe test * DEV86 - change timeouts * DEV86 - change timeout for real Co-authored-by: Dale Herring <dale.herring@ruralsourcing.com> Co-authored-by: Nathan Lyle Black <nblack@algorithmia.io> Co-authored-by: Dale Herring <dale.herring@ruralsourcing.com> Co-authored-by: Nathan Lyle Black <nblack@algorithmia.io>
1 parent 6447f1f commit 267e767

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+12890
-1683
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
max_line_length = 80

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
ecmaVersion: 2020,
5+
sourceType: 'module',
6+
},
7+
ignorePatterns: ['lib/*'],
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'prettier/@typescript-eslint',
11+
'plugin:prettier/recommended',
12+
],
13+
rules: {},
14+
};

.gitignore

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
1-
tmp/
1+
node_modules/
22

3-
# Logs
4-
logs
5-
*.log
6-
7-
# Runtime data
8-
pids
9-
*.pid
10-
*.seed
11-
12-
# Directory for instrumented libs generated by jscoverage/JSCover
13-
lib-cov
14-
15-
# Coverage directory used by tools like istanbul
16-
coverage
17-
18-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19-
.grunt
20-
21-
# Compiled binary addons (http://nodejs.org/api/addons.html)
22-
build/Release
23-
24-
# Dependency directory
25-
# Commenting this out is preferred by some people, see
26-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
27-
node_modules
28-
29-
# Users Environment Variables
30-
.lock-wscript
3+
/lib

.gitlab-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
image: node:latest
2+
stages:
3+
- test
4+
5+
variables:
6+
PROJECT_NAME: algorithmia
7+
DOCKER_HOST: tcp://docker:2375/
8+
DOCKER_DRIVER: overlay2
9+
RUNNING_ON_BUILD_SERVER: "true"
10+
11+
test:
12+
stage: test
13+
script:
14+
- npm install typescript -g && npm install @types/node
15+
- npx tsc
16+
- if [ -z $ALGORITHMIA_DEFAULT_API_KEY ]; then echo "Algorithmia API key not defined"; exit 1; fi
17+
- npm test --detectOpenHandles

.npmignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
arrowParens: 'always',
3+
semi: true,
4+
bracketSpacing: true,
5+
trailingComma: 'es5',
6+
singleQuote: true,
7+
printWidth: 80,
8+
tabWidth: 2,
9+
};

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
{
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll.eslint": true
5+
},
6+
"editor.formatOnSave": false,
7+
"eslint.alwaysShowStatus": true,
8+
"eslint.packageManager": "yarn",
9+
"eslint.workingDirectories": [
10+
{ "pattern": "." },
11+
{ "pattern": "src/*" },
12+
],
13+
"eslint.validate": [
14+
"javascript",
15+
"typescript",
16+
],
17+
"typescript.tsdk": "node_modules/typescript/lib"
18+
}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changlog
2+
3+
## v1.0.0 - 01/08/2021
4+
5+
-----------------
6+
7+
### Move from Coffee to Typescript
8+
9+
-----------------
10+
11+
### Breaking
12+
13+
- API methods are now promise based instead of callback based
14+
15+
### Additional Changes
16+
17+
- Translate entire repo to TypeScript
18+
- Readme updated
19+
- Algorithm DTO added
20+
- Algorithm API endpoints added
21+
- Tests added

LICENSE

Lines changed: 0 additions & 22 deletions
This file was deleted.

NahDawg.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nah dawg

0 commit comments

Comments
 (0)