From f1c723d196c413bdccf03f95fa0a73a5a261a6cd Mon Sep 17 00:00:00 2001 From: Julian <leuckerj@gmail.com> Date: Wed, 28 May 2025 13:08:47 +0000 Subject: [PATCH 1/4] Create gitlab pages config to build docs --- .gitlab-ci.yml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 47bb043..4ff320b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,18 @@ -image: node:latest - -stages: - - test - -lint-test-job: - stage: test +# The Docker image that will be used to build your app +image: node:lts +# Functions that should be executed before the build script is run +before_script: + - npm ci + - mkdir public +pages: script: - - npm install - - npm run lint + - npm run docs:build + - mv docs/.vuepress/dist/* public + artifacts: + paths: + # The folder that contains the files to be exposed at the Page URL + - public + rules: + # This ensures that only pushes to the default branch will trigger + # a pages deploy + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH -- GitLab From 266ba065e06bc039c99cf14266f39ebaa6333a62 Mon Sep 17 00:00:00 2001 From: Julian <leuckerj@gmail.com> Date: Wed, 28 May 2025 13:16:11 +0000 Subject: [PATCH 2/4] Update pipeline config to not ignore lint --- .gitlab-ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ff320b..90841a8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,22 @@ # The Docker image that will be used to build your app -image: node:lts +image: node:latest + +stages: + - test + - pages + # Functions that should be executed before the build script is run before_script: - - npm ci + - npm install - mkdir public + +lint-test-job: + stage: test + script: + - npm run lint + pages: + stage: pages script: - npm run docs:build - mv docs/.vuepress/dist/* public -- GitLab From 25e2a7bfc280ced976e9e9fd0f87927d1da2860b Mon Sep 17 00:00:00 2001 From: Julian <leuckerj@gmail.com> Date: Wed, 28 May 2025 13:52:22 +0000 Subject: [PATCH 3/4] Downgrade uuid back to v9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 08dea25..d7bf754 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "vuepress": "^1.9.8" }, "dependencies": { - "uuid": "^11.0.0", + "uuid": "^9.0.0", "vue-interactjs": "^0.1.10" } } -- GitLab From 0e19103b67e63048b9298dcd2cce37a2d91e0ec2 Mon Sep 17 00:00:00 2001 From: Julian Leucker <leuckerj@gmail.com> Date: Wed, 28 May 2025 16:39:24 +0200 Subject: [PATCH 4/4] Configure hosting path --- docs/.vuepress/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index fc286e0..b1cfd5a 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,4 +1,5 @@ module.exports = { + base: "/libs/vue-draggable-grid/", title: "vue-draggable-grid", description: "vue-draggable-grid component library for a draggable grid", themeConfig: { -- GitLab