@dcupl/cli 0.0.1
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 +0 -0
- package/bin/dcupl +2 -0
- package/dist/index.js +81 -0
- package/files/demo/bookstore_01/dcupl/api/author.csv +9126 -0
- package/files/demo/bookstore_01/dcupl/api/book.csv +10059 -0
- package/files/demo/bookstore_01/dcupl/api/book_language.json +32 -0
- package/files/demo/bookstore_01/dcupl/api/publisher.csv +26 -0
- package/files/demo/bookstore_01/dcupl/bookstore.dcupl.json +56 -0
- package/files/demo/bookstore_01/dcupl/bookstore_github.ldp.json +26 -0
- package/files/demo/bookstore_01/dcupl/bookstore_local.ldp.json +21 -0
- package/files/demo/bookstore_01/package.json +15 -0
- package/files/demo/bookstore_01/readme.md +14 -0
- package/files/demo/bookstore_02/dcupl/api/author.csv +9126 -0
- package/files/demo/bookstore_02/dcupl/api/book.csv +10059 -0
- package/files/demo/bookstore_02/dcupl/api/book_language.json +31 -0
- package/files/demo/bookstore_02/dcupl/api/publisher.csv +26 -0
- package/files/demo/bookstore_02/dcupl/bookstore.dcupl.json +62 -0
- package/files/demo/bookstore_02/dcupl/bookstore_github.ldp.json +26 -0
- package/files/demo/bookstore_02/dcupl/bookstore_local.ldp.json +26 -0
- package/files/demo/bookstore_02/package.json +15 -0
- package/files/demo/demo_01/package.json +14 -0
- package/files/empty/empty_01/dcupl/data/a.data.json +6 -0
- package/files/empty/empty_01/dcupl/models/a.model.json +9 -0
- package/files/empty/empty_01/package.json +14 -0
- package/package.json +34 -0
- package/src/index.ts +89 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
[
|
|
3
|
+
{"key":"eng","language_name":"English"},
|
|
4
|
+
{"key":"en-US","language_name":"United States English"},
|
|
5
|
+
{"key":"fre","language_name":"French"},
|
|
6
|
+
{"key":"spa","language_name":"Spanish"},
|
|
7
|
+
{"key":"en-GB","language_name":"British English"},
|
|
8
|
+
{"key":"mul","language_name":"Multiple Languages"},
|
|
9
|
+
{"key":"grc","language_name":"Greek"},
|
|
10
|
+
{"key":"enm","language_name":"Middle English"},
|
|
11
|
+
{"key":"en-CA","language_name":"Canadian English"},
|
|
12
|
+
{"key":"ger","language_name":"German"},
|
|
13
|
+
{"key":"jpn","language_name":"Japanese"},
|
|
14
|
+
{"key":"ara","language_name":"Arabic"},
|
|
15
|
+
{"key":"nl","language_name":"Dutch"},
|
|
16
|
+
{"key":"zho","language_name":"Chinese"},
|
|
17
|
+
{"key":"lat","language_name":"Latin"},
|
|
18
|
+
{"key":"por","language_name":"Portuguese"},
|
|
19
|
+
{"key":"srp","language_name":"Serbian"},
|
|
20
|
+
{"key":"ita","language_name":"Italian"},
|
|
21
|
+
{"key":"rus","language_name":"Russian"},
|
|
22
|
+
{"key":"msa","language_name":"Malaysian"},
|
|
23
|
+
{"key":"glg","language_name":"Galician"},
|
|
24
|
+
{"key":"wel","language_name":"Welsh"},
|
|
25
|
+
{"key":"swe","language_name":"Swedish"},
|
|
26
|
+
{"key":"nor","language_name":"Norwegian"},
|
|
27
|
+
{"key":"tur","language_name":"Turkish"},
|
|
28
|
+
{"key":"gla","language_name":"Gaelic"},
|
|
29
|
+
{"key":"ale","language_name":"Aleut"}
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
key;publisher_name
|
|
2
|
+
1;10/18
|
|
3
|
+
2;1st Book Library
|
|
4
|
+
3;1st World Library
|
|
5
|
+
4;A & C Black (Childrens books)
|
|
6
|
+
5;A Harvest Book/Harcourt Inc.
|
|
7
|
+
6;A K PETERS
|
|
8
|
+
7;AA World Services
|
|
9
|
+
8;Abacus
|
|
10
|
+
9;Abacus Books
|
|
11
|
+
10;Abacus Books (London)
|
|
12
|
+
11;Abdo Publishing Company
|
|
13
|
+
12;Abingdon Press
|
|
14
|
+
13;Abradale Books/Harry N. Abrams
|
|
15
|
+
14;Abraham Guillen Press
|
|
16
|
+
15;Abrams
|
|
17
|
+
16;Absolute Press
|
|
18
|
+
17;Abstract Studio
|
|
19
|
+
18;Academic Press
|
|
20
|
+
19;Academica Press
|
|
21
|
+
20;Academy Chicago Publishers
|
|
22
|
+
21;Ace
|
|
23
|
+
22;Ace Book
|
|
24
|
+
23;Ace Books
|
|
25
|
+
24;Ace Hardcover
|
|
26
|
+
25;Ace Trade
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"key": "publisher",
|
|
4
|
+
"properties": [
|
|
5
|
+
{
|
|
6
|
+
"key": "publisher_name",
|
|
7
|
+
"datatype": "string"
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"key": "author",
|
|
13
|
+
"fields": [
|
|
14
|
+
{
|
|
15
|
+
"key": "book_ids",
|
|
16
|
+
"model": "book",
|
|
17
|
+
"type": "multiValued"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"properties": [
|
|
21
|
+
{
|
|
22
|
+
"key": "author_name",
|
|
23
|
+
"datatype": "string"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "book_language",
|
|
29
|
+
"properties": [
|
|
30
|
+
{
|
|
31
|
+
"key": "language_name",
|
|
32
|
+
"datatype": "string"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key": "book",
|
|
38
|
+
"fields": [
|
|
39
|
+
{
|
|
40
|
+
"key": "publisher_id",
|
|
41
|
+
"model": "publisher",
|
|
42
|
+
"type": "singleValued"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"properties": [
|
|
46
|
+
{
|
|
47
|
+
"key": "title",
|
|
48
|
+
"datatype": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "publication_date",
|
|
52
|
+
"datatype": "string"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "http://localhost:8083/bookstore.dcupl.json",
|
|
4
|
+
"type":"model"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"url": "http://localhost:8083/api/author.csv",
|
|
8
|
+
"type":"data",
|
|
9
|
+
"model": "author"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"url": "http://localhost:8083/api/book.csv",
|
|
13
|
+
"type":"data",
|
|
14
|
+
"model": "book"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"url": "http://localhost:8083/api/publisher.csv",
|
|
18
|
+
"type":"data",
|
|
19
|
+
"model": "publisher"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"url": "http://localhost:8083/api/book_language.json",
|
|
23
|
+
"type":"data",
|
|
24
|
+
"model": "book_language"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"url": "http://localhost:8083/bookstore.dcupl.json",
|
|
4
|
+
"type":"model"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"url": "http://localhost:8083/api/author.csv",
|
|
8
|
+
"type":"data",
|
|
9
|
+
"model": "author"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"url": "http://localhost:8083/api/book.csv",
|
|
13
|
+
"type":"data",
|
|
14
|
+
"model": "book"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"url": "http://localhost:8083/api/publisher.csv",
|
|
18
|
+
"type":"data",
|
|
19
|
+
"model": "publisher"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dcupl-starter",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "http-server dcupl --cors --port 8083"
|
|
7
|
+
},
|
|
8
|
+
"repository": {},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"http-server": "^14.0.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|