-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d4201c
commit a879e6a
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
BUILD_DIR=${CURDIR}/build | ||
|
||
# delete: | ||
# 1. ./build directory created by @sveltejs/adapter-node | ||
# 2. app ./node_modules | ||
clean: | ||
rm -rf ./node_modules | ||
rm -rf ./build | ||
rm -rf ./node_modules | ||
|
||
install: | ||
npm install | ||
|
||
# build @sveltejs/adapter-node app with prod deps: https://svelte.dev/docs/kit/adapter-node#Deploying | ||
build: | ||
npm run build | ||
cp ./package.json $(BUILD_DIR) | ||
cp ./run.sh $(BUILD_DIR) | ||
cp ./package*.json $(BUILD_DIR) | ||
cd $(BUILD_DIR) && npm ci --omit dev | ||
|
||
build-SvelteKitSsrFunction: clean install build | ||
cp -r $(BUILD_DIR)/. $(ARTIFACTS_DIR) |