mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Build to awx/ui/static instead of dist
This commit is contained in:
parent
98a37a354a
commit
811d0b1403
3
.gitignore
vendored
3
.gitignore
vendored
@ -18,8 +18,7 @@ awx/main/fixtures
|
||||
awx/*.log
|
||||
tower/tower_warnings.log
|
||||
celerybeat-schedule
|
||||
awx/ui/static/docs
|
||||
awx/ui/dist
|
||||
awx/ui/static
|
||||
|
||||
# Python & setuptools
|
||||
__pycache__
|
||||
|
||||
@ -3,7 +3,7 @@ recursive-include awx/static *.ico
|
||||
recursive-include awx/templates *.html
|
||||
recursive-include awx/api/templates *.md *.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/lib/site-packages *
|
||||
recursive-include config *
|
||||
|
||||
11
Makefile
11
Makefile
@ -106,9 +106,10 @@ clean-grunt:
|
||||
|
||||
# Remove UI build files
|
||||
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/static/docs
|
||||
|
||||
# Remove packer artifacts
|
||||
clean-packer:
|
||||
@ -330,14 +331,14 @@ awx/ui/%: node_modules clean-ui Brocfile.js bower.json
|
||||
$(BROCCOLI_BIN) build $@ -- $(UI_FLAGS)
|
||||
|
||||
devjs: node_modules clean-ui Brocfile.js bower.json Gruntfile.js
|
||||
make awx/ui/dist
|
||||
make awx/ui/static
|
||||
|
||||
# Build minified JS/CSS.
|
||||
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
|
||||
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
|
||||
jshint: node_modules Gruntfile.js
|
||||
|
||||
@ -62,7 +62,7 @@ USE_L10N = True
|
||||
USE_TZ = True
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(BASE_DIR, 'ui', 'dist'),
|
||||
os.path.join(BASE_DIR, 'ui', 'static'),
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
)
|
||||
|
||||
|
||||
18
testem.yml
18
testem.yml
@ -3,23 +3,23 @@ framework: mocha
|
||||
cwd: awx/ui/
|
||||
port: 7358
|
||||
src_files:
|
||||
- static/js/**/*.js
|
||||
- static/lib/**/*.js
|
||||
- client/**/*.js
|
||||
- client/**/*.js
|
||||
- tests/**/*.js
|
||||
serve_files:
|
||||
- dist/tower.concat.js
|
||||
- dist/tests/**/*.js
|
||||
- dist/tests/unit.js
|
||||
- static/tower.concat.js
|
||||
- static/tests/**/*.js
|
||||
- static/tests/unit.js
|
||||
unsafe_file_serving: true
|
||||
test_page: tests.html
|
||||
disable_watching: true
|
||||
routes:
|
||||
/awx/ui/dist: /static
|
||||
/awx/ui/static: /static
|
||||
/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
|
||||
/angular-mocks.js: dist/lib/angular-mocks/angular-mocks.js
|
||||
/templates.js: dist/node-tests/templates.js
|
||||
/angular-mocks.js: static/lib/angular-mocks/angular-mocks.js
|
||||
/templates.js: static/templates.js
|
||||
reporter: xunit
|
||||
launch_in_dev:
|
||||
- Mocha
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user