Skip to content

Commit

Permalink
Conversion to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
thorpelawrence committed Sep 1, 2018
1 parent 50085d1 commit a0d1cbb
Show file tree
Hide file tree
Showing 16 changed files with 1,791 additions and 1,130 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# VSCode config
.vscode

# TypeScript output
dist/
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: node connect.js
web: yarn start
6 changes: 0 additions & 6 deletions app.json

This file was deleted.

32 changes: 0 additions & 32 deletions device-helper.js

This file was deleted.

29 changes: 23 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,27 @@
"request-promise-native": "^1.0.5"
},
"license": "MIT",
"main": "connect.js",
"main": "src/connect.js",
"devDependencies": {
"@types/express": "^4.16.0",
"@types/i18n": "^0.8.3",
"@types/jest": "^23.3.1",
"@types/node": "^10.9.3",
"@types/node-cache": "^4.1.1",
"@types/request-promise-native": "^1.0.15",
"chalk": "^2.4.1",
"coveralls": "^3.0.0",
"jest": "^22.1.4",
"nock": "^9.1.6",
"p-event": "^2.0.0"
"p-event": "^2.0.0",
"ts-jest": "^23.1.4",
"typescript": "^3.0.1"
},
"scripts": {
"start": "node connect.js",
"skill": "node skill/skill.js",
"utterances-i18n": "node skill/utterances-i18n",
"start": "yarn build && node dist/connect.js",
"build": "tsc",
"skill": "yarn build && node skill/skill.js",
"i18n": "node skill/skill-i18n.js",
"test": "jest",
"test-coverage": "jest --coverage"
},
Expand All @@ -37,7 +46,15 @@
"jest": {
"coverageReporters": [
"lcovonly"
]
],
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testEnvironment": "node"
},
"keywords": [
"amazon",
Expand Down
16 changes: 0 additions & 16 deletions request-helper.js

This file was deleted.

2 changes: 1 addition & 1 deletion skill/skill-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ for (var locale in locales) {
});
}
console.log(JSON.stringify(skillbuilder, null, 2));
console.log();
console.log(chalk.magenta("=".repeat(50)));
}
3 changes: 2 additions & 1 deletion skill/skill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const connect = require('../connect');
const connect = require('../dist/connect');
const chalk = require('chalk');

console.log(chalk.bgRed("SKILLBUILDER JSON:"));
console.log(connect.schemas.skillBuilder());
console.log(chalk.magenta("=".repeat(50)));
Loading

0 comments on commit a0d1cbb

Please sign in to comment.