A lightning-fast frontend build tool designed to leverage JavaScript's native ESM system for unbundled development with instant browser updates.
82
Create a command-line tool that builds a web application project for production and monitors files for changes, rebuilding automatically when changes are detected.
The tool should execute a production build when started. It should output the build directory location to the console upon successful build completion.
After the initial build completes, the tool should enter watch mode to monitor for file changes. When a file changes, the tool should:
The tool must configure the build system with these settings:
build/app/ as the base URL for all assetsThe tool should load or create appropriate configuration to apply these settings.
The tool should handle termination signals (SIGINT) gracefully by shutting down the build process cleanly before exiting.
build directory @test@generates
/**
* Main entry point for the build watcher tool
*/
async function main() {
// Implementation here
}
main().catch((error) => {
console.error('Build failed:', error.message);
process.exit(1);
});Provides the build system and configuration management capabilities.
Install with Tessl CLI
npx tessl i tessl/npm-snowpackevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10