Build to awx/ui/static instead of dist

This commit is contained in:
Joe Fiorini
2015-07-20 11:33:09 -04:00
parent 98a37a354a
commit 811d0b1403
6 changed files with 18 additions and 18 deletions

3
.gitignore vendored
View File

@@ -18,8 +18,7 @@ awx/main/fixtures
awx/*.log awx/*.log
tower/tower_warnings.log tower/tower_warnings.log
celerybeat-schedule celerybeat-schedule
awx/ui/static/docs awx/ui/static
awx/ui/dist
# Python & setuptools # Python & setuptools
__pycache__ __pycache__

View File

@@ -3,7 +3,7 @@ recursive-include awx/static *.ico
recursive-include awx/templates *.html recursive-include awx/templates *.html
recursive-include awx/api/templates *.md *.html recursive-include awx/api/templates *.md *.html
recursive-include awx/ui/templates *.html recursive-include awx/ui/templates *.html
recursive-include awx/ui/dist * recursive-include awx/ui/static *
recursive-include awx/playbooks *.yml recursive-include awx/playbooks *.yml
recursive-include awx/lib/site-packages * recursive-include awx/lib/site-packages *
recursive-include config * recursive-include config *

View File

@@ -106,9 +106,10 @@ clean-grunt:
# Remove UI build files # Remove UI build files
clean-ui: clean-ui:
rm -rf awx/ui/static/dist rm -rf DEBUG
rm -rf awx/ui/build_test
rm -rf awx/ui/static/
rm -rf awx/ui/dist rm -rf awx/ui/dist
rm -rf awx/ui/static/docs
# Remove packer artifacts # Remove packer artifacts
clean-packer: clean-packer:
@@ -330,14 +331,14 @@ awx/ui/%: node_modules clean-ui Brocfile.js bower.json
$(BROCCOLI_BIN) build $@ -- $(UI_FLAGS) $(BROCCOLI_BIN) build $@ -- $(UI_FLAGS)
devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js
make awx/ui/dist make awx/ui/static
# Build minified JS/CSS. # Build minified JS/CSS.
minjs: node_modules clean-ui Brocfile.js minjs: node_modules clean-ui Brocfile.js
make -e awx/ui/dist UI_FLAGS="--silent --no-debug --no-tests --compress --no-docs --no-sourcemaps" make -e awx/ui/static UI_FLAGS="--silent --no-debug --no-tests --compress --no-docs --no-sourcemaps"
minjs_ci: node_modules clean-ui Brocfile.js minjs_ci: node_modules clean-ui Brocfile.js
make -e awx/ui/dist UI_FLAGS="--no-debug --compress --no-docs" make -e awx/ui/static UI_FLAGS="--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

View File

@@ -62,7 +62,7 @@ USE_L10N = True
USE_TZ = True USE_TZ = True
STATICFILES_DIRS = ( STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'ui', 'dist'), os.path.join(BASE_DIR, 'ui', 'static'),
os.path.join(BASE_DIR, 'static'), os.path.join(BASE_DIR, 'static'),
) )

View File

View File

@@ -3,23 +3,23 @@ framework: mocha
cwd: awx/ui/ cwd: awx/ui/
port: 7358 port: 7358
src_files: src_files:
- static/js/**/*.js - client/**/*.js
- static/lib/**/*.js - client/**/*.js
- tests/**/*.js - tests/**/*.js
serve_files: serve_files:
- dist/tower.concat.js - static/tower.concat.js
- dist/tests/**/*.js - static/tests/**/*.js
- dist/tests/unit.js - static/tests/unit.js
unsafe_file_serving: true unsafe_file_serving: true
test_page: tests.html test_page: tests.html
disable_watching: true disable_watching: true
routes: routes:
/awx/ui/dist: /static /awx/ui/static: /static
/tests.html: ../../packaging/grunt/testem.mustache /tests.html: ../../packaging/grunt/testem.mustache
/test-loader.js: static/lib/ember-cli-test-loader/test-loader.js /test-loader.js: client/lib/ember-cli-test-loader/test-loader.js
/vendor: ../../node_modules /vendor: ../../node_modules
/angular-mocks.js: dist/lib/angular-mocks/angular-mocks.js /angular-mocks.js: static/lib/angular-mocks/angular-mocks.js
/templates.js: dist/node-tests/templates.js /templates.js: static/templates.js
reporter: xunit reporter: xunit
launch_in_dev: launch_in_dev:
- Mocha - Mocha