@newt-app/templates 0.18.5 → 0.18.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10080,9 +10080,7 @@ var api_tsconfig_default = {
|
|
|
10080
10080
|
var api_index_default = {
|
|
10081
10081
|
filename: "apps/api/src/index.ts",
|
|
10082
10082
|
template: `export { AppModule } from './app.module';
|
|
10083
|
-
export { AppService } from './app.service'
|
|
10084
|
-
export { TodosService } from './todos/todos.service';
|
|
10085
|
-
export type { Todo } from './todos/todos.service';`
|
|
10083
|
+
export { AppService } from './app.service';`
|
|
10086
10084
|
};
|
|
10087
10085
|
|
|
10088
10086
|
// src/nest-di-only/templates/web-nest-context.ts
|
|
@@ -10270,6 +10268,7 @@ var app_controller_spec_default = {
|
|
|
10270
10268
|
filename: "apps/api/src/app.controller.spec.ts",
|
|
10271
10269
|
template: `import { Test, TestingModule } from '@nestjs/testing';
|
|
10272
10270
|
import { AppController } from './app.controller';
|
|
10271
|
+
import { AppService } from './app.service';
|
|
10273
10272
|
|
|
10274
10273
|
describe('AppController', () => {
|
|
10275
10274
|
let appController: AppController;
|
|
@@ -10277,6 +10276,7 @@ describe('AppController', () => {
|
|
|
10277
10276
|
beforeEach(async () => {
|
|
10278
10277
|
const app: TestingModule = await Test.createTestingModule({
|
|
10279
10278
|
controllers: [AppController],
|
|
10279
|
+
providers: [AppService],
|
|
10280
10280
|
}).compile();
|
|
10281
10281
|
|
|
10282
10282
|
appController = app.get<AppController>(AppController);
|
|
@@ -10506,6 +10506,15 @@ import { TodosModule } from './todos/todos.module';
|
|
|
10506
10506
|
export class AppModule {}`
|
|
10507
10507
|
};
|
|
10508
10508
|
|
|
10509
|
+
// src/todo-example/templates/api-index.ts
|
|
10510
|
+
var api_index_default2 = {
|
|
10511
|
+
filename: "apps/api/src/index.ts",
|
|
10512
|
+
template: `export { AppModule } from './app.module';
|
|
10513
|
+
export { AppService } from './app.service';
|
|
10514
|
+
export { TodosService } from './todos/todos.service';
|
|
10515
|
+
export type { Todo } from './todos/todos.service';`
|
|
10516
|
+
};
|
|
10517
|
+
|
|
10509
10518
|
// src/todo-example/templates/web-todos-route.ts
|
|
10510
10519
|
var web_todos_route_default = {
|
|
10511
10520
|
filename: "apps/web/app/api/todos/route.ts",
|
|
@@ -11037,7 +11046,7 @@ var todoExampleControllers = {
|
|
|
11037
11046
|
templates: [todos_controller_default, todos_module_controllers_default, app_module_controllers_default]
|
|
11038
11047
|
};
|
|
11039
11048
|
var todoExampleDi = {
|
|
11040
|
-
templates: [web_todos_route_default, web_todos_id_route_default, web_todos_toggle_route_default, app_module_di_default]
|
|
11049
|
+
templates: [web_todos_route_default, web_todos_id_route_default, web_todos_toggle_route_default, app_module_di_default, api_index_default2]
|
|
11041
11050
|
};
|
|
11042
11051
|
var todoExampleWeb = {
|
|
11043
11052
|
templates: [web_todo_list_default, web_page_default]
|