-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorg asset generation in subpackages
- Loading branch information
Victor Castell
committed
Jan 10, 2019
1 parent
fa323c2
commit 0c02ce0
Showing
11 changed files
with
1,341 additions
and
14,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// +build dev | ||
|
||
package assets | ||
|
||
import "net/http" | ||
|
||
// Templates contains project templates. | ||
var Assets http.FileSystem = http.Dir("../../static") |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package assets | ||
|
||
//go:generate vfsgendev -source="github.com/victorcoder/dkron/dkron/assets".Assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package templates | ||
|
||
//go:generate vfsgendev -source="github.com/victorcoder/dkron/dkron/templates".Templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// +build dev | ||
|
||
package templates | ||
|
||
import "net/http" | ||
|
||
// Templates contains project templates. | ||
var Templates http.FileSystem = http.Dir("../../templates") |
11 changes: 1 addition & 10 deletions
11
templates/templates_vfsdata.go → dkron/templates/templates_vfsdata.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.