()
| 96 | } |
| 97 | |
| 98 | func (Js) isProductionMode() bool { |
| 99 | switch v := os.Getenv("NODE_ENV"); v { |
| 100 | case "", "production": |
| 101 | return true |
| 102 | |
| 103 | case "development": |
| 104 | return false |
| 105 | |
| 106 | default: |
| 107 | if mg.Verbose() { |
| 108 | fmt.Printf("Unknown `NODE_ENV` value `%s`, assuming production mode\n", v) |
| 109 | } |
| 110 | return true |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func (js Js) deps() error { |
| 115 | if mg.Verbose() { |
no test coverage detected