* constructor
(options = {})
| 17 | * constructor |
| 18 | */ |
| 19 | constructor(options = {}) { |
| 20 | assert(options.ROOT_PATH, 'options.ROOT_PATH must be set'); |
| 21 | if (!options.APP_PATH) { |
| 22 | let appPath = path.join(options.ROOT_PATH, 'app'); |
| 23 | if (!options.transpiler && !helper.isDirectory(appPath)) { |
| 24 | appPath = path.join(options.ROOT_PATH, 'src'); |
| 25 | } |
| 26 | options.APP_PATH = appPath; |
| 27 | } |
| 28 | if (!options.RUNTIME_PATH) { |
| 29 | options.RUNTIME_PATH = path.join(options.ROOT_PATH, 'runtime'); |
| 30 | } |
| 31 | this.options = options; |
| 32 | } |
| 33 | /** |
| 34 | * notify error |
| 35 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected