Big to deploy vue

This commit is contained in:
breel
2020-07-25 00:25:53 -06:00
parent 8741db40b4
commit 3b8d5e27c5
4 changed files with 48 additions and 0 deletions

View File

@@ -8,6 +8,17 @@ function main() {
scp ./public/swagger/* zach@tickle.lan:./dndex/files/swagger/ scp ./public/swagger/* zach@tickle.lan:./dndex/files/swagger/
scp ./dndex zach@tickle.lan:./dndex/dndex.new scp ./dndex zach@tickle.lan:./dndex/dndex.new
ssh zach@tickle.lan bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo' ssh zach@tickle.lan bash -c 'true; while [ -e ./dndex/dndex.new ]; do printf "."; sleep 3; done; echo'
if [ -n "$BIG" ]; then
big
fi
}
function big() {
pushd ./public/vue/dndex-ui
npm install
npm run build
scp ./dist/* zach@tickle.lan:./dndex-ui/public/
popd
} }
if [ "$0" == "$BASH_SOURCE" ]; then if [ "$0" == "$BASH_SOURCE" ]; then

1
public/vue/dndex-ui Submodule

Submodule public/vue/dndex-ui added at b926030237

29
public/vue/index.html Normal file
View File

@@ -0,0 +1,29 @@
<html>
<header>
<script src="./vue.js"></script>
</header>
<body>
<div id="app">
<ul>
<li v-for="todo in todos">
{{ todo.text }}
</li>
</ul>
</div>
</body>
<footer>
<script>
new Vue({
el: '#app',
data: {
todos: [
{ text: 'Learn JavaScript' },
{ text: 'Learn Vue.js' },
{ text: 'Build Something Awesome' }
]
}
})
</script>
</footer>
</html>

7
public/vue/vue.js Normal file

File diff suppressed because one or more lines are too long