mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Support isolated build for documentation examples
This commit is contained in:
6
Makefile
6
Makefile
@@ -290,16 +290,16 @@ devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js
|
|||||||
|
|
||||||
# Build minified JS/CSS.
|
# Build minified JS/CSS.
|
||||||
minjs: node_modules clean-ui Brocfile.js
|
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
|
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
|
# Check .js files for errors and lint
|
||||||
jshint: node_modules Gruntfile.js
|
jshint: node_modules Gruntfile.js
|
||||||
$(GRUNT) $@
|
$(GRUNT) $@
|
||||||
|
|
||||||
ngdocs: node_modules Gruntfile.js
|
ngdocs: devjs Gruntfile.js
|
||||||
$(GRUNT) $@
|
$(GRUNT) $@
|
||||||
|
|
||||||
# Build a pip-installable package into dist/ with a timestamped version number.
|
# 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
|
export default
|
||||||
angular.module('systemStatus', [])
|
angular.module('systemStatus', [])
|
||||||
.directive('awSmartStatus', smartStatusDirective);
|
.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() {
|
export default [ function() {
|
||||||
return {
|
return {
|
||||||
scope: {
|
scope: {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"ignore": [
|
"ignore": [
|
||||||
".git",
|
".git",
|
||||||
"node_modules/**/node_modules",
|
"node_modules/**/node_modules",
|
||||||
"awx/ui/static/dist"
|
"awx/ui/static/docs/**/*"
|
||||||
],
|
],
|
||||||
"watch": [
|
"watch": [
|
||||||
"awx/ui/static"
|
"awx/ui/static"
|
||||||
|
|||||||
Reference in New Issue
Block a user