mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Use broccoli for ui make tasks
This commit is contained in:
9
Makefile
9
Makefile
@@ -3,6 +3,7 @@ SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; pr
|
|||||||
OFFICIAL ?= no
|
OFFICIAL ?= no
|
||||||
PACKER ?= packer
|
PACKER ?= packer
|
||||||
GRUNT ?= $(shell [ -t 0 ] && echo "grunt" || echo "grunt --no-color")
|
GRUNT ?= $(shell [ -t 0 ] && echo "grunt" || echo "grunt --no-color")
|
||||||
|
BROCCOLI ?= broccoli
|
||||||
|
|
||||||
# Get the branch information from git
|
# Get the branch information from git
|
||||||
GIT_DATE := $(shell git log -n 1 --format="%ai")
|
GIT_DATE := $(shell git log -n 1 --format="%ai")
|
||||||
@@ -89,7 +90,7 @@ clean-grunt:
|
|||||||
|
|
||||||
# Remove UI build files
|
# Remove UI build files
|
||||||
clean-ui:
|
clean-ui:
|
||||||
rm -f awx/ui/static/{js,css}/awx*.{js,css}
|
rm -rf awx/ui/static/dist
|
||||||
rm -rf awx/ui/static/docs
|
rm -rf awx/ui/static/docs
|
||||||
|
|
||||||
# Remove temporary build files, compiled Python files.
|
# Remove temporary build files, compiled Python files.
|
||||||
@@ -271,9 +272,11 @@ package.json:
|
|||||||
node_modules: Gruntfile.js bower.json package.json
|
node_modules: Gruntfile.js bower.json package.json
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
devjs: node_modules clean-ui
|
||||||
|
$(BROCCOLI) build awx/ui/static/dist -- --debug
|
||||||
# Build minified JS/CSS.
|
# Build minified JS/CSS.
|
||||||
minjs: node_modules
|
minjs: node_modules clean-ui
|
||||||
$(GRUNT)
|
$(BROCCOLI) build awx/ui/static/dist -- --silent --no-debug --no-tests --compress
|
||||||
|
|
||||||
# Check .js files for errors and lint
|
# Check .js files for errors and lint
|
||||||
jshint: node_modules
|
jshint: node_modules
|
||||||
|
|||||||
Reference in New Issue
Block a user