Skip to content

Commit

Permalink
include deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Jan 3, 2025
1 parent 3d4201c commit a879e6a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/sveltekit-ssr-zip/app/Makefile
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)

0 comments on commit a879e6a

Please sign in to comment.