@nestjs/schematics 6.9.0 → 6.9.4
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 +1 -1
- package/dist/lib/application/application.factory.js +7 -4
- package/dist/lib/application/files/js/.babelrc +12 -0
- package/dist/lib/application/files/js/.prettierrc +4 -0
- package/dist/lib/application/files/ts/.eslintrc.js +24 -0
- package/dist/lib/application/files/ts/.prettierrc +4 -0
- package/dist/lib/application/files/ts/package.json +3 -3
- package/dist/lib/library/files/js/.babelrc +4 -0
- package/dist/lib/sub-app/files/.DS_Store +0 -0
- package/dist/lib/sub-app/files/js/.babelrc +4 -0
- package/dist/lib/sub-app/workspace/.DS_Store +0 -0
- package/dist/lib/sub-app/workspace/js/.babelrc +4 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications
|
|
5
|
+
<p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
|
|
6
6
|
<p align="center">
|
|
7
7
|
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/schematics.svg" alt="NPM Version" /></a>
|
|
8
8
|
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/schematics.svg" alt="Package License" /></a>
|
|
@@ -6,7 +6,9 @@ const path_1 = require("path");
|
|
|
6
6
|
const defaults_1 = require("../defaults");
|
|
7
7
|
function main(options) {
|
|
8
8
|
options.name = core_1.strings.dasherize(options.name);
|
|
9
|
-
const path = options.directory || options.
|
|
9
|
+
const path = !options.directory || options.directory === 'undefined'
|
|
10
|
+
? options.name
|
|
11
|
+
: options.directory;
|
|
10
12
|
options = transform(options);
|
|
11
13
|
return schematics_1.mergeWith(generate(options, path));
|
|
12
14
|
}
|
|
@@ -20,9 +22,10 @@ function transform(options) {
|
|
|
20
22
|
target.language = !!target.language ? target.language : defaults_1.DEFAULT_LANGUAGE;
|
|
21
23
|
target.name = resolvePackageName(target.name);
|
|
22
24
|
target.version = !!target.version ? target.version : defaults_1.DEFAULT_VERSION;
|
|
23
|
-
target.packageManager =
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
target.packageManager =
|
|
26
|
+
!target.packageManager || target.packageManager === 'undefined'
|
|
27
|
+
? 'npm'
|
|
28
|
+
: target.packageManager;
|
|
26
29
|
target.dependencies = !!target.dependencies ? target.dependencies : '';
|
|
27
30
|
target.devDependencies = !!target.devDependencies
|
|
28
31
|
? target.devDependencies
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
sourceType: 'module',
|
|
6
|
+
},
|
|
7
|
+
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
8
|
+
extends: [
|
|
9
|
+
'plugin:@typescript-eslint/eslint-recommended',
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'prettier',
|
|
12
|
+
'prettier/@typescript-eslint',
|
|
13
|
+
],
|
|
14
|
+
root: true,
|
|
15
|
+
env: {
|
|
16
|
+
node: true,
|
|
17
|
+
jest: true,
|
|
18
|
+
},
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"start:dev": "nest start --watch",
|
|
13
13
|
"start:debug": "nest start --debug --watch",
|
|
14
14
|
"start:prod": "node dist/main",
|
|
15
|
-
"lint": "eslint
|
|
15
|
+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
16
16
|
"test": "jest",
|
|
17
17
|
"test:watch": "jest --watch",
|
|
18
18
|
"test:cov": "jest --coverage",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@nestjs/schematics": "^6.8.1",
|
|
33
33
|
"@nestjs/testing": "^6.10.14",
|
|
34
34
|
"@types/express": "^4.17.2",
|
|
35
|
-
"@types/jest": "
|
|
35
|
+
"@types/jest": "25.1.2",
|
|
36
36
|
"@types/node": "^13.1.6",
|
|
37
37
|
"@types/supertest": "^2.0.8",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^2.12.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"jest": "^24.9.0",
|
|
44
44
|
"prettier": "^1.18.2",
|
|
45
45
|
"supertest": "^4.0.2",
|
|
46
|
-
"ts-jest": "
|
|
46
|
+
"ts-jest": "25.2.0",
|
|
47
47
|
"ts-loader": "^6.2.1",
|
|
48
48
|
"ts-node": "^8.6.0",
|
|
49
49
|
"tsconfig-paths": "^3.9.0",
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/schematics",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.4",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"build": "rm -rf dist && tsc --project tsconfig.lib.json",
|
|
15
15
|
"clean": "gulp clean:src",
|
|
16
16
|
"copy:collection": "cpx src/collection.json dist && cpx 'src/lib/**/schema.json' dist/lib",
|
|
17
|
-
"copy:lib": "cpx 'src/lib/**/{files,workspace}/**/*.*' dist/lib",
|
|
17
|
+
"copy:lib": "cpx 'src/lib/**/{files,workspace}/**/*.*' dist/lib && cpx 'src/lib/**/{files,workspace}/**/.!(gitignore)' dist/lib",
|
|
18
18
|
"lint": "eslint '{src,test}/**/*.ts' --fix",
|
|
19
19
|
"prepublish:next": "npm run build",
|
|
20
20
|
"publish:next": "npm publish --access public --tag next",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"@commitlint/cli": "^8.3.5",
|
|
49
49
|
"@commitlint/config-angular": "^8.3.4",
|
|
50
50
|
"@types/fs-extra": "8.0.1",
|
|
51
|
-
"@types/jest": "
|
|
51
|
+
"@types/jest": "25.1.2",
|
|
52
52
|
"@types/node": "12.12.21",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "2.
|
|
54
|
-
"@typescript-eslint/parser": "2.
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "2.19.2",
|
|
54
|
+
"@typescript-eslint/parser": "2.19.2",
|
|
55
55
|
"cpx": "1.5.0",
|
|
56
56
|
"eslint": "6.8.0",
|
|
57
|
-
"eslint-config-prettier": "6.
|
|
58
|
-
"eslint-plugin-import": "2.20.
|
|
57
|
+
"eslint-config-prettier": "6.10.0",
|
|
58
|
+
"eslint-plugin-import": "2.20.1",
|
|
59
59
|
"gulp": "4.0.2",
|
|
60
60
|
"gulp-clean": "0.4.0",
|
|
61
|
-
"husky": "4.2.
|
|
61
|
+
"husky": "4.2.3",
|
|
62
62
|
"jest": "25.1.0",
|
|
63
63
|
"nyc": "15.0.0",
|
|
64
64
|
"release-it": "^12.4.3",
|
|
65
|
-
"ts-jest": "25.
|
|
65
|
+
"ts-jest": "25.2.0",
|
|
66
66
|
"ts-node": "8.6.2",
|
|
67
67
|
"typescript": "3.7.5"
|
|
68
68
|
},
|