peepe poopoo

This commit is contained in:
Hion-V 2022-09-12 12:11:20 +02:00
parent 44451dcc05
commit fe75120d69
8 changed files with 63 additions and 0 deletions

33
Dockerfile Normal file
View File

@ -0,0 +1,33 @@
FROM node:latest AS Build
RUN npm install haxe --global
RUN npm install lix --global --force
# RUN haxelib --global install hmm
# RUN haxelib --global run hmm setup
COPY ./app /app
WORKDIR /app
# RUN hmm install
RUN lix scope
RUN lix download
RUN lix use haxe stable
RUN lix install haxelib:hxnodejs
RUN lix install haxelib:haxe-loader
RUN lix install haxelib:react
RUN lix install haxelib:react-router-4
# RUN lix install --global hmm
RUN yarn install
WORKDIR /app/
EXPOSE 9000
ENV NODE_OPTIONS="--openssl-legacy-provider"
CMD ["yarn", "start"]
# CMD ["/bin/bash"]

4
app/.haxerc Normal file
View File

@ -0,0 +1,4 @@
{
"version": "4.2.5",
"resolveLibs": "scoped"
}

View File

@ -0,0 +1,3 @@
# @install: lix --silent download "haxelib:/haxe-loader#0.9.0" into haxe-loader/0.9.0/haxelib
-cp ${HAXE_LIBCACHE}/haxe-loader/0.9.0/haxelib/haxelib/
-D haxe-loader=0.9.0

View File

@ -0,0 +1,3 @@
# @install: lix --silent download "haxelib:/history#0.0.1" into history/0.0.1/haxelib
-cp ${HAXE_LIBCACHE}/history/0.0.1/haxelib/src
-D history=0.0.1

View File

@ -0,0 +1,3 @@
# @install: lix --silent download "haxelib:/html-entities#1.0.0" into html-entities/1.0.0/haxelib
-cp ${HAXE_LIBCACHE}/html-entities/1.0.0/haxelib/src
-D html-entities=1.0.0

View File

@ -0,0 +1,7 @@
# @install: lix --silent download "haxelib:/hxnodejs#12.1.0" into hxnodejs/12.1.0/haxelib
-cp ${HAXE_LIBCACHE}/hxnodejs/12.1.0/haxelib/src
-D hxnodejs=12.1.0
--macro allowPackage('sys')
# should behave like other target defines and not be defined in macro context
--macro define('nodejs')
--macro _internal.SuppressDeprecated.run()

View File

@ -0,0 +1,6 @@
# @install: lix --silent download "haxelib:/react-router-4#0.2.8" into react-router-4/0.2.8/haxelib
-lib history
-cp ${HAXE_LIBCACHE}/react-router-4/0.2.8/haxelib/src
-D react-router-4=0.2.8
--macro react.router.bundle.Bundle.addHook()

View File

@ -0,0 +1,4 @@
# @install: lix --silent download "haxelib:/react#1.12.0" into react/1.12.0/haxelib
-lib html-entities
-cp ${HAXE_LIBCACHE}/react/1.12.0/haxelib/src/lib
-D react=1.12.0