mushroom-cli 1.1.1 → 1.1.2

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "files.eol": "\n"
3
+ }
package/README.md CHANGED
@@ -1,91 +1,91 @@
1
- # Mushroom CLI
2
-
3
- ## Init
4
-
5
- Init a mushroom json file
6
-
7
- npx mushroom-cli init json ./api/SampleProject.json [silent]
8
-
9
- Init a DotNet Core project which pre-install Mushroom Server
10
-
11
- npx mushroom-cli init netcore [projectName]
12
-
13
- ## Configure
14
-
15
- Add the mushroom json file into mushroom-config.json
16
-
17
- npx mushroom-cli config add ./api/yourProjectName.json
18
-
19
- Config gen docs api
20
-
21
- npx mushroom-cli config gen projectName docs ./wwwroot/docs.html [alias aliasName] [features file,auth,mail,driver] [roles Admin,User-Contributor]
22
-
23
- Config gen database docs
24
-
25
- npx mushroom-cli config gen projectName db-docs ./wwwroot/db-docs.html [alias aliasName] [features file,auth,mail]
26
-
27
- Config gen javascript driver
28
-
29
- npx mushroom-cli config gen projectName js-driver ./src/api/mushroom.api.js [alias aliasName] [roles Admin,User-Contributor] [tarball tarballName]
30
-
31
- Config gen typescript driver
32
-
33
- npx mushroom-cli config gen projectName ts-driver ./src/api/mushroom.api.ts [alias aliasName] [roles Admin,User-Contributor]
34
-
35
- Config gen entities for Mushroom project in CSharp and using MongoDb
36
-
37
- npx mushroom-cli config gen projectName c#-mongo ./API/Generated.cs [alias aliasName]
38
-
39
- Config gen entities for CSharp project which calls Mushroom API
40
-
41
- npx mushroom-cli config gen projectName c#-driver ./API/Generated.cs [roles Admin,User-Contributor] [alias aliasName] [access-modifier public] [features file,auth,mail]
42
-
43
- ## Genarate
44
-
45
- Generate docs api (html format)
46
-
47
- npx mushroom-cli gen projectName[@aliasName] docs [tmp]
48
-
49
- Generate database docs (html format)
50
-
51
- npx mushroom-cli gen projectName[@aliasName] db-docs [tmp]
52
-
53
- Generate npm package (tarball file)
54
-
55
- npx mushroom-cli gen projectName[@aliasName] js-driver-tarball
56
-
57
- Generate javascript driver
58
-
59
- npx mushroom-cli gen projectName[@aliasName] js-driver
60
-
61
- Generate typescript driver
62
-
63
- npx mushroom-cli gen projectName[@aliasName] ts-driver
64
-
65
- Generate entities for Mushroom project in CSharp and using MongoDb
66
-
67
- npx mushroom-cli gen projectName[@aliasName] c#-mongo
68
-
69
- Generate entities for CSharp project which calls Mushroom API
70
-
71
- npx mushroom-cli gen projectName[@aliasName] c#-driver
72
-
73
- ## Update
74
-
75
- Update ts code
76
-
77
- npx mushroom-cli update ts-code [file-path.ts] [remote-ts-code-url]
78
-
79
- ## Other
80
-
81
- Disable checking for update:
82
-
83
- npx mushroom-cli parameters --no-check-update
84
-
85
- ## Version
86
-
87
- ### 1.1.0
88
-
89
- Support MushroomServer 0.2.25.4 or later
90
-
91
- Support mushroomjs 1.1.0 or later
1
+ # Mushroom CLI
2
+
3
+ ## Init
4
+
5
+ Init a mushroom json file
6
+
7
+ npx mushroom-cli init json ./api/SampleProject.json [silent]
8
+
9
+ Init a DotNet Core project which pre-install Mushroom Server
10
+
11
+ npx mushroom-cli init netcore [projectName]
12
+
13
+ ## Configure
14
+
15
+ Add the mushroom json file into mushroom-config.json
16
+
17
+ npx mushroom-cli config add ./api/yourProjectName.json
18
+
19
+ Config gen docs api
20
+
21
+ npx mushroom-cli config gen projectName docs ./wwwroot/docs.html [alias aliasName] [features file,auth,mail,driver] [roles Admin,User-Contributor]
22
+
23
+ Config gen database docs
24
+
25
+ npx mushroom-cli config gen projectName db-docs ./wwwroot/db-docs.html [alias aliasName] [features file,auth,mail]
26
+
27
+ Config gen javascript driver
28
+
29
+ npx mushroom-cli config gen projectName js-driver ./src/api/mushroom.api.js [alias aliasName] [roles Admin,User-Contributor] [tarball tarballName]
30
+
31
+ Config gen typescript driver
32
+
33
+ npx mushroom-cli config gen projectName ts-driver ./src/api/mushroom.api.ts [alias aliasName] [roles Admin,User-Contributor]
34
+
35
+ Config gen entities for Mushroom project in CSharp and using MongoDb
36
+
37
+ npx mushroom-cli config gen projectName c#-mongo ./API/Generated.cs [alias aliasName]
38
+
39
+ Config gen entities for CSharp project which calls Mushroom API
40
+
41
+ npx mushroom-cli config gen projectName c#-driver ./API/Generated.cs [roles Admin,User-Contributor] [alias aliasName] [access-modifier public] [features file,auth,mail]
42
+
43
+ ## Genarate
44
+
45
+ Generate docs api (html format)
46
+
47
+ npx mushroom-cli gen projectName[@aliasName] docs [tmp]
48
+
49
+ Generate database docs (html format)
50
+
51
+ npx mushroom-cli gen projectName[@aliasName] db-docs [tmp]
52
+
53
+ Generate npm package (tarball file)
54
+
55
+ npx mushroom-cli gen projectName[@aliasName] js-driver-tarball
56
+
57
+ Generate javascript driver
58
+
59
+ npx mushroom-cli gen projectName[@aliasName] js-driver
60
+
61
+ Generate typescript driver
62
+
63
+ npx mushroom-cli gen projectName[@aliasName] ts-driver
64
+
65
+ Generate entities for Mushroom project in CSharp and using MongoDb
66
+
67
+ npx mushroom-cli gen projectName[@aliasName] c#-mongo
68
+
69
+ Generate entities for CSharp project which calls Mushroom API
70
+
71
+ npx mushroom-cli gen projectName[@aliasName] c#-driver
72
+
73
+ ## Update
74
+
75
+ Update ts code
76
+
77
+ npx mushroom-cli update ts-code [file-path.ts] [remote-ts-code-url]
78
+
79
+ ## Other
80
+
81
+ Disable checking for update:
82
+
83
+ npx mushroom-cli parameters --no-check-update
84
+
85
+ ## Version
86
+
87
+ ### 1.1.0
88
+
89
+ Support MushroomServer 0.2.25.4 or later
90
+
91
+ Support mushroomjs 1.1.0 or later
package/check-update.js CHANGED
@@ -1,9 +1,9 @@
1
- const fetch = require('node-fetch');
2
-
3
-
4
- function checkUpdate() {
5
- return fetch('https://registry.npmjs.org/mushroom-cli/')
6
- .then(res => res.json());
7
- }
8
-
9
- module.exports = checkUpdate;
1
+ const fetch = require("node-fetch");
2
+
3
+ function checkUpdate() {
4
+ return fetch("https://registry.npmjs.org/mushroom-cli/").then((res) =>
5
+ res.json(),
6
+ );
7
+ }
8
+
9
+ module.exports = checkUpdate;