Build plugin staticDirs

- route `/plugins` -> `build/public/plugins`
- symlink `staticDirs` directories into `build/public/plugins`
- remove custom `/plugins` route handling
This commit is contained in:
Peter Jaszkowiak
2017-01-21 18:57:27 -07:00
parent 8c86b2e32c
commit 186209a0a3
6 changed files with 33 additions and 43 deletions

View File

@@ -110,4 +110,9 @@ file.link = function link(filePath, destPath, cb) {
}
};
file.linkDirs = function linkDirs(sourceDir, destDir, callback) {
var type = (process.platform === 'win32') ? 'junction' : 'dir';
fs.symlink(sourceDir, destDir, type, callback);
};
module.exports = file;