@tsed/cli 4.0.0-rc.2 → 4.0.0

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/readme.md CHANGED
@@ -1,4 +1,4 @@
1
- # @tsed/cli
1
+ # @tsed/cli
2
2
 
3
3
  <p style="text-align: center" align="center">
4
4
  <a href="https://tsed.io" target="_blank"><img src="https://tsed.io/tsed-og.png" width="200" alt="Ts.ED logo"/></a>
@@ -157,21 +157,21 @@ Cli.dispatch("init", {
157
157
  ```
158
158
 
159
159
  ## Contributors
160
+
160
161
  Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
161
162
 
162
163
  <a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
163
164
 
164
-
165
165
  ## Backers
166
166
 
167
167
  Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
168
168
 
169
169
  <a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/tiers/backer.svg?width=890"></a>
170
170
 
171
-
172
171
  ## Sponsors
173
172
 
174
- Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
173
+ Support this project by becoming a sponsor. Your logo will show up here with a link to your
174
+ website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
175
175
 
176
176
  ## License
177
177
 
@@ -179,8 +179,15 @@ The MIT License (MIT)
179
179
 
180
180
  Copyright (c) 2016 - 2018 Romain Lenzotti
181
181
 
182
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
182
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
183
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
184
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
185
+ persons to whom the Software is furnished to do so, subject to the following conditions:
183
186
 
184
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
187
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
188
+ Software.
185
189
 
186
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
190
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
191
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
192
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
193
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,29 +1,10 @@
1
1
  import {join} from "path";
2
2
  import {Configuration, Inject} from "@tsed/di";
3
3
  import {PlatformApplication} from "@tsed/common";
4
- {{#if express}}import "@tsed/platform-express"; // /!\ keep this import
5
- import bodyParser from "body-parser";
6
- import compress from "compression";
7
- import cookieParser from "cookie-parser";
8
- import methodOverride from "method-override";
9
- import cors from "cors";
10
- {{/if}}{{#if koa}}import "@tsed/platform-koa"; // /!\ keep this import
11
- import bodyParser from "koa-bodyparser";
12
- import compress from "koa-compress";
13
- import cors from "@koa/cors";
14
- import methodOverride from "koa-override";
15
- {{/if}}
16
- import "@tsed/ajv";{{#if swagger}}
17
- import "@tsed/swagger";{{/if}}{{#if mongoose}}
18
- import "@tsed/mongoose";{{/if}}{{#if oidc}}
19
- import "@tsed/oidc-provider";{{/if}}{{#if graphql}}
20
- import "@tsed/typegraphql";
21
- import "./datasources/index";
22
- import "./resolvers/index";{{/if}}
23
- import {config} from "./config/index";
24
- import * as rest from "./controllers/rest/index";{{#if swagger}}
25
- import * as pages from "./controllers/pages/index";{{/if}}{{#if oidc}}
26
- import {InteractionsController} from "./controllers/oidc/InteractionsController";{{/if}}
4
+ {{#forEach imports}}{{#if tsIngore}}
5
+ // @ts-ignore
6
+ {{/if}}import {{symbols}}{{#if symbols}} from {{/if}}"{{from}}";{{comment}}
7
+ {{/forEach}}
27
8
 
28
9
  @Configuration({
29
10
  ...config,
@@ -1,11 +1,5 @@
1
1
  {
2
- "directory": [
3
- "./src/controllers/rest"{{#or swagger oidc}},
4
- "./src/controllers/pages"{{/or}}{{#if oidc}},
5
- "./src/interactions"{{/if}}{{#if graphql}},
6
- "./src/datasources",
7
- "./src/resolvers"{{/if}}
8
- ],
2
+ "directory": {{{barrels}}},
9
3
  "exclude": [
10
4
  "__mock__",
11
5
  "__mocks__",
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "baseUrl": ".",
4
+ "sourceRoot": "src",
4
5
  "module": "commonjs",
5
6
  "target": "esnext",
6
7
  "sourceMap": true,
@@ -29,11 +30,8 @@
29
30
  "./node_modules/@types"
30
31
  ]
31
32
  },
32
- "exclude": [
33
- "node_modules",
34
- "./public",
35
- "dist",
36
- "test"
33
+ "include": [
34
+ "src"
37
35
  ],
38
36
  "linterOptions": {
39
37
  "exclude": []