@dcupl/cli 0.0.3 → 0.0.6
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/index.d.ts +1 -0
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -0
- package/files/common/.vscode/settings.json +18 -0
- package/files/demo/bookstore_01/dcupl/bookstore_local.ldp.json +16 -4
- package/files/demo/bookstore_01/dcupl/{api → data}/author.csv +0 -0
- package/files/demo/{bookstore_02/dcupl/api → bookstore_01/dcupl/data}/book.csv +10059 -10059
- package/files/demo/bookstore_01/dcupl/{api → data}/book_language.json +0 -0
- package/files/demo/bookstore_01/dcupl/data/publisher.csv +2265 -0
- package/files/demo/bookstore_01/dcupl/models/author.dcupl.json +16 -0
- package/files/demo/bookstore_01/dcupl/models/book.dcupl.json +31 -0
- package/files/demo/bookstore_01/dcupl/models/book_language.dcupl.json +9 -0
- package/files/demo/bookstore_01/dcupl/models/publisher.dcupl.json +9 -0
- package/files/demo/bookstore_02/dcupl/bookstore_local.ldp.json +53 -5
- package/files/demo/bookstore_02/dcupl/data/address.csv +1001 -0
- package/files/demo/bookstore_02/dcupl/{api → data}/author.csv +0 -0
- package/files/demo/{bookstore_01/dcupl/api → bookstore_02/dcupl/data}/book.csv +10059 -10059
- package/files/demo/bookstore_02/dcupl/{api → data}/book_language.json +0 -1
- package/files/demo/bookstore_02/dcupl/data/country.csv +233 -0
- package/files/demo/bookstore_02/dcupl/data/cust_order.csv +4001 -0
- package/files/demo/bookstore_02/dcupl/data/customer.csv +2001 -0
- package/files/demo/bookstore_02/dcupl/data/publisher.csv +2265 -0
- package/files/demo/bookstore_02/dcupl/model/adv_address.dcupl.json +20 -0
- package/files/demo/bookstore_02/dcupl/model/adv_country.dcupl.json +7 -0
- package/files/demo/bookstore_02/dcupl/model/adv_cust_order.dcupl.json +21 -0
- package/files/demo/bookstore_02/dcupl/model/adv_customer.dcupl.json +35 -0
- package/files/demo/bookstore_02/dcupl/model/author.dcupl.json +19 -0
- package/files/demo/bookstore_02/dcupl/model/book.dcupl.json +73 -0
- package/files/demo/bookstore_02/dcupl/model/book_language.dcupl.json +9 -0
- package/files/demo/bookstore_02/dcupl/model/publisher.dcupl.json +10 -0
- package/files/demo/bookstore_02/package.json +1 -1
- package/package.json +8 -8
- package/files/demo/bookstore_01/dcupl/api/publisher.csv +0 -26
- package/files/demo/bookstore_01/dcupl/bookstore.dcupl.json +0 -56
- package/files/demo/bookstore_01/dcupl/bookstore_github.ldp.json +0 -26
- package/files/demo/bookstore_02/dcupl/api/publisher.csv +0 -26
- package/files/demo/bookstore_02/dcupl/bookstore.dcupl.json +0 -62
- package/files/demo/bookstore_02/dcupl/bookstore_github.ldp.json +0 -26
- package/src/index.ts +0 -89
- package/tsconfig.json +0 -106
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "address",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"key": "country_id",
|
|
6
|
+
"model": "country",
|
|
7
|
+
"type": "singleValued"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"properties": [
|
|
11
|
+
{
|
|
12
|
+
"key": "street_number",
|
|
13
|
+
"datatype": "string"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "city",
|
|
17
|
+
"datatype": "string"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "cust_order",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"key": "customer_id",
|
|
6
|
+
"model": "customer",
|
|
7
|
+
"type": "singleValued"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"key": "book_ids",
|
|
11
|
+
"model": "book",
|
|
12
|
+
"type": "multiValued"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"properties": [
|
|
16
|
+
{
|
|
17
|
+
"key": "overall_price",
|
|
18
|
+
"datatype": "float"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"key": "customer",
|
|
4
|
+
"fields": [
|
|
5
|
+
{
|
|
6
|
+
"key": "addresses",
|
|
7
|
+
"model": "address",
|
|
8
|
+
"type": "multiValued"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"key": "country",
|
|
12
|
+
"model": "country",
|
|
13
|
+
"type": "multiValued",
|
|
14
|
+
"derive":
|
|
15
|
+
{
|
|
16
|
+
"localField":"addresses",
|
|
17
|
+
"remoteField": "country_id"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"properties": [
|
|
22
|
+
{
|
|
23
|
+
"key": "first_name",
|
|
24
|
+
"datatype": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"key": "last_name",
|
|
28
|
+
"datatype": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "email",
|
|
32
|
+
"datatype": "string"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "author",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"key": "book_ids",
|
|
6
|
+
"model": "book",
|
|
7
|
+
"type": "multiValued"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"properties": [
|
|
11
|
+
{
|
|
12
|
+
"key": "author_name",
|
|
13
|
+
"datatype": "string",
|
|
14
|
+
"filter": {
|
|
15
|
+
"comparisonType": "containsIgnoreCase"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "book",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"key": "publisher_id",
|
|
6
|
+
"model": "publisher",
|
|
7
|
+
"type": "singleValued",
|
|
8
|
+
"filter": {
|
|
9
|
+
"calculateFacets": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"key": "language_code",
|
|
14
|
+
"model": "book_language",
|
|
15
|
+
"type": "singleValued",
|
|
16
|
+
"filter": {
|
|
17
|
+
"calculateFacets": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"key": "author",
|
|
22
|
+
"model": "author",
|
|
23
|
+
"type": "multiValued",
|
|
24
|
+
"resolve":
|
|
25
|
+
{
|
|
26
|
+
"model":"author",
|
|
27
|
+
"field":"book_ids"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"properties": [
|
|
32
|
+
{
|
|
33
|
+
"key": "title",
|
|
34
|
+
"datatype": "string",
|
|
35
|
+
"filter": {
|
|
36
|
+
"autocompletion": {
|
|
37
|
+
"maxNrOfSuggestions": 5
|
|
38
|
+
},
|
|
39
|
+
"comparisonType": "containsIgnoreCaseAndWhitespace"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "isbn13",
|
|
44
|
+
"datatype": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"key": "publication_date",
|
|
48
|
+
"datatype": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "language",
|
|
52
|
+
"datatype": "string",
|
|
53
|
+
"derive": {
|
|
54
|
+
"localField": "language_code",
|
|
55
|
+
"remoteProperty": "language_name"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "publisher",
|
|
60
|
+
"datatype": "string",
|
|
61
|
+
"derive": {
|
|
62
|
+
"localField": "publisher_id",
|
|
63
|
+
"remoteProperty": "publisher_name"
|
|
64
|
+
},
|
|
65
|
+
"filter":{
|
|
66
|
+
"autocompletion": {
|
|
67
|
+
"maxNrOfSuggestions": 5
|
|
68
|
+
},
|
|
69
|
+
"comparisonType": "containsIgnoreCase"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcupl/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "A CLI for dcupl",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
"build": "npm run clean && tsc",
|
|
11
11
|
"clean": "rm -rf dist",
|
|
12
12
|
"global": "npm i -g && dcupl",
|
|
13
|
-
"
|
|
13
|
+
"publish:npm": "npm run build && npm publish --access=public"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"bin/",
|
|
17
|
-
"
|
|
18
|
-
"files/"
|
|
19
|
-
"tsconfig.json"
|
|
17
|
+
"dist/",
|
|
18
|
+
"files/"
|
|
20
19
|
],
|
|
21
20
|
"author": "",
|
|
22
21
|
"license": "ISC",
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"dependencies": {
|
|
22
|
+
"devDependencies": {
|
|
25
23
|
"@types/fs-extra": "^9.0.13",
|
|
26
24
|
"@types/inquirer": "^8.2.0",
|
|
27
25
|
"@types/yargs": "^17.0.8",
|
|
28
|
-
"typescript": "^4.5.5"
|
|
26
|
+
"typescript": "^4.5.5"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
29
|
"fs-extra": "^10.0.0",
|
|
30
30
|
"inquirer": "^8.2.0",
|
|
31
31
|
"kleur": "^4.1.4",
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"key": "publisher",
|
|
4
|
-
"properties": [
|
|
5
|
-
{
|
|
6
|
-
"key": "publisher_name",
|
|
7
|
-
"datatype": "string"
|
|
8
|
-
}
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"key": "author",
|
|
13
|
-
"properties": [
|
|
14
|
-
{
|
|
15
|
-
"key": "author_name",
|
|
16
|
-
"datatype": "string"
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"key": "book_language",
|
|
22
|
-
"properties": [
|
|
23
|
-
{
|
|
24
|
-
"key": "language_code",
|
|
25
|
-
"datatype": "string"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"key": "language_name",
|
|
29
|
-
"datatype": "string"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"key": "book",
|
|
35
|
-
"fields": [
|
|
36
|
-
{
|
|
37
|
-
"key": "publisher_id",
|
|
38
|
-
"model": "publisher",
|
|
39
|
-
"type": "singleValued"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"key": "author_ids",
|
|
43
|
-
"model": "author",
|
|
44
|
-
"type": "multiValued"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"properties": [
|
|
48
|
-
{
|
|
49
|
-
"key": "title",
|
|
50
|
-
"datatype": "string"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"key": "language_id",
|
|
54
|
-
"datatype": "string"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"key": "publication_date",
|
|
58
|
-
"datatype": "string"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
]
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
]
|
package/src/index.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import yargs from 'yargs';
|
|
2
|
-
import { hideBin } from 'yargs/helpers';
|
|
3
|
-
|
|
4
|
-
import { copySync, mkdirSync } from 'fs-extra';
|
|
5
|
-
import { join, resolve } from 'path';
|
|
6
|
-
import inquirer from 'inquirer';
|
|
7
|
-
|
|
8
|
-
import { blue } from 'kleur';
|
|
9
|
-
|
|
10
|
-
const initFn = () => {
|
|
11
|
-
inquirer
|
|
12
|
-
.prompt([
|
|
13
|
-
{
|
|
14
|
-
type: 'input',
|
|
15
|
-
name: 'projectName',
|
|
16
|
-
message: "What's your project name",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
type: 'list',
|
|
20
|
-
name: 'projectType',
|
|
21
|
-
message: 'Do you want to start from scratch or a demo application?',
|
|
22
|
-
choices: [
|
|
23
|
-
{
|
|
24
|
-
name: 'Empty Project',
|
|
25
|
-
value: 'empty',
|
|
26
|
-
checked: true,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'Demo Project',
|
|
30
|
-
value: 'demo',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: 'Demo Bookstore',
|
|
34
|
-
value: 'bookstore',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
])
|
|
39
|
-
.then(({ projectName, projectType }) => {
|
|
40
|
-
const codeBasePath = resolve(__dirname, '../');
|
|
41
|
-
const filesBasePath = join(codeBasePath, 'files');
|
|
42
|
-
const demoBasePath = join(filesBasePath, 'demo', 'demo_01',);
|
|
43
|
-
const bookstoreBasePath = join(filesBasePath, 'demo','bookstore_01');
|
|
44
|
-
const empty01BasePath = join(filesBasePath, 'empty', 'empty_01');
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const currentBasePath = join(process.cwd());
|
|
48
|
-
const projectFolderPath = join(currentBasePath, projectName);
|
|
49
|
-
|
|
50
|
-
mkdirSync(projectFolderPath, { recursive: true });
|
|
51
|
-
|
|
52
|
-
if (projectType === 'demo') {
|
|
53
|
-
copySync(demoBasePath, projectFolderPath, {
|
|
54
|
-
recursive: true,
|
|
55
|
-
overwrite: true,
|
|
56
|
-
});
|
|
57
|
-
}else if (projectType === 'bookstore') {
|
|
58
|
-
copySync(bookstoreBasePath, projectFolderPath, {
|
|
59
|
-
recursive: true,
|
|
60
|
-
overwrite: true,
|
|
61
|
-
});
|
|
62
|
-
} else if (projectType === 'empty') {
|
|
63
|
-
copySync(empty01BasePath, projectFolderPath, {
|
|
64
|
-
recursive: true,
|
|
65
|
-
overwrite: true,
|
|
66
|
-
});
|
|
67
|
-
} else {
|
|
68
|
-
throw new Error('you have to select a project type');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
console.log(blue('All done! - Next Steps:'));
|
|
72
|
-
|
|
73
|
-
console.log('cd ' + projectName);
|
|
74
|
-
console.log('npm i');
|
|
75
|
-
console.log('npm run serve');
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
yargs(hideBin(process.argv))
|
|
80
|
-
.command(
|
|
81
|
-
'init',
|
|
82
|
-
'Init a Project',
|
|
83
|
-
() => {},
|
|
84
|
-
(argv) => {
|
|
85
|
-
initFn();
|
|
86
|
-
},
|
|
87
|
-
)
|
|
88
|
-
.demandCommand(1)
|
|
89
|
-
.parse();
|