@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.
Files changed (31) hide show
  1. package/dist/functions/config/config-pull.d.ts +1 -0
  2. package/dist/functions/config/config-pull.js +42 -0
  3. package/dist/functions/config/config-pull.js.map +1 -0
  4. package/dist/functions/config/config-push.d.ts +1 -0
  5. package/dist/functions/config/config-push.js +47 -0
  6. package/dist/functions/config/config-push.js.map +1 -0
  7. package/dist/functions/config/config.common.d.ts +10 -0
  8. package/dist/functions/config/config.common.js +40 -0
  9. package/dist/functions/config/config.common.js.map +1 -0
  10. package/dist/functions/init.d.ts +1 -0
  11. package/dist/functions/init.js +96 -0
  12. package/dist/functions/init.js.map +1 -0
  13. package/dist/index.js +10 -80
  14. package/dist/index.js.map +1 -1
  15. package/files/common/_gitignore +2 -0
  16. package/files/common/dcupl.config.json +4 -0
  17. package/files/common/dcupl.secrets.json +3 -0
  18. package/files/common/readme.md +26 -0
  19. package/files/demo/bookstore_01/dcupl/bookstore.dcupl.lc.json +56 -0
  20. package/files/demo/bookstore_01/dcupl/data/book.csv +10059 -10059
  21. package/files/demo/bookstore_01/dcupl.config.json +5 -0
  22. package/files/empty/empty_01/dcupl/data/a.data.json +14 -2
  23. package/files/empty/empty_01/dcupl/example.dcupl.lc.json +36 -0
  24. package/files/empty/empty_01/dcupl/models/a.dcupl.json +14 -0
  25. package/files/empty/empty_01/dcupl.config.json +5 -0
  26. package/files/empty/empty_01/package.json +1 -1
  27. package/package.json +2 -1
  28. package/files/demo/bookstore_01/dcupl/bookstore_local.ldp.json +0 -33
  29. package/files/demo/bookstore_01/readme.md +0 -14
  30. package/files/demo/demo_01/package.json +0 -14
  31. package/files/empty/empty_01/dcupl/models/a.model.json +0 -9
@@ -0,0 +1,5 @@
1
+ {
2
+ "projectId": "",
3
+ "loaderPath": "dcupl/bookstore.dcupl.lc.json"
4
+ }
5
+
@@ -1,6 +1,18 @@
1
1
  [
2
2
  {
3
- "key": "a0",
4
- "tittle": "first item"
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
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "key": "modelA",
3
+ "properties": [
4
+ {
5
+ "key": "todo",
6
+ "datatype": "string"
7
+ },
8
+ {
9
+ "key": "title",
10
+ "datatype": "string",
11
+ "filter": true
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "projectId": "",
3
+ "loaderPath": "dcupl/example.dcupl.lc.json"
4
+ }
5
+
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "description": "",
5
5
  "scripts": {
6
- "serve": "http-server dcupl --cors -c-1"
6
+ "serve": "http-server dcupl --port 8083 --cors -c-1"
7
7
  },
8
8
  "repository": {},
9
9
  "author": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcupl/cli",
3
- "version": "0.0.8",
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
- # Lecture on
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
- {
11
- "url": "http://localhost:8083/api/book_language.json",
12
- "type":"data",
13
- "model": "book_language"
14
- }
@@ -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
- }
@@ -1,9 +0,0 @@
1
- {
2
- "key": "ModelA",
3
- "properties": [
4
- {
5
- "key": "title",
6
- "datatype": "string"
7
- }
8
- ]
9
- }