@dcupl/cli 0.0.7 → 0.0.10

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 (34) 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 +57 -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/demo/bookstore_01/package.json +1 -1
  23. package/files/demo/bookstore_02/dcupl/data/book.csv +1 -1
  24. package/files/demo/bookstore_02/package.json +1 -1
  25. package/files/empty/empty_01/dcupl/data/a.data.json +14 -2
  26. package/files/empty/empty_01/dcupl/example.dcupl.lc.json +36 -0
  27. package/files/empty/empty_01/dcupl/models/a.dcupl.json +14 -0
  28. package/files/empty/empty_01/dcupl.config.json +5 -0
  29. package/files/empty/empty_01/package.json +2 -2
  30. package/package.json +2 -1
  31. package/files/demo/bookstore_01/dcupl/bookstore_local.ldp.json +0 -33
  32. package/files/demo/bookstore_01/readme.md +0 -14
  33. package/files/demo/demo_01/package.json +0 -14
  34. 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
+
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "devDependencies": {
12
- "http-server": "^14.0.0"
12
+ "http-server": "^13.0.2"
13
13
  }
14
14
  }
15
15
 
@@ -10040,7 +10040,7 @@ key;title;isbn13;language_code;publication_date;publisher_id
10040
10040
  11105;A Viagem do Caminheiro da Alvorada (As Crónicas de Nárnia #5);9789722331326;por;2004-09-01;628
10041
10041
  11106;O Trono de Prata (As Crónicas de Nárnia #6);9789722331685;por;2004-04-16;628
10042
10042
  11107;A Última Batalha (As Crónicas de Nárnia #7);9789722332200;por;2004-07-17;628
10043
- 11062;Venac sonetnih venaca; Puževa srma;9788644101277;srp;1996-01-01;1046
10043
+ 11062;Venac sonetnih venaca Puževa srma;9788644101277;srp;1996-01-01;1046
10044
10044
  1863;Purgatorio (La Divina Commedia #2);9780195087451;ita;2004-04-08;1432
10045
10045
  11063;Il genio dei numeri;9788817128711;ita;2002-02-01;1701
10046
10046
  11064;Piccole donne;9788838461132;ita;2001-04-15;1538
@@ -9,7 +9,7 @@
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "devDependencies": {
12
- "http-server": "^14.0.0"
12
+ "http-server": "^13.0.2"
13
13
  }
14
14
  }
15
15
 
@@ -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
+ "environment": "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,12 +3,12 @@
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": "",
10
10
  "license": "MIT",
11
11
  "devDependencies": {
12
- "http-server": "^14.0.0"
12
+ "http-server": "^13.0.2"
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcupl/cli",
3
- "version": "0.0.7",
3
+ "version": "0.0.10",
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": "^14.0.0"
13
- }
14
- }
@@ -1,9 +0,0 @@
1
- {
2
- "key": "ModelA",
3
- "properties": [
4
- {
5
- "key": "title",
6
- "datatype": "string"
7
- }
8
- ]
9
- }