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

feat: install core tools automatically when needed (closes #353) #391

Merged
merged 13 commits into from
Mar 4, 2022

Conversation

sinedied
Copy link
Member

@sinedied sinedied commented Feb 25, 2022

Best description is a short demo:
func2

🎉

What this PR does:

  • Check if Core Tools are installed globally
  • If not or if the global Core Tools version doesn't match the required Node.js runtime, it will install a local version shared among all CLI instances (installed in ~/.swa/core-tools
  • Multiple major versions of local Core Tools can coexist, for example v3 if you have a Node v12 project and v4 for a Node v16 projects (if you're using NVM for example)
  • Use local Core Tools version when available

src/core/func-core-tools.ts Outdated Show resolved Hide resolved
src/core/func-core-tools.ts Outdated Show resolved Hide resolved
src/core/func-core-tools.ts Outdated Show resolved Hide resolved
src/core/func-core-tools.ts Show resolved Hide resolved
@sinedied sinedied force-pushed the feat/install-core-tools branch from a3317ee to c51eeaf Compare March 4, 2022 14:31
@sinedied
Copy link
Member Author

sinedied commented Mar 4, 2022

All comments should have been resolved, there're now more testing code that actual code 😅

@sinedied sinedied force-pushed the feat/install-core-tools branch from 74eead1 to 0a2063e Compare March 4, 2022 15:09
@manekinekko manekinekko merged commit 5e98cba into Azure:main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: core Issues happened a the ./src/core level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants