commit af093765d73c4ad9f0c82f593316c6de8f5b5525
parent 4834bc81e8d111061538df531f865f737108e86b
Author: vh <vetle.haflan@gmail.com>
Date: Sun, 12 Jan 2020 20:27:40 +0100
Add qumpwebdev as a submodule for vuejs experiment
This demonstrates the use of 'git add submodule' and how the submodule
can be used.
It's about time to move the 'vuejs experiment' into a dedicated project
now btw. It's really a prototype of the qumpweb-todo slash app, although
it does demonstrate the use of Vue.
Diffstat:
4 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.gitmodules b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "vuejs/qumpweb"]
+ path = vuejs/qumpweb
+ url = https://vh@gl.haflan.dev/qump/qumpweb.git
diff --git a/vuejs/dockerdev.sh b/vuejs/dockerdev.sh
@@ -1,5 +1,13 @@
#!/bin/bash
+# Start qumpwebdev container (assuming that qumpweb is a submodule)
+QWD=$PWD/qumpweb
+docker run -d \
+ -p 8080:8080 \
+ -v $QWD:/app \
+ --env-file $QWD/dev/qumpweb_dev.env \
+ qumpwebdev
+
DOCKERCMD="docker run -it -v $PWD:/vue -w /vue node:alpine /bin/sh -c "
if [ ! -d "node_modules" ]; then
diff --git a/vuejs/qumpweb b/vuejs/qumpweb
@@ -0,0 +1 @@
+Subproject commit 9edc19517bd43f60ee85a7de05201709a5c6bb58
diff --git a/vuejs/webpack.config.js b/vuejs/webpack.config.js
@@ -8,7 +8,7 @@ module.exports = {
return obj;
},{}),
output: {
- path: path.resolve(__dirname, "./dist/"),
+ path: path.resolve(__dirname, "./qumpweb/static/apps/"),
filename: "[name].js"
},
module: {
@@ -26,4 +26,4 @@ module.exports = {
jquery: 'jQuery',
axios: 'axios'
}
-};-
\ No newline at end of file
+};