viur-framework / flare

Python framework to create web-apps on top of Pyodide
https://flare.docs.viur.dev
MIT License
33 stars 10 forks source link

Merging tool chains into flare.py service program #36

Closed phorward closed 3 years ago

phorward commented 3 years ago

This pull request merges the tools flare.py, watch.py and gen-files-json.py into one single service program flare.py.

$ ./flare.py  -h
usage: flare.py [-h] -s SOURCE -t TARGET [-n NAME] [-m] [-c] [-z] [-w]

Flare application packager and build tool

optional arguments:
  -h, --help            show this help message and exit
  -s SOURCE, --source SOURCE
                        Path to source folder of the flare application
  -t TARGET, --target TARGET
                        Path to output folder of the packaged flare
                        application
  -n NAME, --name NAME  Name of the target package
  -m, --minify          Minify source by removing docstrings
  -c, --compile         Compile into pre-compiled .PYC-files
  -z, --zip             Create zipped package to decreased number of download
                        requests
  -w, --watch           Run in watch mode, re-compile target on any changes in
                        source

There's currently no change on the gulp.py as its usage is not clear right now.