@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
18 lines • 722 B
JavaScript
import fs from "fs-extra";
import path from "node:path";
export async function setupProjectDirs(projectPath) {
// Stub out code asset sources expected by CDK
await fs.ensureDir(`${projectPath}`);
await fs.ensureDir(`${projectPath}/src`);
await fs.ensureDir(`${projectPath}/src/functions`);
await fs.ensureDir(`${projectPath}/src/clients`);
}
export async function setupBuildDirs(projectPath) {
// Stub out code asset sources expected by CDK
await fs.ensureDir(path.join(projectPath, ".build"));
await fs.ensureDir(path.join(projectPath, ".build-web"));
}
export async function cleanupBuildDirs(path) {
await fs.remove(path); // Cleanup build dirs
}
//# sourceMappingURL=lifecycle.js.map