mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
More readme and makefile updates
* Set log levels for build commands * Add locale build dirs to cleanup commands * Move container dev environment build section closer to top of readme
This commit is contained in:
10
Makefile
10
Makefile
@@ -463,18 +463,20 @@ endif
|
|||||||
# UI TASKS
|
# UI TASKS
|
||||||
# --------------------------------------
|
# --------------------------------------
|
||||||
awx/ui_next/node_modules:
|
awx/ui_next/node_modules:
|
||||||
$(NPM_BIN) --prefix awx/ui_next install
|
$(NPM_BIN) --prefix awx/ui_next --loglevel warn --ignore-scripts install
|
||||||
|
|
||||||
clean-ui:
|
clean-ui:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
rm -rf awx/ui_next/node_modules
|
rm -rf awx/ui_next/node_modules
|
||||||
rm -rf awx/ui_next/build
|
rm -rf awx/ui_next/build
|
||||||
|
rm -rf awx/ui_next/src/locales/_build
|
||||||
|
git checkout awx/ui_next/src/locales
|
||||||
|
|
||||||
ui-release: ui-devel
|
ui-release: ui-devel
|
||||||
ui-devel: awx/ui_next/node_modules
|
ui-devel: awx/ui_next/node_modules
|
||||||
$(NPM_BIN) --prefix awx/ui_next run extract-strings
|
$(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-strings
|
||||||
$(NPM_BIN) --prefix awx/ui_next run compile-strings
|
$(NPM_BIN) --prefix awx/ui_next --loglevel warn run compile-strings
|
||||||
$(NPM_BIN) --prefix awx/ui_next run build
|
$(NPM_BIN) --prefix awx/ui_next --loglevel warn run build
|
||||||
git checkout awx/ui_next/src/locales
|
git checkout awx/ui_next/src/locales
|
||||||
mkdir -p awx/public/static/css
|
mkdir -p awx/public/static/css
|
||||||
mkdir -p awx/public/static/js
|
mkdir -p awx/public/static/js
|
||||||
|
|||||||
@@ -15,6 +15,19 @@ npm --prefix=awx/ui_next install
|
|||||||
npm --prefix=awx/ui_next start
|
npm --prefix=awx/ui_next start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Build for the Development Containers
|
||||||
|
If you just want to build a ui for the container-based awx development
|
||||||
|
environment, use these make targets:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# The ui will be reachable at https://localhost:8043 or
|
||||||
|
# http://localhost:8013
|
||||||
|
make ui-devel
|
||||||
|
|
||||||
|
# clean up
|
||||||
|
make clean-ui
|
||||||
|
```
|
||||||
|
|
||||||
### Using an External Server
|
### Using an External Server
|
||||||
If you normally run awx on an external host/server (in this example, `awx.local`),
|
If you normally run awx on an external host/server (in this example, `awx.local`),
|
||||||
you'll need use the `TARGET` environment variable when starting the ui development
|
you'll need use the `TARGET` environment variable when starting the ui development
|
||||||
@@ -24,18 +37,6 @@ server:
|
|||||||
TARGET='https://awx.local:8043' npm --prefix awx/ui_next start
|
TARGET='https://awx.local:8043' npm --prefix awx/ui_next start
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build for the Development Containers
|
|
||||||
If you just want to build a ui that you can use with the container-based awx
|
|
||||||
development environment, you can use these make targets:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
# The ui will be reachable at https://localhost:8043 or http://localhost:8013
|
|
||||||
make ui-devel
|
|
||||||
|
|
||||||
# clean up
|
|
||||||
make clean-ui
|
|
||||||
```
|
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
```shell
|
```shell
|
||||||
# run code formatting check
|
# run code formatting check
|
||||||
|
|||||||
Reference in New Issue
Block a user