@simitgroup/simpleapp-generator 1.0.21 → 1.0.23
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 copy.md +882 -0
- package/README.md +53 -824
- package/definations/category.cat.jsonschema.json +11 -13
- package/definations/level.lvl.jsonschema.json +48 -0
- package/definations/product.prd.jsonschema.json +8 -2
- package/dist/framework.js +42 -23
- package/dist/framework.js.map +1 -1
- package/dist/generate.js +3 -3
- package/dist/generate.js.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/openapitools.json +7 -0
- package/package.json +1 -1
- package/sampleconfig.json +3 -0
- package/src/framework.ts +37 -19
- package/src/generate.ts +3 -3
- package/src/index.ts +8 -7
- package/templates/nest/nest.env.eta +7 -0
- package/templates/{nest.main.eta → nest/nest.main.eta} +1 -1
- package/templates/nuxt/env.eta +5 -3
- package/backend1/.env +0 -5
- package/backend1/.eslintrc.js +0 -25
- package/backend1/.prettierrc +0 -4
- package/backend1/README.md +0 -73
- package/backend1/nest-cli.json +0 -8
- package/backend1/package.json +0 -75
- package/backend1/pnpm-lock.yaml +0 -5459
- package/backend1/src/app.controller.js +0 -71
- package/backend1/src/app.controller.js.map +0 -1
- package/backend1/src/app.controller.spec.js +0 -21
- package/backend1/src/app.controller.spec.js.map +0 -1
- package/backend1/src/app.controller.spec.ts +0 -22
- package/backend1/src/app.controller.ts +0 -12
- package/backend1/src/app.module.js +0 -67
- package/backend1/src/app.module.js.map +0 -1
- package/backend1/src/app.module.ts +0 -10
- package/backend1/src/app.service.js +0 -64
- package/backend1/src/app.service.js.map +0 -1
- package/backend1/src/app.service.ts +0 -8
- package/backend1/src/class/SimpleAppController.js +0 -38
- package/backend1/src/class/SimpleAppController.js.map +0 -1
- package/backend1/src/class/SimpleAppController.ts +0 -69
- package/backend1/src/class/SimpleAppService.js +0 -264
- package/backend1/src/class/SimpleAppService.js.map +0 -1
- package/backend1/src/class/SimpleAppService.ts +0 -213
- package/backend1/src/main.js +0 -22
- package/backend1/src/main.js.map +0 -1
- package/backend1/src/main.ts +0 -20
- package/backend1/test/app.e2e-spec.js +0 -45
- package/backend1/test/app.e2e-spec.js.map +0 -1
- package/backend1/test/app.e2e-spec.ts +0 -24
- package/backend1/test/jest-e2e.json +0 -9
- package/backend1/tsconfig.build.json +0 -4
- package/backend1/tsconfig.json +0 -1
- package/frontend1/README.md +0 -63
- package/frontend1/app.vue +0 -8
- package/frontend1/assets/css/tailwind.css +0 -28
- package/frontend1/components/CrudSimple.vue +0 -112
- package/frontend1/components/DebugDocumentData.vue +0 -20
- package/frontend1/components/EventMonitor.vue +0 -79
- package/frontend1/components/Menus.vue +0 -18
- package/frontend1/layouts/default.vue +0 -10
- package/frontend1/nuxt.config.js +0 -42
- package/frontend1/nuxt.config.js.map +0 -1
- package/frontend1/nuxt.config.ts +0 -42
- package/frontend1/package-lock.json +0 -11877
- package/frontend1/package.json +0 -38
- package/frontend1/pages/index.vue +0 -3
- package/frontend1/plugins/simpleapp.js +0 -73
- package/frontend1/plugins/simpleapp.js.map +0 -1
- package/frontend1/plugins/simpleapp.ts +0 -73
- package/frontend1/pnpm-lock.yaml +0 -8339
- package/frontend1/public/favicon.ico +0 -0
- package/frontend1/server/api/[...].js +0 -117
- package/frontend1/server/api/[...].js.map +0 -1
- package/frontend1/server/api/[...].ts +0 -131
- package/frontend1/server/tsconfig.json +0 -3
- package/frontend1/tailwind.config.js +0 -10
- package/frontend1/tailwind.config.js.map +0 -1
- package/frontend1/tailwind.config.ts +0 -9
- package/frontend1/tsconfig.json +0 -4
- package/src/installdependency.ts +0 -4
- package/templates/SimpleAppClient.eta +0 -116
- package/templates/app.vue.eta +0 -21
- package/templates/nest.env.eta +0 -5
- /package/src/{index2.ts → index2.ts-old} +0 -0
- /package/templates/{SimpleAppController.eta → nest/SimpleAppController.eta} +0 -0
- /package/templates/{SimpleAppService.eta → nest/SimpleAppService.eta} +0 -0
- /package/templates/{app.module.eta → nest/app.module.eta} +0 -0
package/backend1/.eslintrc.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
-
rules: {
|
|
20
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
-
},
|
|
25
|
-
};
|
package/backend1/.prettierrc
DELETED
package/backend1/README.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
|
|
6
|
-
[circleci-url]: https://circleci.com/gh/nestjs/nest
|
|
7
|
-
|
|
8
|
-
<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>
|
|
9
|
-
<p align="center">
|
|
10
|
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
|
|
11
|
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
|
12
|
-
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
|
13
|
-
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
|
14
|
-
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
|
15
|
-
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
|
16
|
-
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
17
|
-
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
18
|
-
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
|
|
19
|
-
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
|
|
20
|
-
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
|
|
21
|
-
</p>
|
|
22
|
-
<!--[](https://opencollective.com/nest#backer)
|
|
23
|
-
[](https://opencollective.com/nest#sponsor)-->
|
|
24
|
-
|
|
25
|
-
## Description
|
|
26
|
-
|
|
27
|
-
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
|
|
28
|
-
|
|
29
|
-
## Installation
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
$ pnpm install
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Running the app
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
# development
|
|
39
|
-
$ pnpm run start
|
|
40
|
-
|
|
41
|
-
# watch mode
|
|
42
|
-
$ pnpm run start:dev
|
|
43
|
-
|
|
44
|
-
# production mode
|
|
45
|
-
$ pnpm run start:prod
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Test
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# unit tests
|
|
52
|
-
$ pnpm run test
|
|
53
|
-
|
|
54
|
-
# e2e tests
|
|
55
|
-
$ pnpm run test:e2e
|
|
56
|
-
|
|
57
|
-
# test coverage
|
|
58
|
-
$ pnpm run test:cov
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Support
|
|
62
|
-
|
|
63
|
-
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
|
|
64
|
-
|
|
65
|
-
## Stay in touch
|
|
66
|
-
|
|
67
|
-
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
|
|
68
|
-
- Website - [https://nestjs.com](https://nestjs.com/)
|
|
69
|
-
- Twitter - [@nestframework](https://twitter.com/nestframework)
|
|
70
|
-
|
|
71
|
-
## License
|
|
72
|
-
|
|
73
|
-
Nest is [MIT licensed](LICENSE).
|
package/backend1/nest-cli.json
DELETED
package/backend1/package.json
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "backend1",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"description": "",
|
|
5
|
-
"author": "",
|
|
6
|
-
"private": true,
|
|
7
|
-
"license": "UNLICENSED",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "nest build",
|
|
10
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
11
|
-
"start": "nest start",
|
|
12
|
-
"start:dev": "nest start --watch",
|
|
13
|
-
"start:debug": "nest start --debug --watch",
|
|
14
|
-
"start:prod": "node dist/main",
|
|
15
|
-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
16
|
-
"test": "jest",
|
|
17
|
-
"test:watch": "jest --watch",
|
|
18
|
-
"test:cov": "jest --coverage",
|
|
19
|
-
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
20
|
-
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@nestjs/common": "^10.0.0",
|
|
24
|
-
"@nestjs/config": "^3.0.1",
|
|
25
|
-
"@nestjs/core": "^10.0.0",
|
|
26
|
-
"@nestjs/mongoose": "^10.0.1",
|
|
27
|
-
"@nestjs/platform-express": "^10.0.0",
|
|
28
|
-
"@nestjs/swagger": "^7.1.10",
|
|
29
|
-
"ajv": "^8.12.0",
|
|
30
|
-
"ajv-formats": "^2.1.1",
|
|
31
|
-
"mongoose": "^7.5.0",
|
|
32
|
-
"reflect-metadata": "^0.1.13",
|
|
33
|
-
"rxjs": "^7.8.1"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@nestjs/cli": "^10.0.0",
|
|
37
|
-
"@nestjs/schematics": "^10.0.0",
|
|
38
|
-
"@nestjs/testing": "^10.0.0",
|
|
39
|
-
"@types/express": "^4.17.17",
|
|
40
|
-
"@types/jest": "^29.5.2",
|
|
41
|
-
"@types/node": "^20.3.1",
|
|
42
|
-
"@types/supertest": "^2.0.12",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
44
|
-
"@typescript-eslint/parser": "^6.0.0",
|
|
45
|
-
"eslint": "^8.42.0",
|
|
46
|
-
"eslint-config-prettier": "^9.0.0",
|
|
47
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
48
|
-
"jest": "^29.5.0",
|
|
49
|
-
"prettier": "^3.0.0",
|
|
50
|
-
"source-map-support": "^0.5.21",
|
|
51
|
-
"supertest": "^6.3.3",
|
|
52
|
-
"ts-jest": "^29.1.0",
|
|
53
|
-
"ts-loader": "^9.4.3",
|
|
54
|
-
"ts-node": "^10.9.1",
|
|
55
|
-
"tsconfig-paths": "^4.2.0",
|
|
56
|
-
"typescript": "^5.1.3"
|
|
57
|
-
},
|
|
58
|
-
"jest": {
|
|
59
|
-
"moduleFileExtensions": [
|
|
60
|
-
"js",
|
|
61
|
-
"json",
|
|
62
|
-
"ts"
|
|
63
|
-
],
|
|
64
|
-
"rootDir": "src",
|
|
65
|
-
"testRegex": ".*\\.spec\\.ts$",
|
|
66
|
-
"transform": {
|
|
67
|
-
"^.+\\.(t|j)s$": "ts-jest"
|
|
68
|
-
},
|
|
69
|
-
"collectCoverageFrom": [
|
|
70
|
-
"**/*.(t|j)s"
|
|
71
|
-
],
|
|
72
|
-
"coverageDirectory": "../coverage",
|
|
73
|
-
"testEnvironment": "node"
|
|
74
|
-
}
|
|
75
|
-
}
|