Skip to content

Commit

Permalink
Fix default target.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 3, 2025
1 parent fe6379d commit 1fbfa35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.PHONY: build
build: build-lib build-web

# Yes, this is a bit funky. See "Upgrading/changing dependencies" in README.md
# for details.
bun.lock: package-lock.json
bun pm migrate --save-text-lockfile --force

.PHONY: build
build: build-lib build-web

.PHONY: build-lib
build-lib: setup
bun run script/build-lib.ts
Expand Down
2 changes: 2 additions & 0 deletions script/build-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ await writeFile(
".cubing-icon:before {\n vertical-align: -15%;",
),
);

console.log(`The library has been built at: ${LIB_OUTPUT_DIR}`);
2 changes: 2 additions & 0 deletions script/build-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ await writeFile(join(SITE_OUTPUT_DIR, HTML_INDEX_FILENAME), dom.serialize());
await cp(LIB_OUTPUT_DIR, SITE_OUTPUT_DIR, {
recursive: true,
});

console.log(`The web site has been built at: ${SITE_OUTPUT_DIR}`);

0 comments on commit 1fbfa35

Please sign in to comment.