This repository was archived by the owner on Feb 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I prefer a command |
Updated ~ |
egoist
reviewed
Nov 18, 2018
lib/utils/getGenerators.js
Outdated
if (name) { | ||
repos.push({ name, version: normalizeVersion(version) }) | ||
} | ||
})) | ||
}) | ||
]) | ||
|
||
return { packages, repos } |
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.
the generaors info are actually stored in /Users/$USERNAME/Library/Preferences/sao-nodejs/config.json
by lib/store.js
, maybe we could use that instead since it includes local generators.
sample:
{
"generators": {
"096eb1e0": {
"type": "npm",
"name": "sao-nm",
"version": "",
"slug": "sao-nm",
"subGenerator": false,
"hash": "096eb1e0",
"path": "/Users/egoist/.sao/V1/packages/096eb1e0/node_modules/sao-nm"
},
"7239d73c": {
"type": "npm",
"name": "sao-generator",
"version": "",
"slug": "sao-generator",
"subGenerator": false,
"hash": "7239d73c",
"path": "/Users/egoist/.sao/V1/packages/7239d73c/node_modules/sao-generator"
},
"a3448d32": {
"type": "local",
"path": "/Users/egoist/dev/sao-react",
"hash": "a3448d32"
},
"78c8ed0e": {
"type": "repo",
"slug": "nmrshll/frontend-scaffolds#react-tailwind",
"hash": "78c8ed0e",
"path": "/Users/egoist/.sao/V1/repos/78c8ed0e"
}
}
}
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!
@egoist any change for this to get merged? |
I just opened up a similar PR that displays a list of the cached generators if you type in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As shown in following snapshot