Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3c46c6d9 authored by ROSPARS Benoit's avatar ROSPARS Benoit
Browse files

Issue #74 : script to fetch preview files

parent b2e425fc
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ dist ...@@ -12,6 +12,7 @@ dist
dist-ssr dist-ssr
*.local *.local
dist_electron dist_electron
.env
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*
......
...@@ -19,5 +19,10 @@ run run wdio ...@@ -19,5 +19,10 @@ run run wdio
# Run linter # Run linter
npm run lint npm run lint
```
``` ### Setup preview
\ No newline at end of file
1. Create a `.env` containing the Gitlab url and access token to fetch the preview files : `GITLAB_URL`, `GITLAB_TOKEN`
2. Run `npm run updatePreview`
3. Build or run the app in dev using above scripts
\ No newline at end of file
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
"test": "vitest", "test": "vitest",
"coverage": "vitest --coverage", "coverage": "vitest --coverage",
"wdio": "wdio run ./wdio.conf.ts", "wdio": "wdio run ./wdio.conf.ts",
"lint": "npx eslint ./src ./test ./electron/* --ext .ts,.vue,.js" "lint": "npx eslint ./src ./test ./electron/* --ext .ts,.vue,.js",
"updatePreview": "export $(grep -v '^#' .env | xargs) && curl --location --output public/preview.zip --header \"PRIVATE-TOKEN: $GITLAB_TOKEN\" $GITLAB_URL"
}, },
"dependencies": { "dependencies": {
"@vue-flow/additional-components": "^1.3.3", "@vue-flow/additional-components": "^1.3.3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment