Skip to content

Commit

Permalink
misc(cli): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed May 6, 2024
1 parent 4be811b commit 3c5b9b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions packages/main/src/command/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ export async function main() {

if (args[0] === 'dev') {
await writeConfig(config, envVars);
/**
* setup host.json for dev
"watchDirectories": [
"../src", // Watch the source directory
"." // watch the function.json
]
"defaultExecutablePath": "../node_modules/.bin/tsx",
"arguments": [
"watch",
"../src/main.ts"
]
*/
await startAzureFunctionHost(config);
} else if (args[0] === 'build') {
console.log(`Build the code`);
Expand Down
8 changes: 7 additions & 1 deletion packages/main/src/command/nammatham-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@ export interface NammathamConfigs {
export const defaultNammathamConfigs: NammathamConfigs = {
buildPath: '.nmt',
runtime: 'bun',
buildOption: {},
buildOption: {
nodeToolChain: {
dev: 'tsx',
bundle: 'esbuild',
package: 'pkg',
},
},
};

0 comments on commit 3c5b9b6

Please sign in to comment.