package.json-portless-key.json 797 B

1234567891011121314151617181920212223242526
  1. {
  2. "_comment_purpose": "Example showing how to put portless config inside an existing package.json instead of a separate portless.json file",
  3. "_comment_usage": "Add the 'portless' key to your existing package.json. String shorthand for just the name, object for full config.",
  4. "name": "@myorg/myapp",
  5. "version": "1.0.0",
  6. "scripts": {
  7. "dev": "next dev",
  8. "dev:app": "next dev",
  9. "build": "next build"
  10. },
  11. "_string_shorthand_example": "portless: 'myapp'",
  12. "portless": {
  13. "name": "myapp",
  14. "script": "dev:app"
  15. },
  16. "_alternative_string_form": {
  17. "_comment": "If you just want to set the name, use a string instead:",
  18. "_example": "\"portless\": \"myapp\""
  19. },
  20. "_precedence": "CLI flags > package.json portless key > portless.json app entry > defaults"
  21. }