project-config.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. .. include:: ../_header.rst
  2. .. highlight:: bash
  3. Project configuration
  4. ---------------------
  5. Any folder is a valid |PhaserEditor|_ project. However, it is convenient to create a ``phasereditor2d.config.json`` project configuration file, it the root of the project's folder.
  6. Every |PhaserEditor|_'s project template contains this file so probably you don't have to create it yourself.
  7. These are the settings supported by the project configuration:
  8. .. csv-table::
  9. :header: "Name", "Value"
  10. :widths: 1, 4
  11. "``skip``", "An array with the patterns for `filtering the project resources <resources-filtering.html>`_."
  12. "``plugins``", "An array with the path to `user plugins <plugins.html>`_."
  13. "``flags``", "An array with the `server options <server-options.html>`_."
  14. "``playUrl``", "A string with the address to open in the browser when you execute a Play command (``F12`` or ``F10``)."
  15. This is an example:
  16. .. code::
  17. {
  18. "skip": ["dist/", "editor-plugins/"],
  19. "plugins":
  20. [
  21. "editor-plugins/my-fonts-plugins",
  22. "editor-plugins/my-awesome-plugins"
  23. ],
  24. "flags": ["-port", "7171", "-disable-gzip"],
  25. "playUrl": "http://localhost:4200"
  26. }