Build and handle jsfiles using webpack instead of django-pipeline.

Also renames bundle.js to translations.js.
This commit is contained in:
Mehanig
2017-05-23 15:03:53 -07:00
committed by Tim Abbott
parent 4f39d4fc22
commit 3f5d0e69fb
14 changed files with 45 additions and 24 deletions

View File

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