From cf43e98c0baff7d9c732d7b4e533f4b0305adb4e Mon Sep 17 00:00:00 2001 From: JD Isaacks Date: Thu, 15 Oct 2015 23:46:04 -0400 Subject: [PATCH] Create index.js Allow getting include paths from within node so can be used in build tools --- index.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 000000000..8804ab2c4 --- /dev/null +++ b/index.js @@ -0,0 +1,28 @@ +var path = require('path'); +var entryPoint = require.resolve('font-awesome'); + +var faDir = path.dirname(entryPoint); + +var sassDir = path.join(faDir, 'scss'); +var lessDir = path.join(faDir, 'less'); +var cssDir = path.join(faDir, 'css'); +var fontDir = path.join(faDir, 'fonts', '*'); + +function includePaths() { + return { + scss: sassDir, + less: sassDir, + css: cssDir, + fonts: fontDir + } +} + +module.exports = { + + scssPath: includePaths().scss, + lessPath: includePaths().less, + cssPath: includePaths().css, + + fontPath: includePaths().fonts, + +};