diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4bd338f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +server/manifest.go linguist-generated=true +webapp/src/manifest.js linguist-generated=true diff --git a/build/manifest/main.go b/build/manifest/main.go index cbc96e9..5db5aaa 100644 --- a/build/manifest/main.go +++ b/build/manifest/main.go @@ -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'; ` diff --git a/server/manifest.go b/server/manifest.go index 19a2ccd..471775b 100644 --- a/server/manifest.go +++ b/server/manifest.go @@ -1,3 +1,5 @@ +// This file is automatically generated. Do not modify it manually. + package main var manifest = struct { diff --git a/webapp/src/manifest.js b/webapp/src/manifest.js index a1eefd4..52d1e5b 100644 --- a/webapp/src/manifest.js +++ b/webapp/src/manifest.js @@ -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';