-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from virtual-labs/help-commands
Help commands
- Loading branch information
Showing
5 changed files
with
172 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
1. To run the build script using nodejs, you have to clone this repository in your experiment project folder. | ||
2. Then, you have to install the dependencies using the following command: | ||
```bash | ||
npm install | ||
``` | ||
3. After that, you can run the build script using the following commands and options: | ||
```bash | ||
Usage: node main.js [mode] [options] | ||
Modes: | ||
build Build the experiment | ||
validate Validate the code and content | ||
clean Clean the build and plugins | ||
deploy Deploy the experiment locally | ||
buildLab Build the lab | ||
deployLab Deploy the lab locally | ||
|
||
|
||
Common Options: | ||
--src path to the experiment, default is parent directory | ||
--debug enable debug mode | ||
--help display help for command | ||
|
||
|
||
Mode: build | ||
Usage: build [options] | ||
Options: | ||
--clean clean build folder | ||
--validateEslint validate the code using eslint | ||
--validateExpDesc validate the experiment description and assessment files | ||
--disablePlugin disable the plugins | ||
--deploy deploy the experiment locally | ||
--env environment to build the experiment | ||
|
||
|
||
Mode: Validate | ||
Usage: validate [options] | ||
Options: | ||
--validateEslint validate the code using eslint | ||
--validateExpDesc validate the experiment description and assessment files | ||
|
||
|
||
Mode: clean | ||
Usage: clean | ||
|
||
|
||
Mode: deploy | ||
Usage: deploy | ||
|
||
|
||
Mode: buildLab | ||
Usage: buildLab [options] | ||
Options: | ||
--src path to the lab, default is parent directory | ||
--deploy deploy the lab locally | ||
--release release type of the lab, default is minor | ||
|
||
|
||
Mode: deployLab | ||
Usage: deployLab [options] | ||
Options: | ||
--src path to the lab, default is parent directory | ||
--release release type of the lab, default is minor | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
1. To run the build script using the npm package you need to make sure that the experiment has package.json file in the root directory. If you don't have one, you can create it by running the following command in the root directory of your experiment: | ||
```bash | ||
npm init -y | ||
``` | ||
2. After initialising the experiment as a node project, you can run the build script by running the following command: | ||
```bash | ||
Usage: npx @virtual-labs/buildexp [command] | ||
Options: | ||
Commands: | ||
build-exp Build the experiment | ||
build-exp-deploy Build the experiment and deploy locally | ||
build-exp-noplugin Build the experiment without using any plugins | ||
clean-build-exp Clean and build the experiment | ||
validate Validate the code and content | ||
clean Clean the build and plugins | ||
deploy Deploy the experiment locally | ||
build-lab Build the lab | ||
deploy-lab Deploy the lab locally | ||
build-and-deploy-lab Build and deploy the lab locally | ||
help Display help for command | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters