Skip to content

Commit

Permalink
🚚 Abstract JovoCli class, pass instance to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenaeg committed Apr 30, 2021
1 parent a80a108 commit 03a5d28
Show file tree
Hide file tree
Showing 33 changed files with 1,080 additions and 491 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ module.exports = {
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
ignorePatterns: ['**/bin/**/*'],
rules: {
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
' @typescript-eslint/no-inferrable-types': 'off',
'no-console': 'warn',
},
};
6 changes: 3 additions & 3 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"version": "4.0.0-alpha.2",
"description": "",
"scripts": {
"prettier": "prettier -w -l src test",
"prettier": "prettier -w -l test",
"eslint": "eslint src test --fix --ext .ts",
"rimraf": "rimraf dist",
"test": "jest --runInBand"
},
"author": "jovotech",
"license": "Apache-2.0",
"dependencies": {
"@jovotech/framework": "^4.0.0-alpha.2",
"@jovotech/platform-alexa-tmp": "^4.0.0-alpha.1"
"@jovotech/framework": "^4.0.0-alpha.5",
"@jovotech/platform-alexa": "^4.0.0-alpha.5"
},
"devDependencies": {
"@types/jest": "^26.0.20",
Expand Down
2 changes: 1 addition & 1 deletion e2e/test/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { App, ComponentDeclaration, SessionData } from '@jovotech/framework';
import { Alexa, AlexaRequestJSON, Session } from '@jovotech/platform-alexa-tmp';
import { Alexa, AlexaRequestJSON, Session } from '@jovotech/platform-alexa';
import { inspect } from 'util';
import { ReusableComponent } from './components/ReusableComponent';
import { StandardComponent } from './components/StandardComponent';
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"author": "jovotech",
"license": "Apache-2.0",
"dependencies": {
"@jovotech/framework": "^4.0.0-alpha.2",
"@jovotech/platform-alexa-tmp": "^4.0.0-alpha.1"
"@jovotech/framework": "^4.0.0-alpha.5",
"@jovotech/platform-alexa": "^4.0.0-alpha.5"
},
"devDependencies": {
"@types/express": "^4.17.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/helloworld/src/app.dev.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { app } from './app';
import './server.express';
import { Alexa } from '@jovotech/platform-alexa-tmp';
import { Alexa } from '@jovotech/platform-alexa';
app.use(new Alexa());

export { app };
2 changes: 1 addition & 1 deletion examples/typescript/helloworld/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App, ComponentDeclaration } from '@jovotech/framework';

import { StandardComponent } from './StandardComponent';
import { Alexa } from '@jovotech/platform-alexa-tmp';
import { Alexa } from '@jovotech/platform-alexa';

const app = new App();
app.use(new Alexa());
Expand Down
12 changes: 6 additions & 6 deletions examples/typescript/mvp-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"eslint": "eslint src test --fix --ext .ts"
},
"dependencies": {
"@jovotech/db-filedb": "^4.0.0-alpha.2",
"@jovotech/framework": "^4.0.0-alpha.2",
"@jovotech/platform-alexa-tmp": "^4.0.0-alpha.1",
"@jovotech/plugin-debugger": "^4.0.0-alpha.2",
"@jovotech/server-express": "^4.0.0-alpha.2",
"@jovotech/server-lambda": "^4.0.0-alpha.2"
"@jovotech/db-filedb": "^4.0.0-alpha.5",
"@jovotech/framework": "^4.0.0-alpha.5",
"@jovotech/platform-alexa": "^4.0.0-alpha.5",
"@jovotech/plugin-debugger": "^4.0.0-alpha.5",
"@jovotech/server-express": "^4.0.0-alpha.5",
"@jovotech/server-lambda": "^4.0.0-alpha.5"
},
"devDependencies": {
"@types/express": "^4.17.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/mvp-v2/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { App } from '@jovotech/framework';
import { Alexa } from '@jovotech/platform-alexa-tmp';
import { Alexa } from '@jovotech/platform-alexa';

import { MainComponent } from './components/MainComponent/MainComponent';
import { LoveHatePizzaComponent } from './components/MainComponent/LoveHatePizzaComponent';
Expand Down
8 changes: 4 additions & 4 deletions examples/typescript/mvp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"eslint": "eslint src test --fix --ext .ts"
},
"dependencies": {
"@jovotech/db-filedb": "^4.0.0-alpha.2",
"@jovotech/framework": "^4.0.0-alpha.2",
"@jovotech/platform-alexa-tmp": "^4.0.0-alpha.1",
"@jovotech/server-express": "^4.0.0-alpha.2"
"@jovotech/db-filedb": "^4.0.0-alpha.5",
"@jovotech/framework": "^4.0.0-alpha.5",
"@jovotech/platform-alexa": "^4.0.0-alpha.5",
"@jovotech/server-express": "^4.0.0-alpha.5"
},
"devDependencies": {
"@types/express": "^4.17.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/mvp/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { App} from '@jovotech/framework';
import { Alexa } from '@jovotech/platform-alexa-tmp';
import { Alexa } from '@jovotech/platform-alexa';

import { MainComponent } from './components/MainComponent/MainComponent';

Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "Apache-2.0",
"dependencies": {
"@jovotech/framework": "^4.0.0-alpha.2",
"@jovotech/platform-alexa-tmp": "^4.0.0-alpha.1"
"@jovotech/platform-alexa": "^4.0.0-alpha.5"
},
"devDependencies": {
"@types/jest": "^26.0.20",
Expand Down
Loading

0 comments on commit 03a5d28

Please sign in to comment.