diff options
author | eric thul <thul.eric@gmail.com> | 2015-08-11 20:57:07 -0400 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-08-11 20:57:07 -0400 |
commit | 03b840cb5fb8ff5217fefc9e1240a3131db309fc (patch) | |
tree | 6183f4453aa15ad67ee0249fb8d35702cef5ecad /src/PursLoader/Loader.js | |
parent | fa01c5a4cb42d80ac147dc5ab512a0795dbe14da (diff) | |
download | purs-loader-03b840cb5fb8ff5217fefc9e1240a3131db309fc.tar.gz purs-loader-03b840cb5fb8ff5217fefc9e1240a3131db309fc.tar.zst purs-loader-03b840cb5fb8ff5217fefc9e1240a3131db309fc.zip |
PureScript 0.7 updates and migration to pulp
Diffstat (limited to 'src/PursLoader/Loader.js')
-rw-r--r-- | src/PursLoader/Loader.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/PursLoader/Loader.js b/src/PursLoader/Loader.js new file mode 100644 index 0000000..d7b5578 --- /dev/null +++ b/src/PursLoader/Loader.js | |||
@@ -0,0 +1,17 @@ | |||
1 | 'use strict' | ||
2 | |||
3 | // module PursLoader.Loader | ||
4 | |||
5 | var path = require('path'); | ||
6 | |||
7 | var cwd = process.cwd(); | ||
8 | |||
9 | function relative(from) { | ||
10 | return function(to){ | ||
11 | return path.relative(from, to); | ||
12 | }; | ||
13 | } | ||
14 | |||
15 | exports.cwd = cwd; | ||
16 | |||
17 | exports.relative = relative; | ||