pwi-plata-type 0.4.166 → 0.4.167
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 +2 -2
- package/__BUILD__/libs/sql.js +4 -1
- package/__BUILD__/libs/sql.js.map +1 -1
- package/package.json +53 -53
- package/src/@types/build.d.ts +26 -26
- package/src/@types/cluster.actions.d.ts +27 -27
- package/src/@types/cluster.d.ts +55 -55
- package/src/@types/create-cli.d.ts +8 -8
- package/src/@types/exported.d.ts +31 -31
- package/src/@types/fs.d.ts +6 -6
- package/src/@types/global.d.ts +113 -113
- package/src/@types/knex.d.ts +13 -13
- package/src/@types/model.d.ts +143 -143
- package/src/@types/router.d.ts +107 -107
- package/src/@types/sql.d.ts +75 -75
- package/src/@types/swagger.d.ts +22 -22
- package/src/bin/extras/create-api-cli.ts +218 -218
- package/src/bin/extras/create-cluster-cli.ts +160 -160
- package/src/bin/extras/create-lib-cli.ts +84 -84
- package/src/bin/extras/plata-create-tools.ts +97 -97
- package/src/bin/plata-api.ts +189 -189
- package/src/bin/plata-build.ts +17 -17
- package/src/bin/plata-cluster.ts +42 -42
- package/src/bin/plata-cmd.ts +18 -18
- package/src/bin/plata-create.ts +49 -49
- package/src/bin/plata-runtime.ts +131 -131
- package/src/bin/plata-swagger.ts +99 -99
- package/src/bin/runtime/_setupRuntime.ts +48 -48
- package/src/bin/runtime/_types.d.ts +7 -7
- package/src/bin/runtime/class.ts +20 -20
- package/src/bin/runtime/dirs.ts +25 -25
- package/src/bin/runtime/effect.ts +60 -60
- package/src/bin/runtime/fs.ts +10 -10
- package/src/bin/runtime/promises.ts +18 -18
- package/src/bin/runtime/require.ts +113 -113
- package/src/bin/runtime/sql.ts +12 -12
- package/src/bin/runtime/switch.ts +60 -60
- package/src/index.ts +19 -19
- package/src/libs/axios.ts +51 -51
- package/src/libs/build.ts +162 -162
- package/src/libs/cluster/cluster-controller.ts +93 -93
- package/src/libs/cluster.ts +330 -330
- package/src/libs/custom.ts +15 -15
- package/src/libs/env.ts +10 -10
- package/src/libs/fs.ts +399 -399
- package/src/libs/hot-reload.ts +63 -63
- package/src/libs/models/index.ts +4 -4
- package/src/libs/models/model-template-combine.ts +93 -93
- package/src/libs/models/model-template-env.ts +58 -58
- package/src/libs/models/model-template-union.ts +83 -83
- package/src/libs/models/model-template.ts +107 -107
- package/src/libs/models/model-validations.ts +443 -443
- package/src/libs/models/tools.ts +194 -194
- package/src/libs/router.ts +185 -185
- package/src/libs/sql.ts +792 -788
- package/src/libs/swagger.ts +81 -81
- package/src/libs/tools.ts +240 -240
- package/src/scripts/post-install/api.ts +32 -32
- package/src/scripts/post-install/cluster.ts +28 -28
- package/src/scripts/post-install/lib.ts +25 -25
- package/src/scripts/post-install.ts +64 -64
- package/src/scripts/pre-test.ts +33 -33
- package/src/tests/assets/sql/example.sql +76 -76
- package/src/tests/config.test.ts +12 -12
- package/src/tests/effect.test.ts +62 -62
- package/src/tests/model.env.test.ts +66 -66
- package/src/tests/model.test.ts +141 -141
- package/src/tests/model.union.test.ts +160 -160
- package/src/tests/router.test.ts +44 -44
- package/src/tests/sql.test.ts +502 -502
- package/src/tests/switch.test.ts +76 -76
- package/templates/create-cli/class.ts +13 -13
- package/templates/create-cli/cluster.ts +14 -14
- package/templates/create-cli/cmd.ts +3 -3
- package/templates/create-cli/config.ts +2 -2
- package/templates/create-cli/lib.ts +3 -3
- package/templates/create-cli/model.ts +14 -14
- package/templates/create-cli/route.ts +8 -8
- package/templates/create-cli/task.ts +13 -13
- package/templates/postinstall/api/.vscode/launch.json +20 -20
- package/templates/postinstall/api/Dockerfile +24 -24
- package/templates/postinstall/api/configs/env.ts +2 -2
- package/templates/postinstall/api/envs/debug.env +15 -15
- package/templates/postinstall/api/envs/homolog.env +15 -15
- package/templates/postinstall/api/envs/prod.env +15 -15
- package/templates/postinstall/api/tsconfig.json +24 -24
- package/templates/postinstall/cluster/.vscode/launch.json +20 -20
- package/templates/postinstall/cluster/Dockerfile +24 -24
- package/templates/postinstall/cluster/configs/env.ts +2 -2
- package/templates/postinstall/cluster/envs/debug.env +10 -10
- package/templates/postinstall/cluster/envs/homolog.env +10 -10
- package/templates/postinstall/cluster/envs/prod.env +10 -10
- package/templates/postinstall/cluster/tsconfig.json +24 -24
- package/templates/postinstall/lib/postinstall-tools.mjs +111 -111
- package/templates/postinstall/lib/postinstall.js +33 -33
- package/templates/postinstall/lib/tsconfig.json +22 -22
- package/templates/swagger-cli/header.json +21 -21
- package/templates/swagger-cli/route/body.json +14 -14
- package/templates/swagger-cli/route/header.json +18 -18
- package/templates/swagger-cli/route/response.json +53 -53
- package/tsconfig.json +28 -28
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Ambiente:
|
|
2
|
-
ENV=debug
|
|
3
|
-
|
|
4
|
-
# Tira timezone das datas que chegam para API
|
|
5
|
-
TZ=Etc/GMT
|
|
6
|
-
|
|
7
|
-
# Configurações da plata:
|
|
8
|
-
PORT=3050
|
|
9
|
-
_PLATA_SQL_SHOWQUERY=1
|
|
10
|
-
_PLATA_SQL_CACHETABLE=0
|
|
1
|
+
# Ambiente:
|
|
2
|
+
ENV=debug
|
|
3
|
+
|
|
4
|
+
# Tira timezone das datas que chegam para API
|
|
5
|
+
TZ=Etc/GMT
|
|
6
|
+
|
|
7
|
+
# Configurações da plata:
|
|
8
|
+
PORT=3050
|
|
9
|
+
_PLATA_SQL_SHOWQUERY=1
|
|
10
|
+
_PLATA_SQL_CACHETABLE=0
|
|
11
11
|
_PLATA_SQL_CACHETABLETIME=0
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Ambiente:
|
|
2
|
-
ENV=homolog
|
|
3
|
-
|
|
4
|
-
# Tira timezone das datas que chegam para API
|
|
5
|
-
TZ=Etc/GMT
|
|
6
|
-
|
|
7
|
-
# Configurações da plata:
|
|
8
|
-
PORT=3050
|
|
9
|
-
_PLATA_SQL_SHOWQUERY=1
|
|
10
|
-
_PLATA_SQL_CACHETABLE=1
|
|
1
|
+
# Ambiente:
|
|
2
|
+
ENV=homolog
|
|
3
|
+
|
|
4
|
+
# Tira timezone das datas que chegam para API
|
|
5
|
+
TZ=Etc/GMT
|
|
6
|
+
|
|
7
|
+
# Configurações da plata:
|
|
8
|
+
PORT=3050
|
|
9
|
+
_PLATA_SQL_SHOWQUERY=1
|
|
10
|
+
_PLATA_SQL_CACHETABLE=1
|
|
11
11
|
_PLATA_SQL_CACHETABLETIME=60
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Ambiente:
|
|
2
|
-
ENV=prod
|
|
3
|
-
|
|
4
|
-
# Tira timezone das datas que chegam para API
|
|
5
|
-
TZ=Etc/GMT
|
|
6
|
-
|
|
7
|
-
# Configurações da plata:
|
|
8
|
-
PORT=3050
|
|
9
|
-
_PLATA_SQL_SHOWQUERY=0
|
|
10
|
-
_PLATA_SQL_CACHETABLE=1
|
|
1
|
+
# Ambiente:
|
|
2
|
+
ENV=prod
|
|
3
|
+
|
|
4
|
+
# Tira timezone das datas que chegam para API
|
|
5
|
+
TZ=Etc/GMT
|
|
6
|
+
|
|
7
|
+
# Configurações da plata:
|
|
8
|
+
PORT=3050
|
|
9
|
+
_PLATA_SQL_SHOWQUERY=0
|
|
10
|
+
_PLATA_SQL_CACHETABLE=1
|
|
11
11
|
_PLATA_SQL_CACHETABLETIME=60
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"lib": ["esnext"],
|
|
6
|
-
"declaration": false,
|
|
7
|
-
"allowJs": true,
|
|
8
|
-
"outDir": "./__BUILD__",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"strictNullChecks": true,
|
|
12
|
-
"sourceMap": true,
|
|
13
|
-
"types": [ "pwi-plata-type", "node" ],
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"skipLibCheck": true,
|
|
16
|
-
"forceConsistentCasingInFileNames": true,
|
|
17
|
-
"baseUrl": ".",
|
|
18
|
-
"paths": {
|
|
19
|
-
"@@/*": [ "./*" ]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"include": [
|
|
23
|
-
"./**/*"
|
|
24
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"lib": ["esnext"],
|
|
6
|
+
"declaration": false,
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"outDir": "./__BUILD__",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"strictNullChecks": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"types": [ "pwi-plata-type", "node" ],
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"forceConsistentCasingInFileNames": true,
|
|
17
|
+
"baseUrl": ".",
|
|
18
|
+
"paths": {
|
|
19
|
+
"@@/*": [ "./*" ]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"include": [
|
|
23
|
+
"./**/*"
|
|
24
|
+
]
|
|
25
25
|
}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
// TODO matar esse aquivo e usar o PlataFS
|
|
4
|
-
export function tools(dirs) {
|
|
5
|
-
const tools = Object.create(null)
|
|
6
|
-
|
|
7
|
-
tools.mkdirIfNotExists = async (dir) => {
|
|
8
|
-
try {
|
|
9
|
-
const p = path.resolve(dir)
|
|
10
|
-
|
|
11
|
-
if (!fs.existsSync(p)) {
|
|
12
|
-
fs.mkdirSync(p, { resolve: true })
|
|
13
|
-
}
|
|
14
|
-
} catch (err) {
|
|
15
|
-
console.error(err)
|
|
16
|
-
process.exit(1)
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
tools.copyFile = async (source, destination) => {
|
|
21
|
-
try {
|
|
22
|
-
const s = path.resolve(source)
|
|
23
|
-
const d = path.resolve(destination)
|
|
24
|
-
|
|
25
|
-
fs.copyFileSync(s, d)
|
|
26
|
-
} catch (err) {
|
|
27
|
-
console.error(err)
|
|
28
|
-
process.exit(1)
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
tools.copyFileIfNotExists = async (source, destination) => {
|
|
33
|
-
try {
|
|
34
|
-
const s = path.resolve(source)
|
|
35
|
-
const d = path.resolve(destination)
|
|
36
|
-
|
|
37
|
-
if (!fs.existsSync(d) && fs.existsSync(s)) {
|
|
38
|
-
tools.copyFile(s, d)
|
|
39
|
-
}
|
|
40
|
-
} catch (err) {
|
|
41
|
-
console.error(err)
|
|
42
|
-
process.exit(1)
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
tools.forEachFileInFolder = async (folder, callback) => {
|
|
47
|
-
try {
|
|
48
|
-
const f = path.resolve(folder)
|
|
49
|
-
if (!fs.existsSync(f)) {
|
|
50
|
-
return
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const files = fs.readdirSync(f)
|
|
54
|
-
|
|
55
|
-
const promises = []
|
|
56
|
-
|
|
57
|
-
files.forEach(file => {
|
|
58
|
-
const filePath = path.join(f, file)
|
|
59
|
-
|
|
60
|
-
promises.push(
|
|
61
|
-
(async () => callback(file, filePath))()
|
|
62
|
-
)
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
await Promise.all(promises)
|
|
66
|
-
} catch (err) {
|
|
67
|
-
console.error(err)
|
|
68
|
-
process.exit(1)
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
tools.createFolderProject = (async (folder) =>
|
|
73
|
-
tools.mkdirIfNotExists(path.join(dirs.projectDir, folder))
|
|
74
|
-
)
|
|
75
|
-
|
|
76
|
-
tools.copyFolderToProject = async (folder) => {
|
|
77
|
-
const templateFolder = path.join(dirs.templateDir, folder)
|
|
78
|
-
const destination = path.join(dirs.projectDir, folder)
|
|
79
|
-
|
|
80
|
-
await tools.mkdirIfNotExists(destination)
|
|
81
|
-
|
|
82
|
-
await tools.forEachFileInFolder(templateFolder, async (file, filePath) =>
|
|
83
|
-
tools.copyFileIfNotExists(
|
|
84
|
-
filePath,
|
|
85
|
-
path.join(destination, file)
|
|
86
|
-
)
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
tools.syncFolderProject = async (folder) => {
|
|
91
|
-
const templateFolder = path.join(dirs.templateDir, folder)
|
|
92
|
-
const destination = path.join(dirs.projectDir, folder)
|
|
93
|
-
|
|
94
|
-
await tools.mkdirIfNotExists(destination)
|
|
95
|
-
|
|
96
|
-
await tools.forEachFileInFolder(templateFolder, async (file, filePath) =>
|
|
97
|
-
tools.copyFile(
|
|
98
|
-
filePath,
|
|
99
|
-
path.join(destination, file)
|
|
100
|
-
)
|
|
101
|
-
)
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
tools.syncFileToProject = async (file) => {
|
|
105
|
-
const templateFile = path.join(dirs.templateDir, file)
|
|
106
|
-
const destination = path.join(dirs.projectDir, file)
|
|
107
|
-
|
|
108
|
-
await tools.copyFile(templateFile, destination)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return tools
|
|
1
|
+
import fs from 'node:fs'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
// TODO matar esse aquivo e usar o PlataFS
|
|
4
|
+
export function tools(dirs) {
|
|
5
|
+
const tools = Object.create(null)
|
|
6
|
+
|
|
7
|
+
tools.mkdirIfNotExists = async (dir) => {
|
|
8
|
+
try {
|
|
9
|
+
const p = path.resolve(dir)
|
|
10
|
+
|
|
11
|
+
if (!fs.existsSync(p)) {
|
|
12
|
+
fs.mkdirSync(p, { resolve: true })
|
|
13
|
+
}
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error(err)
|
|
16
|
+
process.exit(1)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
tools.copyFile = async (source, destination) => {
|
|
21
|
+
try {
|
|
22
|
+
const s = path.resolve(source)
|
|
23
|
+
const d = path.resolve(destination)
|
|
24
|
+
|
|
25
|
+
fs.copyFileSync(s, d)
|
|
26
|
+
} catch (err) {
|
|
27
|
+
console.error(err)
|
|
28
|
+
process.exit(1)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
tools.copyFileIfNotExists = async (source, destination) => {
|
|
33
|
+
try {
|
|
34
|
+
const s = path.resolve(source)
|
|
35
|
+
const d = path.resolve(destination)
|
|
36
|
+
|
|
37
|
+
if (!fs.existsSync(d) && fs.existsSync(s)) {
|
|
38
|
+
tools.copyFile(s, d)
|
|
39
|
+
}
|
|
40
|
+
} catch (err) {
|
|
41
|
+
console.error(err)
|
|
42
|
+
process.exit(1)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
tools.forEachFileInFolder = async (folder, callback) => {
|
|
47
|
+
try {
|
|
48
|
+
const f = path.resolve(folder)
|
|
49
|
+
if (!fs.existsSync(f)) {
|
|
50
|
+
return
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const files = fs.readdirSync(f)
|
|
54
|
+
|
|
55
|
+
const promises = []
|
|
56
|
+
|
|
57
|
+
files.forEach(file => {
|
|
58
|
+
const filePath = path.join(f, file)
|
|
59
|
+
|
|
60
|
+
promises.push(
|
|
61
|
+
(async () => callback(file, filePath))()
|
|
62
|
+
)
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
await Promise.all(promises)
|
|
66
|
+
} catch (err) {
|
|
67
|
+
console.error(err)
|
|
68
|
+
process.exit(1)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
tools.createFolderProject = (async (folder) =>
|
|
73
|
+
tools.mkdirIfNotExists(path.join(dirs.projectDir, folder))
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
tools.copyFolderToProject = async (folder) => {
|
|
77
|
+
const templateFolder = path.join(dirs.templateDir, folder)
|
|
78
|
+
const destination = path.join(dirs.projectDir, folder)
|
|
79
|
+
|
|
80
|
+
await tools.mkdirIfNotExists(destination)
|
|
81
|
+
|
|
82
|
+
await tools.forEachFileInFolder(templateFolder, async (file, filePath) =>
|
|
83
|
+
tools.copyFileIfNotExists(
|
|
84
|
+
filePath,
|
|
85
|
+
path.join(destination, file)
|
|
86
|
+
)
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
tools.syncFolderProject = async (folder) => {
|
|
91
|
+
const templateFolder = path.join(dirs.templateDir, folder)
|
|
92
|
+
const destination = path.join(dirs.projectDir, folder)
|
|
93
|
+
|
|
94
|
+
await tools.mkdirIfNotExists(destination)
|
|
95
|
+
|
|
96
|
+
await tools.forEachFileInFolder(templateFolder, async (file, filePath) =>
|
|
97
|
+
tools.copyFile(
|
|
98
|
+
filePath,
|
|
99
|
+
path.join(destination, file)
|
|
100
|
+
)
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
tools.syncFileToProject = async (file) => {
|
|
105
|
+
const templateFile = path.join(dirs.templateDir, file)
|
|
106
|
+
const destination = path.join(dirs.projectDir, file)
|
|
107
|
+
|
|
108
|
+
await tools.copyFile(templateFile, destination)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return tools
|
|
112
112
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
import { tools } from './postinstall-tools.mjs'
|
|
4
|
-
|
|
5
|
-
const main = async() => {
|
|
6
|
-
const plataDir = path.resolve('.')
|
|
7
|
-
|
|
8
|
-
if (path.basename(path.dirname(plataDir)) !== 'node_modules') return
|
|
9
|
-
|
|
10
|
-
const projectDir = path.resolve(plataDir, '..', '..')
|
|
11
|
-
const projectPackageJson = JSON.parse(fs.readFileSync(path.join(projectDir, 'package.json')).toString())
|
|
12
|
-
|
|
13
|
-
if (projectPackageJson.plata_no_setup !== undefined) {
|
|
14
|
-
process.exit(0)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const t = tools({
|
|
18
|
-
plataDir,
|
|
19
|
-
projectDir,
|
|
20
|
-
templateDir: plataDir
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
const promises = []
|
|
24
|
-
|
|
25
|
-
promises.push(t.copyFolderToProject('configs'))
|
|
26
|
-
promises.push(t.syncFolderProject('clusters'))
|
|
27
|
-
promises.push(t.syncFolderProject('libs'))
|
|
28
|
-
promises.push(t.syncFolderProject('tasks'))
|
|
29
|
-
promises.push(t.syncFolderProject('@types'))
|
|
30
|
-
|
|
31
|
-
await Promise.all(promises)
|
|
32
|
-
}
|
|
33
|
-
|
|
1
|
+
import fs from 'node:fs'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import { tools } from './postinstall-tools.mjs'
|
|
4
|
+
|
|
5
|
+
const main = async() => {
|
|
6
|
+
const plataDir = path.resolve('.')
|
|
7
|
+
|
|
8
|
+
if (path.basename(path.dirname(plataDir)) !== 'node_modules') return
|
|
9
|
+
|
|
10
|
+
const projectDir = path.resolve(plataDir, '..', '..')
|
|
11
|
+
const projectPackageJson = JSON.parse(fs.readFileSync(path.join(projectDir, 'package.json')).toString())
|
|
12
|
+
|
|
13
|
+
if (projectPackageJson.plata_no_setup !== undefined) {
|
|
14
|
+
process.exit(0)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const t = tools({
|
|
18
|
+
plataDir,
|
|
19
|
+
projectDir,
|
|
20
|
+
templateDir: plataDir
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const promises = []
|
|
24
|
+
|
|
25
|
+
promises.push(t.copyFolderToProject('configs'))
|
|
26
|
+
promises.push(t.syncFolderProject('clusters'))
|
|
27
|
+
promises.push(t.syncFolderProject('libs'))
|
|
28
|
+
promises.push(t.syncFolderProject('tasks'))
|
|
29
|
+
promises.push(t.syncFolderProject('@types'))
|
|
30
|
+
|
|
31
|
+
await Promise.all(promises)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
34
|
main()
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"lib": ["esnext"],
|
|
6
|
-
"declaration": false,
|
|
7
|
-
"allowJs": true,
|
|
8
|
-
"outDir": "./__BUILD__",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"strictNullChecks": true,
|
|
12
|
-
"sourceMap": true,
|
|
13
|
-
"types": [ "node", "pwi-plata-type" ],
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"baseUrl": ".",
|
|
16
|
-
"paths": {
|
|
17
|
-
"@@/*": [ "./*" ]
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"include": [
|
|
21
|
-
"./**/*"
|
|
22
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"lib": ["esnext"],
|
|
6
|
+
"declaration": false,
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"outDir": "./__BUILD__",
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"strictNullChecks": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"types": [ "node", "pwi-plata-type" ],
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"baseUrl": ".",
|
|
16
|
+
"paths": {
|
|
17
|
+
"@@/*": [ "./*" ]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"include": [
|
|
21
|
+
"./**/*"
|
|
22
|
+
]
|
|
23
23
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"swagger": "2.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "",
|
|
5
|
-
"description": "",
|
|
6
|
-
"version": ""
|
|
7
|
-
},
|
|
8
|
-
"host": "",
|
|
9
|
-
"basePath": "/api",
|
|
10
|
-
"schemes": [
|
|
11
|
-
"https",
|
|
12
|
-
"http"
|
|
13
|
-
],
|
|
14
|
-
"tags": [],
|
|
15
|
-
"securityDefinitions": {
|
|
16
|
-
"apiKeyAuth": {
|
|
17
|
-
"type": "apiKey",
|
|
18
|
-
"name": "x-access-token",
|
|
19
|
-
"in": "header"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"swagger": "2.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "",
|
|
5
|
+
"description": "",
|
|
6
|
+
"version": ""
|
|
7
|
+
},
|
|
8
|
+
"host": "",
|
|
9
|
+
"basePath": "/api",
|
|
10
|
+
"schemes": [
|
|
11
|
+
"https",
|
|
12
|
+
"http"
|
|
13
|
+
],
|
|
14
|
+
"tags": [],
|
|
15
|
+
"securityDefinitions": {
|
|
16
|
+
"apiKeyAuth": {
|
|
17
|
+
"type": "apiKey",
|
|
18
|
+
"name": "x-access-token",
|
|
19
|
+
"in": "header"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
22
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"example": {
|
|
5
|
-
"test": {
|
|
6
|
-
"type": "number",
|
|
7
|
-
"example": 123
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"extras": {
|
|
11
|
-
"xml": {
|
|
12
|
-
"name": "root"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"description": "",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"example": {
|
|
5
|
+
"test": {
|
|
6
|
+
"type": "number",
|
|
7
|
+
"example": 123
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"extras": {
|
|
11
|
+
"xml": {
|
|
12
|
+
"name": "root"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"summary": "summary",
|
|
3
|
-
"description": "Descrião da rota",
|
|
4
|
-
"tags": [],
|
|
5
|
-
"security": [
|
|
6
|
-
{
|
|
7
|
-
"apiKeyAuth": []
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"parameters": [
|
|
11
|
-
{
|
|
12
|
-
"name": "test",
|
|
13
|
-
"description": "",
|
|
14
|
-
"in": "header",
|
|
15
|
-
"required": false,
|
|
16
|
-
"type": "string"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"summary": "summary",
|
|
3
|
+
"description": "Descrião da rota",
|
|
4
|
+
"tags": [],
|
|
5
|
+
"security": [
|
|
6
|
+
{
|
|
7
|
+
"apiKeyAuth": []
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"parameters": [
|
|
11
|
+
{
|
|
12
|
+
"name": "test",
|
|
13
|
+
"description": "",
|
|
14
|
+
"in": "header",
|
|
15
|
+
"required": false,
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
19
|
}
|