* Ensures that the customizable 'views' folder exists for this installation * (copies it from default views if not). * * @param configPath {string} Location of configuration directory (from the * local config.json file or passed in as cli parameter) * * @return {string} Path to the views dir
(configPath)
| 112 | * @return {string} Path to the views dir |
| 113 | */ |
| 114 | function initDefaultViews (configPath) { |
| 115 | const defaultViewsPath = path.join(__dirname, '../default-views') |
| 116 | const viewsPath = path.join(configPath, 'views') |
| 117 | |
| 118 | ensureDirCopyExists(defaultViewsPath, viewsPath) |
| 119 | |
| 120 | return viewsPath |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Makes sure that the various template directories (email templates, new |
nothing calls this directly
no test coverage detected