Mark manifest.[go|js] as a generated file (#57)

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.
This commit is contained in:
Mario de Frutos Dieguez 2019-08-14 23:40:52 +02:00 committed by Ben Schumacher
parent e7b5efefc6
commit b7165a0f5f
4 changed files with 12 additions and 2 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
server/manifest.go linguist-generated=true
webapp/src/manifest.js linguist-generated=true

View file

@ -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
@ -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';
`

2
server/manifest.go generated
View file

@ -1,3 +1,5 @@
// This file is automatically generated. Do not modify it manually.
package main
var manifest = struct {

View file

@ -1,2 +1,4 @@
// This file is automatically generated. Do not modify it manually.
export const id = 'com.mattermost.plugin-starter-template';
export const version = '0.1.0';