Compare commits
2 Commits
11790638d6
...
a284806d3c
Author | SHA1 | Date | |
---|---|---|---|
a284806d3c | |||
7e10c1db65 |
@ -3,15 +3,13 @@ WORKDIR /app
|
|||||||
RUN npm i -g pnpm
|
RUN npm i -g pnpm
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
RUN pnpm i
|
RUN pnpm i
|
||||||
COPY package.json *.config.js workbox-config.js ./
|
COPY package.json *.config.js workbox-config.js template-copy.js index.template.html s-config.template.js ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY public ./public
|
COPY public ./public
|
||||||
RUN pnpm run build:sw
|
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
# final image
|
# final image
|
||||||
FROM alpine
|
FROM alpine
|
||||||
COPY --from=0 /app/build /app
|
COPY --from=0 /app/build /app
|
||||||
RUN rm -rf build/sw.js.map build/workbox-*.js.map
|
|
||||||
RUN rm -rf /app/build/_dist_/components
|
RUN rm -rf /app/build/_dist_/components
|
||||||
RUN rm -rf /app/build/_dist_/locales
|
RUN rm -rf /app/build/_dist_/locales
|
||||||
RUN rm -rf /app/build-manifest.json
|
RUN rm -rf /app/build-manifest.json
|
||||||
|
@ -3,9 +3,10 @@
|
|||||||
"version": "0.3.1",
|
"version": "0.3.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"i18n-order": "node order.js",
|
"i18n-order": "node order.js",
|
||||||
"dev:all": "cross-env NODE_ENV_ODIT=production node template-copy.js && snowpack dev",
|
"dev:all": "yarn prebuild && snowpack dev",
|
||||||
"dev:fast": "cross-env NODE_ENV_ODIT=development_fast node template-copy.js",
|
"dev:fast": "cross-env NODE_ENV_ODIT=development_fast node template-copy.js && snowpack dev",
|
||||||
"build": "cross-env NODE_ENV_ODIT=production node template-copy.js && snowpack build",
|
"build": "yarn prebuild && snowpack build",
|
||||||
|
"prebuild": "cross-env NODE_ENV_ODIT=production node template-copy.js && yarn build:sw",
|
||||||
"build:sw": "workbox generateSW workbox-config.js",
|
"build:sw": "workbox generateSW workbox-config.js",
|
||||||
"release": "release-it",
|
"release": "release-it",
|
||||||
"licenses:export": "license-exporter --json -o public"
|
"licenses:export": "license-exporter --json -o public"
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
import Login from "./components/Login.svelte";
|
import Login from "./components/Login.svelte";
|
||||||
import Dashboard from "./components/Dashboard.svelte";
|
import Dashboard from "./components/Dashboard.svelte";
|
||||||
import store from "./store.js";
|
import store from "./store.js";
|
||||||
import NotFound from "./components/NotFound.svelte";
|
|
||||||
import ForgotPassword from "./components/ForgotPassword.svelte";
|
import ForgotPassword from "./components/ForgotPassword.svelte";
|
||||||
import MainDashContent from "./components/MainDashContent.svelte";
|
import MainDashContent from "./components/MainDashContent.svelte";
|
||||||
import Users from "./components/Users.svelte";
|
import Users from "./components/Users.svelte";
|
||||||
@ -41,17 +40,16 @@
|
|||||||
import Orgs from "./components/Orgs.svelte";
|
import Orgs from "./components/Orgs.svelte";
|
||||||
import Runners from "./components/Runners.svelte";
|
import Runners from "./components/Runners.svelte";
|
||||||
import Footer from "./components/Footer.svelte";
|
import Footer from "./components/Footer.svelte";
|
||||||
import Tracks from "./components/Tracks.svelte";
|
|
||||||
import TracksOverview from "./components/TracksOverview.svelte";
|
import TracksOverview from "./components/TracksOverview.svelte";
|
||||||
import OrgDetail from "./components/OrgDetail.svelte";
|
import OrgDetail from "./components/OrgDetail.svelte";
|
||||||
import Teams from "./components/Teams.svelte";
|
import Teams from "./components/Teams.svelte";
|
||||||
import { OpenAPI, AuthService } from "@odit/lfk-client-js";
|
import { OpenAPI } from "@odit/lfk-client-js";
|
||||||
import UserDetail from "./components/UserDetail.svelte";
|
import UserDetail from "./components/UserDetail.svelte";
|
||||||
OpenAPI.BASE = config.baseurl;
|
OpenAPI.BASE = config.baseurl;
|
||||||
import { register as registerSW } from "./swmodule";
|
import { register as registerSW } from "./swmodule";
|
||||||
import TeamDetail from "./components/TeamDetail.svelte";
|
import TeamDetail from "./components/TeamDetail.svelte";
|
||||||
store.init();
|
store.init();
|
||||||
// registerSW();
|
registerSW();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Route>
|
<Route>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
let modal_open = false;
|
let modal_open = false;
|
||||||
let delete_org = {};
|
let delete_org = {};
|
||||||
import { RunnerOrganisationService } from "@odit/lfk-client-js";
|
import { RunnerOrganisationService } from "@odit/lfk-client-js";
|
||||||
import "gridjs/dist/theme/mermaid.css";
|
|
||||||
import store from "../store";
|
import store from "../store";
|
||||||
import OrgsEmptyState from "./OrgsEmptyState.svelte";
|
import OrgsEmptyState from "./OrgsEmptyState.svelte";
|
||||||
import Toastify from "toastify-js";
|
import Toastify from "toastify-js";
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
import Toastify from "toastify-js";
|
import Toastify from "toastify-js";
|
||||||
import { RunnerTeamService } from "@odit/lfk-client-js";
|
import { RunnerTeamService } from "@odit/lfk-client-js";
|
||||||
const teams_promise = RunnerTeamService.runnerTeamControllerGetAll();
|
const teams_promise = RunnerTeamService.runnerTeamControllerGetAll();
|
||||||
import "gridjs/dist/theme/mermaid.css";
|
|
||||||
import { users as usersstore } from "../store.js";
|
import { users as usersstore } from "../store.js";
|
||||||
import store from "../store";
|
import store from "../store";
|
||||||
import TeamsEmptyState from "./TeamsEmptyState.svelte";
|
import TeamsEmptyState from "./TeamsEmptyState.svelte";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
globDirectory: 'public',
|
globDirectory: 'public',
|
||||||
globPatterns: [ '**/*.{js,ico,png,svg,html,webmanifest,txt}' ],
|
globPatterns: [ '**/*.{js,ico,png,svg,html,webmanifest,txt,json}' ],
|
||||||
globIgnores: [ 'env.js', 'env.sample.js', 'licenses.json' ],
|
globIgnores: [ 'env.js', 'env.sample.js' ],
|
||||||
swDest: 'public/sw.js',
|
swDest: 'public/sw.js',
|
||||||
cleanupOutdatedCaches: true,
|
cleanupOutdatedCaches: true,
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user