diff options
author | eric thul <thul.eric@gmail.com> | 2015-12-25 18:41:33 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-12-25 18:41:33 -0500 |
commit | 63d6a244462d050e119bde54a7063bae8a17e987 (patch) | |
tree | cce47ed541fa9ee8b2950945a89608b1c06fb8c9 /src/PursLoader/Loader.js | |
parent | 2e2da2be94720a739c595ec179a7ed49480ce753 (diff) | |
download | purs-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.js | 29 |
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 | |||
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 | function joinPath(a) { | ||
16 | return function(b) { | ||
17 | return path.join(a, b); | ||
18 | }; | ||
19 | } | ||
20 | |||
21 | exports.cwd = cwd; | ||
22 | |||
23 | exports.relative = relative; | ||
24 | |||
25 | exports.joinPath = joinPath; | ||
26 | |||
27 | exports.resolve = path.resolve; | ||
28 | |||
29 | exports.dirname = path.dirname; | ||