From 0f7618c82da9853d716f54a36e15a789c66fb65f Mon Sep 17 00:00:00 2001 From: Marc Rabat Date: Thu, 1 Oct 2020 10:16:44 +0200 Subject: [PATCH] chore(templates): add name and version to every template, remove entries blank spaces --- packages/botonic-cli/templates/blank/package.json | 2 ++ .../botonic-cli/templates/blank/webpack-entries/dev-entry.js | 5 ----- .../templates/blank/webpack-entries/node-entry.js | 4 ---- .../templates/blank/webpack-entries/webchat-entry.js | 1 - .../templates/blank/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/childs/package.json | 2 ++ .../templates/childs/webpack-entries/dev-entry.js | 5 ----- .../templates/childs/webpack-entries/node-entry.js | 4 ---- .../templates/childs/webpack-entries/webchat-entry.js | 1 - .../templates/childs/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/custom-webchat/package.json | 2 ++ .../templates/custom-webchat/webpack-entries/dev-entry.js | 5 ----- .../templates/custom-webchat/webpack-entries/node-entry.js | 4 ---- .../custom-webchat/webpack-entries/webchat-entry.js | 1 - .../custom-webchat/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/dynamic-carousel/package.json | 2 ++ .../templates/dynamic-carousel/webpack-entries/dev-entry.js | 5 ----- .../templates/dynamic-carousel/webpack-entries/node-entry.js | 4 ---- .../dynamic-carousel/webpack-entries/webchat-entry.js | 1 - .../dynamic-carousel/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/dynamodb/package.json | 2 ++ .../templates/dynamodb/webpack-entries/dev-entry.js | 5 ----- .../templates/dynamodb/webpack-entries/node-entry.js | 4 ---- .../templates/dynamodb/webpack-entries/webchat-entry.js | 1 - .../templates/dynamodb/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/handoff/package.json | 2 ++ .../templates/handoff/webpack-entries/dev-entry.js | 5 ----- .../templates/handoff/webpack-entries/node-entry.js | 4 ---- .../templates/handoff/webpack-entries/webchat-entry.js | 1 - .../templates/handoff/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/intent/package.json | 2 ++ .../templates/intent/webpack-entries/dev-entry.js | 5 ----- .../templates/intent/webpack-entries/node-entry.js | 4 ---- .../templates/intent/webpack-entries/webchat-entry.js | 1 - .../templates/intent/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/nlu/package.json | 2 ++ .../botonic-cli/templates/nlu/webpack-entries/dev-entry.js | 5 ----- .../botonic-cli/templates/nlu/webpack-entries/node-entry.js | 4 ---- .../templates/nlu/webpack-entries/webchat-entry.js | 1 - .../templates/nlu/webpack-entries/webviews-entry.js | 2 -- packages/botonic-cli/templates/tutorial/package.json | 2 ++ .../templates/tutorial/webpack-entries/dev-entry.js | 5 ----- .../templates/tutorial/webpack-entries/node-entry.js | 4 ---- .../templates/tutorial/webpack-entries/webchat-entry.js | 1 - .../templates/tutorial/webpack-entries/webviews-entry.js | 2 -- 45 files changed, 18 insertions(+), 108 deletions(-) diff --git a/packages/botonic-cli/templates/blank/package.json b/packages/botonic-cli/templates/blank/package.json index 00c665e24a..452a6b267b 100644 --- a/packages/botonic-cli/templates/blank/package.json +++ b/packages/botonic-cli/templates/blank/package.json @@ -1,4 +1,6 @@ { + "name": "blank", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/blank/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/blank/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/blank/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/blank/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/blank/webpack-entries/node-entry.js b/packages/botonic-cli/templates/blank/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/blank/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/blank/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/blank/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/blank/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/blank/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/blank/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/blank/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/blank/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/blank/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/blank/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/childs/package.json b/packages/botonic-cli/templates/childs/package.json index 00c665e24a..8d52bdd67d 100644 --- a/packages/botonic-cli/templates/childs/package.json +++ b/packages/botonic-cli/templates/childs/package.json @@ -1,4 +1,6 @@ { + "name": "childs", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/childs/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/childs/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/childs/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/childs/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/childs/webpack-entries/node-entry.js b/packages/botonic-cli/templates/childs/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/childs/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/childs/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/childs/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/childs/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/childs/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/childs/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/childs/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/childs/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/childs/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/childs/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/custom-webchat/package.json b/packages/botonic-cli/templates/custom-webchat/package.json index d1fed60cf9..3198379e1d 100644 --- a/packages/botonic-cli/templates/custom-webchat/package.json +++ b/packages/botonic-cli/templates/custom-webchat/package.json @@ -1,4 +1,6 @@ { + "name": "custom-webchat", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/custom-webchat/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/custom-webchat/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/custom-webchat/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/custom-webchat/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/custom-webchat/webpack-entries/node-entry.js b/packages/botonic-cli/templates/custom-webchat/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/custom-webchat/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/custom-webchat/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/custom-webchat/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/custom-webchat/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/custom-webchat/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/custom-webchat/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/custom-webchat/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/custom-webchat/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/custom-webchat/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/custom-webchat/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/dynamic-carousel/package.json b/packages/botonic-cli/templates/dynamic-carousel/package.json index 9003ce1a33..775730b6de 100644 --- a/packages/botonic-cli/templates/dynamic-carousel/package.json +++ b/packages/botonic-cli/templates/dynamic-carousel/package.json @@ -1,4 +1,6 @@ { + "name": "dynamic-carousel", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/node-entry.js b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/dynamic-carousel/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/dynamodb/package.json b/packages/botonic-cli/templates/dynamodb/package.json index 9cd35802c3..b3513318d5 100644 --- a/packages/botonic-cli/templates/dynamodb/package.json +++ b/packages/botonic-cli/templates/dynamodb/package.json @@ -1,4 +1,6 @@ { + "name": "dynamodb", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/dynamodb/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/dynamodb/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/dynamodb/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/dynamodb/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/dynamodb/webpack-entries/node-entry.js b/packages/botonic-cli/templates/dynamodb/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/dynamodb/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/dynamodb/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/dynamodb/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/dynamodb/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/dynamodb/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/dynamodb/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/dynamodb/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/dynamodb/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/dynamodb/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/dynamodb/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/handoff/package.json b/packages/botonic-cli/templates/handoff/package.json index 00c665e24a..f43848318f 100644 --- a/packages/botonic-cli/templates/handoff/package.json +++ b/packages/botonic-cli/templates/handoff/package.json @@ -1,4 +1,6 @@ { + "name": "handoff", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/handoff/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/handoff/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/handoff/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/handoff/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/handoff/webpack-entries/node-entry.js b/packages/botonic-cli/templates/handoff/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/handoff/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/handoff/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/handoff/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/handoff/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/handoff/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/handoff/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/handoff/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/handoff/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/handoff/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/handoff/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/intent/package.json b/packages/botonic-cli/templates/intent/package.json index f6f20bae44..e7b273af83 100644 --- a/packages/botonic-cli/templates/intent/package.json +++ b/packages/botonic-cli/templates/intent/package.json @@ -1,4 +1,6 @@ { + "name": "intent", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/intent/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/intent/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/intent/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/intent/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/intent/webpack-entries/node-entry.js b/packages/botonic-cli/templates/intent/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/intent/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/intent/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/intent/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/intent/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/intent/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/intent/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/intent/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/intent/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/intent/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/intent/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/nlu/package.json b/packages/botonic-cli/templates/nlu/package.json index 2ef6e26f1a..683daac69e 100644 --- a/packages/botonic-cli/templates/nlu/package.json +++ b/packages/botonic-cli/templates/nlu/package.json @@ -1,4 +1,6 @@ { + "name": "nlu", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/nlu/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/nlu/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/nlu/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/nlu/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/nlu/webpack-entries/node-entry.js b/packages/botonic-cli/templates/nlu/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/nlu/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/nlu/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/nlu/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/nlu/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/nlu/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/nlu/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/nlu/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/nlu/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/nlu/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/nlu/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales }) diff --git a/packages/botonic-cli/templates/tutorial/package.json b/packages/botonic-cli/templates/tutorial/package.json index 00c665e24a..b526982df2 100644 --- a/packages/botonic-cli/templates/tutorial/package.json +++ b/packages/botonic-cli/templates/tutorial/package.json @@ -1,4 +1,6 @@ { + "name": "tutorial", + "version": "1.0.0", "scripts": { "build": "webpack --env.target=all --mode=production", "start": "webpack-dev-server --env.target=dev --mode=development", diff --git a/packages/botonic-cli/templates/tutorial/webpack-entries/dev-entry.js b/packages/botonic-cli/templates/tutorial/webpack-entries/dev-entry.js index 24d04cbd1c..00aece8237 100644 --- a/packages/botonic-cli/templates/tutorial/webpack-entries/dev-entry.js +++ b/packages/botonic-cli/templates/tutorial/webpack-entries/dev-entry.js @@ -1,13 +1,8 @@ import { DevApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { webchat } from '../src/webchat' - import { config } from '../src' export const app = new DevApp({ diff --git a/packages/botonic-cli/templates/tutorial/webpack-entries/node-entry.js b/packages/botonic-cli/templates/tutorial/webpack-entries/node-entry.js index f8a4d879ee..cc3df2f809 100644 --- a/packages/botonic-cli/templates/tutorial/webpack-entries/node-entry.js +++ b/packages/botonic-cli/templates/tutorial/webpack-entries/node-entry.js @@ -1,11 +1,7 @@ import { NodeApp } from '@botonic/react' - import { routes } from '../src/routes' - import { locales } from '../src/locales' - import { plugins } from '../src/plugins' - import { config } from '../src' export const app = new NodeApp({ routes, locales, plugins, ...config }) diff --git a/packages/botonic-cli/templates/tutorial/webpack-entries/webchat-entry.js b/packages/botonic-cli/templates/tutorial/webpack-entries/webchat-entry.js index 4bd967e0c4..03c0e4485f 100644 --- a/packages/botonic-cli/templates/tutorial/webpack-entries/webchat-entry.js +++ b/packages/botonic-cli/templates/tutorial/webpack-entries/webchat-entry.js @@ -1,5 +1,4 @@ import { WebchatApp } from '@botonic/react' - import { webchat } from '../src/webchat' export const app = new WebchatApp(webchat) diff --git a/packages/botonic-cli/templates/tutorial/webpack-entries/webviews-entry.js b/packages/botonic-cli/templates/tutorial/webpack-entries/webviews-entry.js index 646e36795e..f9052ba84b 100644 --- a/packages/botonic-cli/templates/tutorial/webpack-entries/webviews-entry.js +++ b/packages/botonic-cli/templates/tutorial/webpack-entries/webviews-entry.js @@ -1,7 +1,5 @@ import { WebviewApp } from '@botonic/react' - import { webviews } from '../src/webviews' - import { locales } from '../src/locales' export const app = new WebviewApp({ webviews, locales })