Compare commits

...

5 commits

4 changed files with 21 additions and 11 deletions

View file

@ -1,11 +1,6 @@
/* /*
# makefile
!/makefile
# config
!/.eslintrc.yml
!/tsconfig.json !/tsconfig.json
# node modules # node modules

View file

@ -8,14 +8,16 @@ RUN apk update \
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install \
&& apk del bash git openssh
COPY tsconfig.json ./
COPY . . COPY src ./src
RUN npm run build \ RUN npm run build \
&& npm prune --production \ && npm prune --production
&& apk del bash git openssh
COPY static ./static/
EXPOSE 30000 EXPOSE 30000

View file

@ -1,9 +1,22 @@
PAR := $(MAKE) -j 128 PAR := $(MAKE) -j 128
DOCKER_NAME := pleshevski
DOCKER_TAG := pleshevski
watch: watch:
$(PAR) hr ts-w $(PAR) hr ts-w
docker-restart: docker-stop docker-run
docker-stop:
docker rm ${DOCKER_NAME} --force
docker-run:
docker run -d --restart always -p 30000:30000 --name ${DOCKER_NAME} ${DOCKER_TAG}
docker-build:
docker build -t ${DOCKER_TAG} .
build: ts build: ts
start: start:

View file

@ -14,7 +14,7 @@ export function Layout(page: AnyNode): Elem {
rel: "stylesheet", rel: "stylesheet",
href: "/static/styles.css", href: "/static/styles.css",
}), }),
E("title", "hello world"), E("title", "pleshevski"),
]), ]),
E("body", [div({ id: "root" }, page), config.isDev && HotReloadScript()]), E("body", [div({ id: "root" }, page), config.isDev && HotReloadScript()]),
]); ]);