Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to executable bin that can be called from other projects #34

Open
vmwxiong opened this issue Mar 16, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@vmwxiong
Copy link

Not sure if this is something y'all are interested in doing, but I've set up my project to have a fork of playcanvas-rest-api-tools as an npm dependency, where it exports a bin so that I can do things like this:

  "scripts": {
    "download": "playcanvas-rest download-project",
  },

Currently have it set up so that it reads from a playcanvas-config.json in the parent project directory, in lieu of the config.json used here.

At the very least, turning it into an executable makes it easier to use as just a global cli tool as well.

@yaustar
Copy link
Collaborator

yaustar commented Mar 16, 2022

Yeah, I've been thinking about how to refactor this actually so that you can combine different transformations on the build. Eg adding CSP rules and then turning it into a one page html documentation.

Turning it into a binary is not something I've considered before so will keep that in mind

@yaustar yaustar added the enhancement New feature or request label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants