MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Serve

Method Serve

tools/mage/js.go:184–193  ·  view source on GitHub ↗

Serve runs webpack-dev-server.

()

Source from the content-addressed store, hash-verified

182
183// Serve runs webpack-dev-server.
184func (js Js) Serve() error {
185 mg.Deps(js.Deps, js.BackendTranslations, js.BuildDll)
186 if mg.Verbose() {
187 fmt.Println("Running Webpack for Main Bundle in watch mode")
188 }
189 os.Setenv("DEV_SERVER_BUILD", "true")
190 return js.runYarnCommandV("webpack-dev-server",
191 "--config", "config/webpack.config.babel.js",
192 )
193}
194
195// Messages extracts the frontend messages via babel.
196func (js Js) Messages() error {

Callers 15

TestCryptoServicesFunction · 0.80
StartLoopbackFunction · 0.80
TestSMTPFunction · 0.80
startMethod · 0.80
TestAccessFetcherFunction · 0.80
mustServeFunction · 0.80
serveGRPCMethod · 0.80
TestHooksFunction · 0.80
serveWebMethod · 0.80
TestPeersFunction · 0.80
serveInteropMethod · 0.80

Calls 2

runYarnCommandVMethod · 0.95
DepsMethod · 0.45

Tested by 15

TestCryptoServicesFunction · 0.64
TestSMTPFunction · 0.64
startMethod · 0.64
TestAccessFetcherFunction · 0.64
mustServeFunction · 0.64
TestHooksFunction · 0.64
TestPeersFunction · 0.64