diff options
author | eric thul <thul.eric@gmail.com> | 2015-12-29 08:24:06 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2015-12-29 08:24:06 -0500 |
commit | c01553307e6fcd0abada0b9b2f9ca8d6bb82b863 (patch) | |
tree | f8ad39dc0d21ae4add8f2a3877edf24294d2910f /example/src | |
parent | c9ffb38360a93d51f047a184ae13462cb90edb71 (diff) | |
download | purs-loader-c01553307e6fcd0abada0b9b2f9ca8d6bb82b863.tar.gz purs-loader-c01553307e6fcd0abada0b9b2f9ca8d6bb82b863.tar.zst purs-loader-c01553307e6fcd0abada0b9b2f9ca8d6bb82b863.zip |
Updating example for .purs extension
Showing usage of specifying .purs and not specifying an extension for
require statements.
Diffstat (limited to 'example/src')
-rw-r--r-- | example/src/entry.js | 10 | ||||
-rw-r--r-- | example/src/jam.js (renamed from example/src/bar.js) | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/example/src/entry.js b/example/src/entry.js index 57808c2..a1e2a99 100644 --- a/example/src/entry.js +++ b/example/src/entry.js | |||
@@ -1,11 +1,11 @@ | |||
1 | var Prelude = require('purescript-prelude/src/Prelude.purs'); | 1 | var Prelude = require('purescript-prelude/src/Prelude'); |
2 | 2 | ||
3 | var test = require('./Test.purs'); | 3 | var test = require('./Test'); |
4 | 4 | ||
5 | var foo = require('./Foo.purs'); | 5 | var foo = require('./Foo.purs'); |
6 | 6 | ||
7 | var baz = require('./Foo/Baz.purs'); | 7 | var baz = require('./Foo/Baz'); |
8 | 8 | ||
9 | var bar = require('./bar'); | 9 | var jam = require('./jam'); |
10 | 10 | ||
11 | console.log(Prelude, test, foo, baz, bar); | 11 | console.log(Prelude, test, foo, baz, jam); |
diff --git a/example/src/bar.js b/example/src/jam.js index 8c3bb91..8889a69 100644 --- a/example/src/bar.js +++ b/example/src/jam.js | |||
@@ -1,5 +1,5 @@ | |||
1 | var x = 'a'; | 1 | var x = 'a'; |
2 | 2 | ||
3 | var abcde = require('./Bar.purs'); | 3 | var abcde = require('./Bar'); |
4 | 4 | ||
5 | module.exports = abcde; | 5 | module.exports = abcde; |