-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (27 loc) · 925 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!make
#--------------------------------------------------------------------------
# The Makefile offers a developer-friendly approach to automate
# the set up of the Vite TypeScript package toolkit.
#
# You can run the following make command:
#
# make local-setup
#--------------------------------------------------------------------------
# The project source code directory.
CODE_DIR=/code
# Include the DotEnv file if it exists.
ifneq (,$(wildcard ./.env))
include .env
export
endif
#--------------------------------------------------------------------------
# Makefile targets.
#
# The `local-setup` target executes the Yarn `install`
# command to install package's dependencies.
#--------------------------------------------------------------------------
local-setup:
exec docker run -it --rm --name vite-toolkit \
-v $(PWD)${CODE_DIR}:/app \
-w="/app" \
node:alpine /bin/sh -c "yarn install --immutable"