Support isolated build for documentation examples

This commit is contained in:
Joe Fiorini
2015-03-24 17:27:03 -04:00
parent 0a2a297dcb
commit 09d631c2c1
5 changed files with 7 additions and 6 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@
import 'tower/debug';

View File

@@ -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);

View File

@@ -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: {

View File

@@ -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"