mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Allow customizing grunt cli options
Automation can now set GRUNT to provide a path to a specific grunt binary, or
to add grunt parameters. For example, to disable color output during a Jenkins
build:
GRUNT="grunt --no-color" make lintjs
This commit is contained in:
parent
93bd1d859a
commit
4dcc6938dd
5
Makefile
5
Makefile
@ -1,6 +1,7 @@
|
||||
PYTHON=python
|
||||
SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||
PACKER ?= packer
|
||||
GRUNT ?= grunt
|
||||
|
||||
# Get the branch information from git
|
||||
GIT_DATE := $(shell git log -n 1 --format="%ai")
|
||||
@ -152,11 +153,11 @@ node_modules: package.json
|
||||
|
||||
# Build minified JS/CSS.
|
||||
minjs: node_modules
|
||||
grunt
|
||||
$(GRUNT)
|
||||
|
||||
# Check .js files for errors and lint
|
||||
lintjs: node_modules
|
||||
grunt jshint
|
||||
$(GRUNT) jshint
|
||||
|
||||
# Build a pip-installable package into dist/ with a timestamped version number.
|
||||
dev_build:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user