A lightning-fast frontend build tool designed to leverage JavaScript's native ESM system for unbundled development with instant browser updates.
82
A command-line utility that provides a structured interface for executing Snowpack build tool commands programmatically. This utility should simplify the execution of Snowpack operations by providing helper functions that handle command construction and execution.
--port flag @test--config flag @test--verbose flag is provided @test--reload flag is provided @test@generates
/**
* Executes snowpack init command to create a configuration file
* @param {string} cwd - Working directory where command should be executed
* @returns {Promise<{exitCode: number, stdout: string, stderr: string}>}
*/
async function initProject(cwd) {
// IMPLEMENTATION HERE
}
/**
* Starts the Snowpack development server
* @param {string} cwd - Working directory where command should be executed
* @param {Object} options - Server options
* @param {number} [options.port] - Custom port number
* @param {string} [options.config] - Path to custom config file
* @returns {Promise<{exitCode: number, stdout: string, stderr: string}>}
*/
async function startDev(cwd, options = {}) {
// IMPLEMENTATION HERE
}
/**
* Builds the project for production
* @param {string} cwd - Working directory where command should be executed
* @param {Object} options - Build options
* @param {boolean} [options.verbose] - Enable verbose output
* @returns {Promise<{exitCode: number, stdout: string, stderr: string}>}
*/
async function buildProject(cwd, options = {}) {
// IMPLEMENTATION HERE
}
/**
* Prepares the project by processing dependencies
* @param {string} cwd - Working directory where command should be executed
* @param {Object} options - Prepare options
* @param {boolean} [options.reload] - Clear cache before preparing
* @returns {Promise<{exitCode: number, stdout: string, stderr: string}>}
*/
async function prepareProject(cwd, options = {}) {
// IMPLEMENTATION HERE
}
module.exports = {
initProject,
startDev,
buildProject,
prepareProject
};Provides the build tool CLI commands that this utility wraps.
@satisfied-by
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