@dcupl/cli 0.0.27 → 0.0.29
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/functions/files/files-copy.d.ts +1 -1
- package/dist/functions/files/files-list-versions.d.ts +1 -1
- package/dist/functions/files/files-pull.d.ts +1 -1
- package/dist/functions/files/files-push.d.ts +1 -1
- package/dist/functions/generate/projects/generate-project.js +13 -8
- package/dist/functions/generate/projects/generate-project.js.map +1 -1
- package/dist/functions/generate/types/generate.helper.d.ts +3 -0
- package/dist/functions/generate/types/generate.helper.js +33 -1
- package/dist/functions/generate/types/generate.helper.js.map +1 -1
- package/dist/functions/helper/config.helper.d.ts +2 -2
- package/dist/functions/helper/config.helper.js +2 -1
- package/dist/functions/helper/config.helper.js.map +1 -1
- package/dist/functions/serve/app.controller.d.ts +10 -2
- package/dist/functions/serve/app.controller.js +40 -1
- package/dist/functions/serve/app.controller.js.map +1 -1
- package/dist/functions/serve/app.module.js.map +1 -1
- package/dist/functions/serve/app.service.d.ts +35 -3
- package/dist/functions/serve/app.service.js +84 -3
- package/dist/functions/serve/app.service.js.map +1 -1
- package/dist/functions/serve/main.d.ts +1 -1
- package/dist/functions/serve/main.js +22 -4
- package/dist/functions/serve/main.js.map +1 -1
- package/dist/functions/start-dcupl/start-dcupl.d.ts +6 -0
- package/dist/functions/start-dcupl/start-dcupl.js +51 -0
- package/dist/functions/start-dcupl/start-dcupl.js.map +1 -0
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/files/starters/starter_01/dcupl/dcupl.lc.json +4 -10
- package/package.json +5 -2
- package/files/demo/bookstore_01/dcupl/data/author.csv +0 -9126
- package/files/demo/bookstore_01/dcupl/data/book.csv +0 -10059
- package/files/demo/bookstore_01/dcupl/data/book_language.json +0 -32
- package/files/demo/bookstore_01/dcupl/data/publisher.csv +0 -2265
- package/files/demo/bookstore_01/dcupl/dcupl.lc.json +0 -81
- package/files/demo/bookstore_01/dcupl/models/author.dcupl.json +0 -16
- package/files/demo/bookstore_01/dcupl/models/book.dcupl.json +0 -31
- package/files/demo/bookstore_01/dcupl/models/book_language.dcupl.json +0 -9
- package/files/demo/bookstore_01/dcupl/models/publisher.dcupl.json +0 -9
- package/files/demo/bookstore_01/dcupl.config.json +0 -10
- package/files/demo/bookstore_01/package.json +0 -14
- package/files/demo/bookstore_02/dcupl/bookstore_local.ldp.json +0 -74
- package/files/demo/bookstore_02/dcupl/data/address.csv +0 -1001
- package/files/demo/bookstore_02/dcupl/data/author.csv +0 -9126
- package/files/demo/bookstore_02/dcupl/data/book.csv +0 -10059
- package/files/demo/bookstore_02/dcupl/data/book_language.json +0 -30
- package/files/demo/bookstore_02/dcupl/data/country.csv +0 -233
- package/files/demo/bookstore_02/dcupl/data/cust_order.csv +0 -4001
- package/files/demo/bookstore_02/dcupl/data/customer.csv +0 -2001
- package/files/demo/bookstore_02/dcupl/data/publisher.csv +0 -2265
- package/files/demo/bookstore_02/dcupl/model/adv_address.dcupl.json +0 -20
- package/files/demo/bookstore_02/dcupl/model/adv_country.dcupl.json +0 -7
- package/files/demo/bookstore_02/dcupl/model/adv_cust_order.dcupl.json +0 -21
- package/files/demo/bookstore_02/dcupl/model/adv_customer.dcupl.json +0 -35
- package/files/demo/bookstore_02/dcupl/model/author.dcupl.json +0 -19
- package/files/demo/bookstore_02/dcupl/model/book.dcupl.json +0 -73
- package/files/demo/bookstore_02/dcupl/model/book_language.dcupl.json +0 -9
- package/files/demo/bookstore_02/dcupl/model/publisher.dcupl.json +0 -10
- package/files/demo/bookstore_02/package.json +0 -14
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const generate_types_1 = require("./functions/generate/types/generate-types");
|
|
|
11
11
|
const files_pull_1 = require("./functions/files/files-pull");
|
|
12
12
|
const files_copy_1 = require("./functions/files/files-copy");
|
|
13
13
|
const files_list_versions_1 = require("./functions/files/files-list-versions");
|
|
14
|
+
const start_dcupl_1 = require("./functions/start-dcupl/start-dcupl");
|
|
14
15
|
const emoji = require('node-emoji');
|
|
15
16
|
(0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
|
|
16
17
|
.command(['welcome', 'hey', 'rocks', emoji.get('rocket')], 'You are awesome!', () => { }, (argv) => {
|
|
@@ -26,9 +27,6 @@ const emoji = require('node-emoji');
|
|
|
26
27
|
});
|
|
27
28
|
}, (argv) => {
|
|
28
29
|
(0, main_1.bootstrap)(argv);
|
|
29
|
-
})
|
|
30
|
-
.command('generate:types', 'Generate Typescript types for your dcupl models', () => { }, (argv) => {
|
|
31
|
-
(0, generate_types_1.generateTypesFn)();
|
|
32
30
|
})
|
|
33
31
|
.command('files:push', 'Upload files to the dcupl cloud', (args) => {
|
|
34
32
|
return args.option('name', {
|
|
@@ -61,6 +59,17 @@ const emoji = require('node-emoji');
|
|
|
61
59
|
})
|
|
62
60
|
.command('files:list', 'Lists all the uploaded versions', () => { }, (argv) => {
|
|
63
61
|
(0, files_list_versions_1.listVersions)(argv);
|
|
62
|
+
})
|
|
63
|
+
.command('start [path]', '!Experimental! - Starts a dcupl instance in nodejs', (args) => {
|
|
64
|
+
return args.option('app', { requiresArg: true }).option('metadata', { default: false }).positional('path', {
|
|
65
|
+
describe: 'path to your loader file',
|
|
66
|
+
default: 'http://localhost:8083/dcupl.lc.json',
|
|
67
|
+
});
|
|
68
|
+
}, (argv) => {
|
|
69
|
+
(0, start_dcupl_1.startDcuplInstance)(argv);
|
|
70
|
+
})
|
|
71
|
+
.command('generate:types', '!Experimental! - Generate Typescript types for your dcupl models', () => { }, (argv) => {
|
|
72
|
+
(0, generate_types_1.generateTypesFn)();
|
|
64
73
|
})
|
|
65
74
|
.demandCommand(1)
|
|
66
75
|
.parse();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,2CAAwC;AAExC,qFAAiF;AACjF,iDAAmD;AACnD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AC,UAAU,CAAC,MAAM,EAAE;QACzG,QAAQ,EAAE,0BAA0B;QACpC,OAAO,EAAE,qCAAqC;KAC/C,CAAC,CAAC;AACL,CAAC,EACD,CAAC,IAAI,EAAE,EAAE;IACP,IAAA,gCAAkB,EAAC,IAAI,CAAC,CAAC;AAC3B,CAAC,CACF;KACA,OAAO,CACN,gBAAgB,EAChB,kEAAkE,EAClE,GAAG,EAAE,GAAE,CAAC,EACR,CAAC,IAAI,EAAE,EAAE;IACP,IAAA,gCAAe,GAAE,CAAC;AACpB,CAAC,CACF;KAEA,aAAa,CAAC,CAAC,CAAC;KAChB,KAAK,EAAE,CAAC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"applications": [
|
|
3
3
|
{
|
|
4
|
-
"key": "
|
|
5
|
-
"description": "My
|
|
6
|
-
"variables": [
|
|
7
|
-
{
|
|
8
|
-
"key": "apiUrl",
|
|
9
|
-
"value": "http://localhost:8083"
|
|
10
|
-
}
|
|
11
|
-
]
|
|
4
|
+
"key": "default",
|
|
5
|
+
"description": "My new dcupl application"
|
|
12
6
|
}
|
|
13
7
|
],
|
|
14
8
|
"resources": [
|
|
15
9
|
{
|
|
16
|
-
"url": "${
|
|
10
|
+
"url": "${baseUrl}/models/a.dcupl.json",
|
|
17
11
|
"type": "model"
|
|
18
12
|
},
|
|
19
13
|
{
|
|
20
|
-
"url": "${
|
|
14
|
+
"url": "${baseUrl}/data/a.data.json",
|
|
21
15
|
"type": "data",
|
|
22
16
|
"model": "modelA"
|
|
23
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcupl/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "The official dcupl CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -33,13 +33,16 @@
|
|
|
33
33
|
"typescript": "^4.5.5"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dcupl/common": "
|
|
36
|
+
"@dcupl/common": "0.0.74",
|
|
37
|
+
"@dcupl/core": "0.0.74",
|
|
38
|
+
"@dcupl/loader": "0.0.74",
|
|
37
39
|
"@nestjs/common": "^8.4.5",
|
|
38
40
|
"@nestjs/core": "^8.4.5",
|
|
39
41
|
"@nestjs/platform-express": "^8.4.5",
|
|
40
42
|
"@nestjs/serve-static": "^2.2.2",
|
|
41
43
|
"adm-zip": "^0.5.9",
|
|
42
44
|
"axios": "^0.27.2",
|
|
45
|
+
"comment-json": "^4.2.3",
|
|
43
46
|
"compression": "^1.7.4",
|
|
44
47
|
"form-data": "^4.0.0",
|
|
45
48
|
"fs-extra": "^10.0.0",
|