@dcupl/cli 0.0.8 → 0.0.11
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/config/config-pull.d.ts +1 -0
- package/dist/functions/config/config-pull.js +42 -0
- package/dist/functions/config/config-pull.js.map +1 -0
- package/dist/functions/config/config-push.d.ts +1 -0
- package/dist/functions/config/config-push.js +47 -0
- package/dist/functions/config/config-push.js.map +1 -0
- package/dist/functions/config/config.common.d.ts +10 -0
- package/dist/functions/config/config.common.js +40 -0
- package/dist/functions/config/config.common.js.map +1 -0
- package/dist/functions/init.d.ts +1 -0
- package/dist/functions/init.js +96 -0
- package/dist/functions/init.js.map +1 -0
- package/dist/index.js +10 -80
- package/dist/index.js.map +1 -1
- package/files/common/_gitignore +2 -0
- package/files/common/dcupl.config.json +4 -0
- package/files/common/dcupl.secrets.json +3 -0
- package/files/common/readme.md +26 -0
- package/files/demo/bookstore_01/dcupl/bookstore.dcupl.lc.json +56 -0
- package/files/demo/bookstore_01/dcupl/data/book.csv +10059 -10059
- package/files/demo/bookstore_01/dcupl.config.json +5 -0
- package/files/empty/empty_01/dcupl/data/a.data.json +14 -2
- package/files/empty/empty_01/dcupl/example.dcupl.lc.json +36 -0
- package/files/empty/empty_01/dcupl/models/a.dcupl.json +14 -0
- package/files/empty/empty_01/dcupl.config.json +5 -0
- package/files/empty/empty_01/package.json +1 -1
- package/package.json +2 -1
- package/files/demo/bookstore_01/dcupl/bookstore_local.ldp.json +0 -33
- package/files/demo/bookstore_01/readme.md +0 -14
- package/files/demo/demo_01/package.json +0 -14
- package/files/empty/empty_01/dcupl/models/a.model.json +0 -9
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"key": "
|
|
4
|
-
"
|
|
3
|
+
"key": "step-1",
|
|
4
|
+
"todo": "Todo: You can update this dataset in 'data/a.data.json'",
|
|
5
|
+
"title": "dcupl is simple to use"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"key": "step-2",
|
|
9
|
+
"title": "but also quite powerful",
|
|
10
|
+
"todo": "Todo: Add a property 'subtitle' in 'models/a.dcupl.json'",
|
|
11
|
+
"subtitle": "It worked!"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"key": "step-3",
|
|
15
|
+
"title": "Checkout the docs",
|
|
16
|
+
"todo": "Todo: Check out our docs at https://docs.dcupl.com"
|
|
5
17
|
}
|
|
6
18
|
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"presets": [
|
|
3
|
+
{
|
|
4
|
+
"key": "default",
|
|
5
|
+
"title": "Default preset",
|
|
6
|
+
"description": "My default preset",
|
|
7
|
+
"environmentKeys": ["default"]
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"environments": [
|
|
11
|
+
{
|
|
12
|
+
"key": "default",
|
|
13
|
+
"title": "Default environment",
|
|
14
|
+
"description": "My default environment for local development",
|
|
15
|
+
"variables": [
|
|
16
|
+
{
|
|
17
|
+
"key": "apiUrl",
|
|
18
|
+
"value": "http://localhost:8083"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"headers": [],
|
|
24
|
+
"resources": [
|
|
25
|
+
{
|
|
26
|
+
"url": "${apiUrl}/models/a.dcupl.json",
|
|
27
|
+
"type": "model"
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
{
|
|
31
|
+
"url": "${apiUrl}/data/a.data.json",
|
|
32
|
+
"type": "data",
|
|
33
|
+
"model": "modelA"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcupl/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "A CLI for dcupl",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"typescript": "^4.5.5"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"axios": "^0.26.1",
|
|
29
30
|
"fs-extra": "^10.0.0",
|
|
30
31
|
"inquirer": "^8.2.0",
|
|
31
32
|
"kleur": "^4.1.4",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"url": "http://localhost:8083/models/book.dcupl.json",
|
|
4
|
-
"type":"model"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"url": "http://localhost:8083/models/book_language.dcupl.json",
|
|
8
|
-
"type":"model"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"url": "http://localhost:8083/models/author.dcupl.json",
|
|
12
|
-
"type":"model"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"url": "http://localhost:8083/models/publisher.dcupl.json",
|
|
16
|
-
"type":"model"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"url": "http://localhost:8083/data/author.csv",
|
|
20
|
-
"type":"data",
|
|
21
|
-
"model": "author"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"url": "http://localhost:8083/data/book.csv",
|
|
25
|
-
"type":"data",
|
|
26
|
-
"model": "book"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"url": "http://localhost:8083/data/publisher.csv",
|
|
30
|
-
"type":"data",
|
|
31
|
-
"model": "publisher"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dcupl-starter",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "http-server dcupl --cors -c-1"
|
|
7
|
-
},
|
|
8
|
-
"repository": {},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"http-server": "^13.0.2"
|
|
13
|
-
}
|
|
14
|
-
}
|