-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable deno in vscode #18
Comments
@zifeo So that's why I was having "Cannot find type Deno" error, I was thinking of working on this issue. Should I add the code to add the config to settings.json when the command |
@destifo we have a concept of modules, and for that features I would push to have a dedicated one that can ensure this kind of the structures on all the situations (e.g. the changes should be enforced again if erased in a merge). You can then "hook" the module at the correct location in the call stack, @Yohe-Am may be able to advise for that or have another opinion? |
Hey, yeah. I've been thinking about this a bit and I think this implementation can be split between the tasks and the TBD environments module #24 which is responsible for managing the env vars and running custom hooks when we We have the This looks something like... //remote.ts
export const helpers = () => ({
helper: task("helper", () => { /* do stuff */ }),
helper2: task("helper2", () => { /* do stuff 2 */ })
}); // ghjk.ts
import { helpers } from "https://remote.ts";
const { helper } = helpers();
task("myTask", {
dependsOn: [helper],
async fn() { /* do stuff */ }
}) This works well enough today though we might want to add a config on tasks that allows us to hide them in the CLI. What I'm getting at is that we can have a such a "library" of helper tasks exposed by default on the ghjk CLI. The functionality in this ticket could then be part of a generic To aid this, we might want to introduce a "task group" functionality of sorts to group certain tasks together like so... $ ghjk x build front
$ ghjk x build back ...the most straightfwd implementation of which I can think of which is using the whitespace in the task names to figure it out. task("build front", async () => { /* build frontend */ } )
task("build back", async () => { /* build backend */ }) This is relevant because we'd want the default helpers to be grouped together. $ ghjk x helpers init # I imagine a general purpose, prompt-driven init helper here
$ ghjk x helpers init vscode # handles this ticket
$ ghjk x helpers init tsconfig # handles #19
$ ghjk x helpers lint # handles #33 I think explicit |
If ghjk.ts is localed at the same directory than a .vscode/settings.json file, inject the following idempotently:
The text was updated successfully, but these errors were encountered: