mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Build to awx/ui/static instead of dist
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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__
|
||||||
|
|||||||
@@ -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 *
|
||||||
|
|||||||
11
Makefile
11
Makefile
@@ -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
|
||||||
|
|||||||
@@ -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'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
18
testem.yml
18
testem.yml
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user