We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d4201c commit a879e6aCopy full SHA for a879e6a
examples/sveltekit-ssr-zip/app/Makefile
@@ -1,16 +1,21 @@
1
BUILD_DIR=${CURDIR}/build
2
3
+# delete:
4
+# 1. ./build directory created by @sveltejs/adapter-node
5
+# 2. app ./node_modules
6
clean:
- rm -rf ./node_modules
7
rm -rf ./build
8
+ rm -rf ./node_modules
9
10
install:
11
npm install
12
13
+# build @sveltejs/adapter-node app with prod deps: https://svelte.dev/docs/kit/adapter-node#Deploying
14
build:
15
npm run build
- cp ./package.json $(BUILD_DIR)
16
cp ./run.sh $(BUILD_DIR)
17
+ cp ./package*.json $(BUILD_DIR)
18
+ cd $(BUILD_DIR) && npm ci --omit dev
19
20
build-SvelteKitSsrFunction: clean install build
21
cp -r $(BUILD_DIR)/. $(ARTIFACTS_DIR)
0 commit comments