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

Method Clean

tools/mage/js.go:269–280  ·  view source on GitHub ↗

Clean clears all generated files.

()

Source from the content-addressed store, hash-verified

267
268// Clean clears all generated files.
269func (js Js) Clean() error {
270 for _, p := range []string{
271 ".cache",
272 "public",
273 filepath.Join("pkg", "webui", "locales", ".backend"),
274 } {
275 if err := sh.Rm(p); err != nil {
276 return fmt.Errorf("failed to delete %s: %w", p, err)
277 }
278 }
279 return nil
280}
281
282// CleanDeps removes all installed node packages (rm -rf node_modules).
283func (js Js) CleanDeps() error {

Callers

nothing calls this directly

Calls 2

JoinMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected