mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02: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:
5
Makefile
5
Makefile
@@ -1,6 +1,7 @@
|
|||||||
PYTHON=python
|
PYTHON=python
|
||||||
SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
SITELIB=$(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||||
PACKER ?= packer
|
PACKER ?= packer
|
||||||
|
GRUNT ?= grunt
|
||||||
|
|
||||||
# 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")
|
||||||
@@ -152,11 +153,11 @@ node_modules: package.json
|
|||||||
|
|
||||||
# Build minified JS/CSS.
|
# Build minified JS/CSS.
|
||||||
minjs: node_modules
|
minjs: node_modules
|
||||||
grunt
|
$(GRUNT)
|
||||||
|
|
||||||
# Check .js files for errors and lint
|
# Check .js files for errors and lint
|
||||||
lintjs: node_modules
|
lintjs: node_modules
|
||||||
grunt jshint
|
$(GRUNT) jshint
|
||||||
|
|
||||||
# Build a pip-installable package into dist/ with a timestamped version number.
|
# Build a pip-installable package into dist/ with a timestamped version number.
|
||||||
dev_build:
|
dev_build:
|
||||||
|
|||||||
Reference in New Issue
Block a user