-
-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
HexaField
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
speigg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're in the process of moving everything over from xrengine -> etherealengine namespaces; let's do that here preemptively.
We have an @etherealengine org for npm, perhaps we should do npx @etherealengine/install for this?
The default npx behavior is to use @org_name/repo_name. But I believe we can define multiple scripts in Package.json. i.e. npx @org_name/repo_name script_name var_1 So, something like this (with the current repo name) @etherealengine/xrengine install my_engine_folder |
@jerknose Can you point me to some documentation about this? |
|
NPX Tutorial: https://dev.to/9zemian5/basic-npx-command-line-tool-45k4 |
|
Not seeing any reason we can't do |
|
@speigg Can we merge this in as a working template? I think which org name, and repo name are a separate issue. |
Summary
A summary of changes being made in this PR
Hey guys. I created a working prototype of a npx installer. Once published, we'll have a single command to configure everything.
"npx @xrengine/xrengine folder_name"
Then just run "cd folder_name & npm run dev"
Also, there's a GitHub action to auto publish to npm: https://github.com/marketplace/actions/npm-publish
References
closes #insert number here
Checklist
QA Steps
To test locally:
Run 'npm i -g'
Run 'npx xrengine folder_name'