setup yarn scripts and added new commands to build script
This commit is contained in:
parent
a523c3db8e
commit
245be7786f
2 changed files with 7 additions and 4 deletions
|
@ -4,10 +4,8 @@ WORKDIR /build
|
||||||
COPY . /build
|
COPY . /build
|
||||||
RUN mkdir /build/public/js
|
RUN mkdir /build/public/js
|
||||||
RUN mkdir /build/public/css
|
RUN mkdir /build/public/css
|
||||||
RUN npm install -g sass
|
RUN yarn init
|
||||||
RUN npm install -g typescript
|
RUN yarn compile
|
||||||
RUN tsc
|
|
||||||
RUN sass scss/:public/css --style=compressed --no-source-map
|
|
||||||
|
|
||||||
# Prepare Webserver
|
# Prepare Webserver
|
||||||
ARG INSTALL_CRON=0
|
ARG INSTALL_CRON=0
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
"repository": "git@gitlab.jonasled.de:jonasled/website.git",
|
"repository": "git@gitlab.jonasled.de:jonasled/website.git",
|
||||||
"author": "jonasled <git@jonasled.de>",
|
"author": "jonasled <git@jonasled.de>",
|
||||||
"license": "LGPL-3.0-or-later",
|
"license": "LGPL-3.0-or-later",
|
||||||
|
"scripts": {
|
||||||
|
"compile": "concurrently \"yarn css\" \"yarn js\"",
|
||||||
|
"css": "sass scss/:public/css --style=compressed --no-source-map",
|
||||||
|
"js": "tsc"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.14.31",
|
"@types/node": "^14.14.31",
|
||||||
"sass": "^1.32.8",
|
"sass": "^1.32.8",
|
||||||
|
|
Loading…
Reference in a new issue