File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -92,3 +92,29 @@ npm run namemigration -- --name desctiption_of_changes
92
92
```
93
93
94
94
95
+ ### Testing CLI commands during development
96
+
97
+
98
+ Make sure you have not ` adminforth ` globally installed. If you have it, remove it:
99
+
100
+
101
+ ``` sh
102
+ npm uninstall -g adminforth
103
+ ```
104
+
105
+ Then, in the root of the project, run once:
106
+
107
+ ```
108
+ cd adminforth/adminforth
109
+ npm run build
110
+ ```
111
+
112
+ This will automatically make an npm link to the ` adminforth ` package in the root of the project.
113
+
114
+ Then, go to testing app, e.g. created with CLI, and use next command:
115
+
116
+ ```
117
+ npx -g adminforth <your command under development>
118
+ ```
119
+
120
+ This will always run latest version of adminforth package.
You can’t perform that action at this time.
0 commit comments