mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
Support isolated build for documentation examples
This commit is contained in:
parent
0a2a297dcb
commit
09d631c2c1
6
Makefile
6
Makefile
@ -290,16 +290,16 @@ devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js
|
||||
|
||||
# Build minified JS/CSS.
|
||||
minjs: node_modules clean-ui Brocfile.js
|
||||
$(BROCCOLI) build awx/ui/dist -- --silent --no-debug --no-tests --compress
|
||||
$(BROCCOLI) build awx/ui/dist -- --silent --no-debug --no-tests --compress --no-docs
|
||||
|
||||
minjs_ci: node_modules clean-ui Brocfile.js
|
||||
$(BROCCOLI) build awx/ui/dist -- --no-debug --compress
|
||||
$(BROCCOLI) build awx/ui/dist -- --no-debug --compress --no-docs
|
||||
|
||||
# Check .js files for errors and lint
|
||||
jshint: node_modules Gruntfile.js
|
||||
$(GRUNT) $@
|
||||
|
||||
ngdocs: node_modules Gruntfile.js
|
||||
ngdocs: devjs Gruntfile.js
|
||||
$(GRUNT) $@
|
||||
|
||||
# Build a pip-installable package into dist/ with a timestamped version number.
|
||||
|
||||
1
awx/ui/static/js/docs.js
Normal file
1
awx/ui/static/js/docs.js
Normal file
@ -0,0 +1 @@
|
||||
import 'tower/debug';
|
||||
@ -1,4 +1,4 @@
|
||||
import smartStatusDirective from 'tower/smart-status/smart-status.directive.js';
|
||||
import smartStatusDirective from 'tower/smart-status/smart-status.directive';
|
||||
export default
|
||||
angular.module('systemStatus', [])
|
||||
.directive('awSmartStatus', smartStatusDirective);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import smartStatusController from 'tower/smart-status/smart-status.controller.js';
|
||||
import smartStatusController from 'tower/smart-status/smart-status.controller';
|
||||
export default [ function() {
|
||||
return {
|
||||
scope: {
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"ignore": [
|
||||
".git",
|
||||
"node_modules/**/node_modules",
|
||||
"awx/ui/static/dist"
|
||||
"awx/ui/static/docs/**/*"
|
||||
],
|
||||
"watch": [
|
||||
"awx/ui/static"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user