Skip to content

Instantly share code, notes, and snippets.

@neilcummings
Created May 7, 2017 11:06
Show Gist options
  • Save neilcummings/10f27d05886b6fd4be5212c76b2ab80a to your computer and use it in GitHub Desktop.
Save neilcummings/10f27d05886b6fd4be5212c76b2ab80a to your computer and use it in GitHub Desktop.
SharePointAddinAngular - config/helpers.js
var path = require('path');
var _root = path.resolve(__dirname, '..');
function root(args) {
args = Array.prototype.slice.call(arguments, 0);
return path.join.apply(path, [_root].concat(args));
}
exports.root = root;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment