diff options
author | Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> | 2024-08-22 19:48:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 19:48:56 +0200 |
commit | 78f345c48694628d36b62728512898f326b6c9f4 (patch) | |
tree | 9def676edb9468ae3250fe34e255352e3a769c23 /Makefile | |
parent | fix: avoid calling undefined method for anonymous users (#15440) (diff) | |
download | awx-78f345c48694628d36b62728512898f326b6c9f4.tar.xz awx-78f345c48694628d36b62728512898f326b6c9f4.zip |
Remove old UI (#15414)
* Remove source code for old UI
* Rename ui-next to ui
* Remove license scan for javascript dependencies
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 84 |
1 files changed, 5 insertions, 79 deletions
@@ -1,4 +1,4 @@ --include awx/ui_next/Makefile +-include awx/ui/Makefile PYTHON := $(notdir $(shell for i in python3.11 python3; do command -v $$i; done|sed 1q)) SHELL := bash @@ -107,7 +107,6 @@ endif develop refresh adduser migrate dbchange \ receiver test test_unit test_coverage coverage_html \ sdist \ - ui-release ui-devel \ VERSION PYTHON_VERSION docker-compose-sources \ .git/hooks/pre-commit @@ -130,7 +129,7 @@ clean-languages: find ./awx/locale/ -type f -regex '.*\.mo$$' -delete ## Remove temporary build files, compiled Python files. -clean: clean-ui clean-api clean-awxkit clean-dist +clean: clean-api clean-awxkit clean-dist rm -rf awx/public rm -rf awx/lib/site-packages rm -rf awx/job_status @@ -439,69 +438,6 @@ bulk_data: fi; \ $(PYTHON) tools/data_generators/rbac_dummy_data_generator.py --preset=$(DATA_GEN_PRESET) - -# UI TASKS -# -------------------------------------- - -UI_BUILD_FLAG_FILE = awx/ui/.ui-built - -clean-ui: - rm -rf node_modules - rm -rf awx/ui/node_modules - rm -rf awx/ui/build - rm -rf awx/ui/src/locales/_build - rm -rf $(UI_BUILD_FLAG_FILE) - # the collectstatic command doesn't like it if this dir doesn't exist. - mkdir -p awx/ui/build/static - -awx/ui/node_modules: - NODE_OPTIONS=--max-old-space-size=6144 $(NPM_BIN) --prefix awx/ui --loglevel warn --force ci - -$(UI_BUILD_FLAG_FILE): - $(MAKE) awx/ui/node_modules - $(PYTHON) tools/scripts/compilemessages.py - $(NPM_BIN) --prefix awx/ui --loglevel warn run compile-strings - $(NPM_BIN) --prefix awx/ui --loglevel warn run build - touch $@ - -ui-release: $(UI_BUILD_FLAG_FILE) - -ui-devel: awx/ui/node_modules - @$(MAKE) -B $(UI_BUILD_FLAG_FILE) - @if [ -d "/var/lib/awx" ] ; then \ - mkdir -p /var/lib/awx/public/static/css; \ - mkdir -p /var/lib/awx/public/static/js; \ - mkdir -p /var/lib/awx/public/static/media; \ - cp -r awx/ui/build/static/css/* /var/lib/awx/public/static/css; \ - cp -r awx/ui/build/static/js/* /var/lib/awx/public/static/js; \ - cp -r awx/ui/build/static/media/* /var/lib/awx/public/static/media; \ - fi - -ui-devel-instrumented: awx/ui/node_modules - $(NPM_BIN) --prefix awx/ui --loglevel warn run start-instrumented - -ui-devel-test: awx/ui/node_modules - $(NPM_BIN) --prefix awx/ui --loglevel warn run start - -ui-lint: - $(NPM_BIN) --prefix awx/ui install - $(NPM_BIN) run --prefix awx/ui lint - $(NPM_BIN) run --prefix awx/ui prettier-check - -ui-test: - $(NPM_BIN) --prefix awx/ui install - $(NPM_BIN) run --prefix awx/ui test - -ui-test-screens: - $(NPM_BIN) --prefix awx/ui install - $(NPM_BIN) run --prefix awx/ui pretest - $(NPM_BIN) run --prefix awx/ui test-screens --runInBand - -ui-test-general: - $(NPM_BIN) --prefix awx/ui install - $(NPM_BIN) run --prefix awx/ui pretest - $(NPM_BIN) run --prefix awx/ui/ test-general --runInBand - dist/$(SDIST_TAR_FILE): $(PYTHON) -m build -s ln -sf $(SDIST_TAR_FILE) dist/awx.tar.gz @@ -741,16 +677,6 @@ kind-dev-load: awx-kube-dev-build # Translation TASKS # -------------------------------------- -## generate UI .pot file, an empty template of strings yet to be translated -pot: $(UI_BUILD_FLAG_FILE) - $(NPM_BIN) --prefix awx/ui --loglevel warn run extract-template --clean - $(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-template --clean - -## generate UI .po files for each locale (will update translated strings for `en`) -po: $(UI_BUILD_FLAG_FILE) - $(NPM_BIN) --prefix awx/ui --loglevel warn run extract-strings -- --clean - $(NPM_BIN) --prefix awx/ui_next --loglevel warn run extract-strings -- --clean - ## generate API django .pot .po messages: @if [ "$(VENV_BASE)" ]; then \ @@ -797,6 +723,6 @@ help/generate: { lastLine = $$0 }' $(MAKEFILE_LIST) | sort -u @printf "\n" -## Display help for ui-next targets -help/ui-next: - @$(MAKE) -s help MAKEFILE_LIST="awx/ui_next/Makefile" +## Display help for ui targets +help/ui: + @$(MAKE) -s help MAKEFILE_LIST="awx/ui/Makefile" |