INNER CODE UNIT · JavaScript

main

mylofi/webauthn-local-client · scripts/build-gh-pages.js:25

async function main() {
	console.log("*** Building GH-Pages Deployment ***");

	// try to make various .gh-build/** directories, if needed
	for (let dir of [ BUILD_DIR, BUILD_DIST_DIR, BUILD_DIST_AUTO_DIR, ]) {
		if (!(await safeMkdir(dir))) {
			throw new Error(`Target directory (${dir}) does not exist and could not be created.`);
		}
	}

	// copy test/* files
	await copyFilesTo(
		recursiveReadDir(TEST_DIR),
		TEST_DIR,
		BUILD_DIR,
		/*skipPatterns=*/[ "**/src", "**/dist", ]
	);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…