Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ddo committed Jun 6, 2018
1 parent 5bb651e commit 342a394
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package main

import (
"net/http"

"github.com/ddo/go-vue-handler"
)

const (
port = "8080"
publicDir = "./public"
)

func main() {
println("port:", port)
println("publicDir:", publicDir)

server := &http.Server{
Addr: ":" + port,
Handler: vue.Handler(publicDir),
}
err := server.ListenAndServe()
panic(err)
}
1 change: 1 addition & 0 deletions test/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>test</title><link href=/static/css/app.8a2065fc6ff38e2d0ec0c0e3509637eb.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.7fed9fa7b7ba482410b7.js></script><script type=text/javascript src=/static/js/app.bef432c284d1df839809.js></script></body></html>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions test/public/static/js/app.bef432c284d1df839809.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/public/static/js/app.bef432c284d1df839809.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions test/public/static/js/manifest.2ae2e69a05c33dfc65f8.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/public/static/js/manifest.2ae2e69a05c33dfc65f8.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions test/public/static/js/vendor.7fed9fa7b7ba482410b7.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/public/static/js/vendor.7fed9fa7b7ba482410b7.js.map

Large diffs are not rendered by default.

0 comments on commit 342a394

Please sign in to comment.