mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
Build and handle jsfiles using webpack instead of django-pipeline.
Also renames bundle.js to translations.js.
This commit is contained in:
@@ -196,6 +196,10 @@ if __name__ == "__main__":
|
||||
default=False,
|
||||
help=("Run the tests which failed the last time "
|
||||
"test-backend was run. Implies --nonfatal-errors."))
|
||||
parser.add_option('--no-webpack', dest='no_webpack',
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Do not run webpack in tests.")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
zerver_test_dir = 'zerver/tests/'
|
||||
@@ -301,6 +305,10 @@ if __name__ == "__main__":
|
||||
generate_fixtures_command.append('--force')
|
||||
subprocess.call(generate_fixtures_command)
|
||||
|
||||
if not options.no_webpack:
|
||||
print("Running Webpack with webpack.dev.config.js")
|
||||
subprocess.check_call('tools/webpack')
|
||||
|
||||
if options.processes is None:
|
||||
options.processes = 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user