diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 47bb04395082982e0b8481a1c827a8b176733686..90841a8a2b0c71f205bb25afe1418d21b05eabc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,30 @@ +# The Docker image that will be used to build your app image: node:latest stages: - test + - pages + +# Functions that should be executed before the build script is run +before_script: + - npm install + - mkdir public lint-test-job: stage: test script: - - npm install - npm run lint + +pages: + stage: pages + script: + - 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 diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index fc286e0694242f13b2f07c45e5ecbe70661a0c17..b1cfd5a720ddf5fa0407ac40f0e6a02f49beec60 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: { diff --git a/package.json b/package.json index 08dea251582e99642e76969f64b2b68142aa4241..d7bf7540687f46424c98337fa3d540380ed04810 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" } }