SamVerschueren / vscode-yo

Yeoman plugin for VS Code
MIT License
87 stars 15 forks source link

atom / code integration collaboration #7

Open david-driscoll opened 8 years ago

david-driscoll commented 8 years ago

Taking this from twitter to here, just to see what we can do!

I'd love to have a core npm module that wraps most of the functionality up, so that both atom and code can just pull from the same feature set.

Right now atom-yeoman has the following features:

Thoughts and ideas below.

Node Module

Example atom/code usage:

let yeomanService = new YeomanService((q: IQuestion) => showQuestionForUser(q));
yeomanService.list(process.cwd())
    .then((generators) => listGeneratorsForUser())
    .then(generator => generator.run())
    .then(result => doSomethingWithResult())

This would make it much simpler for people to use yeoman in an electron like application, so it may have uses outside of just atom/code.

Atom

Has CSP issues, there are clear work around that is already handled. Hopefully this could be handled outside of the node module, so we don't have to worry about the nasty CSP code everywhere.

Code

Not sure if CSP is enabled, it's entirely possible it is not currently enabled.

sindresorhus commented 8 years ago

:+1: