Skip to content

Commit

Permalink
Mark manifest.[go|js] as a generated file (#57)
Browse files Browse the repository at this point in the history
manifest.[go|js] files are autogenerated so we dont need to
show diffs, cope with conflicts in merge operations or show the
diff in github.
  • Loading branch information
ethervoid authored and hanzei committed Aug 14, 2019
1 parent e7b5efe commit b7165a0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
server/manifest.go linguist-generated=true
webapp/src/manifest.js linguist-generated=true
8 changes: 6 additions & 2 deletions build/manifest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
"github.com/pkg/errors"
)

const pluginIDGoFileTemplate = `package main
const pluginIDGoFileTemplate = `// This file is automatically generated. Do not modify it manually.
package main
var manifest = struct {
ID string
Expand All @@ -21,7 +23,9 @@ var manifest = struct {
}
`

const pluginIDJSFileTemplate = `export const id = '%s';
const pluginIDJSFileTemplate = `// This file is automatically generated. Do not modify it manually.
export const id = '%s';
export const version = '%s';
`

Expand Down
2 changes: 2 additions & 0 deletions server/manifest.go

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

2 changes: 2 additions & 0 deletions webapp/src/manifest.js

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

0 comments on commit b7165a0

Please sign in to comment.