-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
886 changed files
with
30,385 additions
and
22,799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
node_modules | ||
*/node_modules | ||
*/dist | ||
*/out | ||
*/out.node | ||
docs | ||
.github | ||
.github | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,6 @@ config.env | |
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
!.yarn/versions | ||
out | ||
out.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
FROM node:15.12-alpine | ||
FROM node:21-alpine | ||
MAINTAINER Candid Dauth <[email protected]> | ||
|
||
CMD yarn run server | ||
CMD yarn run prod-server | ||
EXPOSE 8080 | ||
ENV CACHE_DIR=/opt/facilmap/cache | ||
HEALTHCHECK --start-period=60s --start-interval=3s --timeout=5s --retries=1 \ | ||
CMD wget -O/dev/null 'http://127.0.0.1:8080/socket.io/?EIO=4&transport=polling' || exit 1 | ||
|
||
RUN apk add --no-cache yarn | ||
|
||
RUN adduser -D -h /opt/facilmap -s /bin/sh facilmap | ||
RUN mkdir /opt/facilmap && adduser -D -H -h /opt/facilmap -s /bin/sh facilmap | ||
|
||
WORKDIR /opt/facilmap/server | ||
WORKDIR /opt/facilmap | ||
|
||
COPY ./ ../ | ||
COPY ./ ./ | ||
|
||
RUN chown -R facilmap:facilmap /opt/facilmap | ||
RUN yarn install && \ | ||
yarn check-types && \ | ||
yarn lint && \ | ||
yarn test && \ | ||
yarn run build:frontend:app && \ | ||
yarn run build:server && \ | ||
yarn workspaces focus -A --production | ||
|
||
USER facilmap | ||
|
||
RUN cd .. && yarn install | ||
|
||
RUN cd .. && yarn run build | ||
|
||
USER root | ||
RUN chown -R root:root /opt/facilmap && chown -R facilmap:facilmap /opt/facilmap/server/cache | ||
RUN mkdir -p "$CACHE_DIR" && chown -R facilmap:facilmap "$CACHE_DIR" | ||
|
||
USER facilmap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
"version": "3.4.0", | ||
"description": "A library that acts as a client to FacilMap and makes it possible to retrieve and modify objects on a collaborative map.", | ||
"keywords": [ | ||
"webpack", | ||
"maps", | ||
"osm", | ||
"facilmap" | ||
|
@@ -14,7 +13,9 @@ | |
}, | ||
"license": "AGPL-3.0", | ||
"author": "Candid Dauth <[email protected]>", | ||
"main": "./dist/client.js", | ||
"main": "./dist/facilmap-client.mjs", | ||
"type": "module", | ||
"types": "./dist/facilmap-client.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/FacilMap/facilmap.git" | ||
|
@@ -26,23 +27,20 @@ | |
"tsconfig.json" | ||
], | ||
"scripts": { | ||
"build": "webpack", | ||
"watch": "webpack --watch", | ||
"build": "vite build", | ||
"clean": "rimraf dist", | ||
"dev-server": "webpack-dev-server --mode development" | ||
"dev-server": "vite", | ||
"check-types": "tsc -b --emitDeclarationOnly" | ||
}, | ||
"dependencies": { | ||
"facilmap-types": "3.4.0", | ||
"socket.io-client": "^4.1.2" | ||
"facilmap-types": "workspace:^", | ||
"socket.io-client": "^4.7.4" | ||
}, | ||
"devDependencies": { | ||
"@types/geojson": "^7946.0.7", | ||
"rimraf": "^3.0.2", | ||
"source-map-loader": "^4.0.1", | ||
"ts-loader": "^9.4.4", | ||
"typescript": "^5.2.2", | ||
"webpack": "^5.88.2", | ||
"webpack-bundle-analyzer": "^4.9.1", | ||
"webpack-cli": "^5.1.4" | ||
"@types/geojson": "^7946.0.14", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.4.2", | ||
"vite": "^5.1.5", | ||
"vite-plugin-dts": "^3.7.3" | ||
} | ||
} |
Oops, something went wrong.