aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Path.js
diff options
context:
space:
mode:
authoreric <thul.eric@gmail.com>2016-01-19 08:41:51 -0500
committereric <thul.eric@gmail.com>2016-01-19 08:41:51 -0500
commit2ecf85616a2b56ec9ff675c8f45b7dcf5607fc86 (patch)
treef8ad39dc0d21ae4add8f2a3877edf24294d2910f /src/PursLoader/Path.js
parent94cc1cdd03b9c2115813a698b1e4337bce894321 (diff)
parentc01553307e6fcd0abada0b9b2f9ca8d6bb82b863 (diff)
downloadpurs-loader-2ecf85616a2b56ec9ff675c8f45b7dcf5607fc86.tar.gz
purs-loader-2ecf85616a2b56ec9ff675c8f45b7dcf5607fc86.tar.zst
purs-loader-2ecf85616a2b56ec9ff675c8f45b7dcf5607fc86.zip
Merge pull request #34 from ethul/topic/psc-webpack-plugin
Topic/psc webpack plugin
Diffstat (limited to 'src/PursLoader/Path.js')
-rw-r--r--src/PursLoader/Path.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/PursLoader/Path.js b/src/PursLoader/Path.js
new file mode 100644
index 0000000..878f256
--- /dev/null
+++ b/src/PursLoader/Path.js
@@ -0,0 +1,24 @@
1'use strict'
2
3// module PursLoader.Path
4
5var path = require('path');
6
7function relative(from) {
8 return function(to){
9 return path.relative(from, to);
10 };
11}
12exports.relative = relative;
13
14
15function joinPath(a) {
16 return function(b) {
17 return path.join(a, b);
18 };
19}
20exports.joinPath = joinPath;
21
22exports.resolve = path.resolve;
23
24exports.dirname = path.dirname;