Skip to content

Commit 2b09d46

Browse files
Merge pull request #54 from nxt3AT/dev
v1.4.0
2 parents 70b9b43 + e885c64 commit 2b09d46

40 files changed

+3784
-2274
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
.parcel-cache
3+
.git
4+
node_modules
5+
dist
6+
.DS_STORE

.eslintrc.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
node_modules/
33
.parcel-cache/
44
dist/
5-
*.css
6-
*.min.css
7-
*.css.map
85
.DS_STORE

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17.1
1+
20

.postcssrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"tailwindcss": {}
4+
}
5+
}

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM node:18
1+
FROM node:20-slim AS builder
22

33
WORKDIR /app
44

55
COPY package*.json ./
6-
76
RUN npm install
87

98
COPY . .
10-
119
RUN npm run build
1210

13-
EXPOSE 1234
14-
CMD [ "npm", "run", "start" ]
11+
FROM nginx:stable-alpine-slim AS runner
12+
COPY --from=builder /app/dist/* /usr/share/nginx/html
13+
14+
EXPOSE 80

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Example Diagram: [https://sankeydiagram.net/?content=PTAEGUHkFUCUGECioD...](http
1818

1919
Live version of the dev branch: https://dev.sankeydiagram-net.pages.dev/
2020

21-
There is also a Dockerfile available for local testing. Please mind that the Dockerfile is not (yet) production ready, since it runs a local parcel server.
22-
Use `docker build -t sankeydiagramnet . && docker run -p 1234:1234 sankeydiagramnet` to start your a docker container at port 1234.
21+
There is also a Dockerfile available for running. It builds the app and runs a nginx server to serve the static files.
22+
Use `docker build -t sankeydiagramnet . && docker run -p 80:1234 sankeydiagramnet` to start you a docker container at local port 1234.
2323

2424
## Contact
2525
If you have any questions, need help, a special license, or something else, you can contact me via GitHub Issues, or using the following methods:

eslint.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import js from "@eslint/js";
2+
import globals from 'globals';
3+
4+
/** @type {import('eslint').Linter.FlatConfig[]} */
5+
export default [
6+
js.configs.recommended,
7+
{
8+
ignores: ["src/js/d3-sankey-diagram"],
9+
languageOptions: {
10+
globals: globals.browser,
11+
},
12+
rules: {
13+
}
14+
}
15+
]

0 commit comments

Comments
 (0)