Documentation
¶
Overview ¶
Package devmode contains helpers to configure Development Mode.
Index ¶
Constants ¶
View Source
const ( // WatchAndRun is the name of the script that watches source files and runs the // build_and_run.sh script when those files change. WatchAndRun = "watch_and_run.sh" )
Variables ¶
View Source
var ( // GoWatchedExtensions is the list of file extensions to be watched for changes in Dev Mode for Go. GoWatchedExtensions = []string{"go"} )
View Source
var ( // JavaWatchedExtensions is the list of file extensions to be watched for changes in Dev Mode for Java. // A change to any of those files triggers a rebuild/restart of the application. JavaWatchedExtensions = []string{"java", "kt", "scala", "groovy", "clj"} )
View Source
var ( // NodeWatchedExtensions is the list of file extensions to be watched for changes in Dev Mode for NodeJS. NodeWatchedExtensions = []string{"js", "mjs", "coffee", "litcoffee", "json"} )
Functions ¶
func AddFileWatcherProcess ¶
AddFileWatcherProcess installs and configures a file watcher as the entrypoint.
func AddSyncMetadata ¶
AddSyncMetadata adds sync metadata to the final image.
Types ¶
type Config ¶
type Config struct { BuildCmd []string RunCmd []string // Ext lists the file extensions that trigger a restart. Ext []string }
Config describes the dev mode for a given language.
type SyncRule ¶
type SyncRule struct { // Src is a glob, and assumed to be a path relative to the user's workspace. Src string `toml:"src"` // Dest is the destination root folder where changed files are copied. // Relative directory structure is preserved while copying. Dest string `toml:"dest"` }
SyncRule represents a sync rule.
func DotNetSyncRules ¶
DotNetSyncRules is the list of SyncRules to be configured in Dev Mode for .NET.
func GoSyncRules ¶
GoSyncRules is the list of SyncRules to be configured in Dev Mode for Go.
func JavaSyncRules ¶
JavaSyncRules is the list of SyncRules to be configured in Dev Mode for Java.
func NodeSyncRules ¶
NodeSyncRules is the list of SyncRules to be configured in Dev Mode for NodeJS.
Click to show internal directories.
Click to hide internal directories.