Big to deploy vue
This commit is contained in:
11
deploy.sh
11
deploy.sh
@@ -8,6 +8,17 @@ function main() {
|
||||
scp ./public/swagger/* zach@tickle.lan:./dndex/files/swagger/
|
||||
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'
|
||||
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
|
||||
|
||||
1
public/vue/dndex-ui
Submodule
1
public/vue/dndex-ui
Submodule
Submodule public/vue/dndex-ui added at b926030237
29
public/vue/index.html
Normal file
29
public/vue/index.html
Normal 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
7
public/vue/vue.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user