-
Notifications
You must be signed in to change notification settings - Fork 9
Update README.md #247
base: development
Are you sure you want to change the base?
Update README.md #247
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,12 +72,21 @@ The following fields will determine how the Ciao Web UI will beconfigured. | |
|
|
||
| #### Building application | ||
|
|
||
| In order to build application the 'install.sh' must be executed. This script will intsall dependencies using the npm package manager and also build minified JS scripts used with browser compatibility. | ||
| Note: this process is only necessary for development as minified scripts and dependencies are already provided by the application. | ||
| In order to build the application a Makefile is provided. Use make 'TARGET' to build Ciao-Webui. When running either 'install' or 'install-dev' targets. Note that if not set, the environment variable 'NODE_ENV' will be set to 'production' by default. | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we planning to fix #129 any time soon? If not, we should add that npm install d3-scale needs to be run before make install-dev. Is this also needed for make install?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix is already in development branch. |
||
| ###### make install | ||
| Use 'make' or 'make install' in order to build ciao-webui application with latest 'production' ready code. | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't really understand the difference between make install and make install-dev from reading these two paragraphs.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @markdryan yes, the difference is that make install does not recompile js code, make install-dev does, I'll reword to make it more understandable. Thanks
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it will be better to replace 'build' with 'install' as make install does not actually build any code. |
||
| ###### make install-dev | ||
| Use 'make install-dev' to install development dependencies and fully build and update dependencies for the Ciao-Webui project. Use this target for development environments. | ||
|
|
||
| ###### make uninstall | ||
| Remove Ciao-Webui from the system and cleans build files. | ||
|
|
||
| ###### make clean | ||
| Clean build generated files from working directory. | ||
| **Note:** Use this target to clean the working directory after runnin 'make install-dev' target. | ||
|
|
||
| # install while setting a "development" environment | ||
| $ ./install.sh development | ||
| # In this case NODE_ENV will be set to "development" | ||
|
|
||
| #### Running application: | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd reword slightly
Use make 'TARGET' to build Ciao-Webui, where TARGET can be either 'install' or 'install-dev'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, it's more clear.