build_js_protocol.bat 406 B

12345678910111213141516171819202122
  1. @echo off
  2. if exist outjs (
  3. rd /s /q outjs
  4. )
  5. md outjs
  6. protoc --proto_path=internal/protocol/ --js_out=import_style=commonjs,binary:outjs/ internal/protocol/*.proto
  7. set oujsDir="%cd%"\outjs
  8. setlocal enableextensions enabledelayedexpansion
  9. set alljs=
  10. for /R %oujsDir% %%f in (*.js) do (
  11. set alljs=!alljs! %%f
  12. )
  13. set "alljs=%alljs:~1%"
  14. echo %alljs%
  15. browserify %alljs% --outfile nodes/web/static/pb.js