aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PursLoader/Loader.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2015-12-25 18:41:33 -0500
committereric thul <thul.eric@gmail.com>2015-12-25 18:41:33 -0500
commit63d6a244462d050e119bde54a7063bae8a17e987 (patch)
treecce47ed541fa9ee8b2950945a89608b1c06fb8c9 /src/PursLoader/Loader.js
parent2e2da2be94720a739c595ec179a7ed49480ce753 (diff)
downloadpurs-loader-63d6a244462d050e119bde54a7063bae8a17e987.tar.gz
purs-loader-63d6a244462d050e119bde54a7063bae8a17e987.tar.zst
purs-loader-63d6a244462d050e119bde54a7063bae8a17e987.zip
Splitting PSC functionality into a separate plugin
The loader creates shim modules that reference their corresponding PureScript module that is bundled by the PureScript webpack plugin, which invokes `psc` and `psc-bundle`. Resolves #31 and resolves #32
Diffstat (limited to 'src/PursLoader/Loader.js')
-rw-r--r--src/PursLoader/Loader.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/PursLoader/Loader.js b/src/PursLoader/Loader.js
deleted file mode 100644
index 45e9c2f..0000000
--- a/src/PursLoader/Loader.js
+++ /dev/null
@@ -1,29 +0,0 @@
1'use strict'
2
3// module PursLoader.Loader
4
5var path = require('path');
6
7var cwd = process.cwd();
8
9function relative(from) {
10 return function(to){
11 return path.relative(from, to);
12 };
13}
14
15function joinPath(a) {
16 return function(b) {
17 return path.join(a, b);
18 };
19}
20
21exports.cwd = cwd;
22
23exports.relative = relative;
24
25exports.joinPath = joinPath;
26
27exports.resolve = path.resolve;
28
29exports.dirname = path.dirname;