funcgo
v1.3.0
Published
Readme
funcgo
Standard tooling for func development.
Usage
Install with
pnpm add funcgo -Dsetup project suggestions:
funcgo setupapply setup suggestions:
funcgo setup --fixdevelopment:
funcgo dev -- <args>build cli project with Rolldown:
funcgo buildbuild for an explicit Node.js target:
funcgo build --target n20|n22|n24continuously build when TypeScript files change:
funcgo build --watchcontinuously build using custom paths or globs:
funcgo build --watch --watch-path 'src/**/*.ts' --watch-path config.json
Params
funcgo setup: [--fix]funcgo dev: [-f, 'entry file'] [--, 'command args']funcgo build: [-f, 'entry file'] [-o, 'output dir'] [-e, 'external package'] [--target, 'n20, n22, or n24'] [--watch] [--watch-path, 'file, directory, or positive glob']
Application precompilation
funcgo build precompiles statically analyzable func application graphs by
default and falls back to runtime graph compilation for dynamic definitions.
Configure the behavior through package.json:
{
"func": {
"precompile": "auto"
}
}"auto"(default): precompile when safe, otherwise fall back."required": fail the build unless the complete graph is precompiled.false: disable application graph precompilation.
