-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
VS Code launch configuration to debug the user's Indiekit installation #769
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Debug Indiekit", | ||
"skipFiles": ["<node_internals>/**"], | ||
"program": "${workspaceFolder}/node_modules/@indiekit/indiekit/bin/cli.js", | ||
// "args": ["--config", "path/to/your/indiekit.config.js"] | ||
"args": ["serve"], | ||
"env": { | ||
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}", | ||
"MONGO_URL": "${env:MONGO_URL}" | ||
} | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
"type": "module", | ||
"main": "index.js", | ||
"bin": { | ||
"create-indiekit": "bin/create.js" | ||
"create-indiekit": "bin/create.js delete-me" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I was using |
||
}, | ||
"files": [ | ||
"bin", | ||
|
@@ -35,6 +35,10 @@ | |
"url": "https://github.com/getindiekit/indiekit.git", | ||
"directory": "packages/create-indiekit" | ||
}, | ||
"scripts": { | ||
"create": "node bin/create.js", | ||
"test": "node --test --test-reporter=spec" | ||
}, | ||
"dependencies": { | ||
"@indiekit/preset-eleventy": "^1.0.0-beta.10", | ||
"@indiekit/preset-hugo": "^1.0.0-beta.10", | ||
|
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.
Is this commented out code needed?
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.
I wasn't sure which arguments were accepted by
cli.js
. Later I ended up using this: