Commit 6a910d80 authored by malzer's avatar malzer
Browse files

Create symlinks in gitlab-ci.yml

parent c9dd7316
...@@ -57,6 +57,10 @@ build_dev: ...@@ -57,6 +57,10 @@ build_dev:
- VERSION=$(node -p "require('./package.json').version") - VERSION=$(node -p "require('./package.json').version")
- echo "VERSION=${VERSION}" >> build.env - echo "VERSION=${VERSION}" >> build.env
- npm run build:beta - npm run build:beta
- cd dist
- ln -s PLATIN/php php
- ln -s PLATIN/data data
- cd embed && ln -s ../php php
artifacts: artifacts:
paths: paths:
- dist/ - dist/
......
...@@ -2,6 +2,9 @@ const path = require('path'); ...@@ -2,6 +2,9 @@ const path = require('path');
const glob = require("glob"); const glob = require("glob");
const CopyWebpackPlugin = require('copy-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = { module.exports = {
resolve: {
symlinks: false
},
module: { module: {
rules: [ rules: [
{ {
...@@ -11,7 +14,7 @@ module.exports = { ...@@ -11,7 +14,7 @@ module.exports = {
], ],
}, },
entry: { entry: {
"main": [ './js/dariah.geobro.conf.js', './js/sessionStorageWrapper.js', './js/matomo.js', "main": [ './js/dariah.geobro.conf.js', './js/sessionStorageWrapper.js', './js/matomo.js',
'./edit/js/dariah.utils.js', './edit/js/dariah.workflow.conf.js', './edit/js/dariah.storage.js', './edit/js/dariah.utils.js', './edit/js/dariah.workflow.conf.js', './edit/js/dariah.storage.js',
'./js/dariah.geobro.js'], './js/dariah.geobro.js'],
...@@ -31,9 +34,12 @@ entry: { ...@@ -31,9 +34,12 @@ entry: {
{ from: "./PLATIN/lib", to: path.resolve(__dirname, './dist/PLATIN/lib') }, { from: "./PLATIN/lib", to: path.resolve(__dirname, './dist/PLATIN/lib') },
{ from: "./PLATIN/data", to: path.resolve(__dirname, './dist/PLATIN/data') }, { from: "./PLATIN/data", to: path.resolve(__dirname, './dist/PLATIN/data') },
{ from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') }, { from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') },
{ from: "./php", to: path.resolve(__dirname, './dist/php') }, { from: "./PLATIN/images", to: path.resolve(__dirname, './dist/PLATIN/images') },
{ from: "./PLATIN/php", to: path.resolve(__dirname, './dist/PLATIN/php') },
// { from: "./embed/php", to: path.join(__dirname, './dist/embed/php') },
// { from: "./php", to: path.join(__dirname, './dist/php') },
{ from: "./docs/_build/html", to: path.resolve(__dirname, './dist/doc') }, { from: "./docs/_build/html", to: path.resolve(__dirname, './dist/doc') },
{ from: "./data", to: path.resolve(__dirname, './dist/data') }, // { from: "./data", to: path.join(__dirname, './dist/data') },
{ from: "./css", to: path.resolve(__dirname, './dist/css') }, { from: "./css", to: path.resolve(__dirname, './dist/css') },
{ from: "./edit/css", to: path.resolve(__dirname, './dist/edit/css') }, { from: "./edit/css", to: path.resolve(__dirname, './dist/edit/css') },
{ from: "./edit/img", to: path.resolve(__dirname, './dist/edit/img') }, { from: "./edit/img", to: path.resolve(__dirname, './dist/edit/img') },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment