diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/README.md | 1 | ||||
-rw-r--r-- | example/bower.json | 15 | ||||
-rw-r--r-- | example/package.json | 2 | ||||
-rw-r--r-- | example/src/Foo.purs | 5 | ||||
-rw-r--r-- | example/src/Test.purs | 2 | ||||
-rw-r--r-- | example/src/entry.js | 6 |
6 files changed, 28 insertions, 3 deletions
diff --git a/example/README.md b/example/README.md index ae798e7..87b9bc7 100644 --- a/example/README.md +++ b/example/README.md | |||
@@ -1,4 +1,5 @@ | |||
1 | ```bash | 1 | ```bash |
2 | bower install | ||
2 | npm install | 3 | npm install |
3 | npm run-script webpack | 4 | npm run-script webpack |
4 | npm run-script run | 5 | npm run-script run |
diff --git a/example/bower.json b/example/bower.json new file mode 100644 index 0000000..8d71688 --- /dev/null +++ b/example/bower.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "name": "example", | ||
3 | "license": "MIT", | ||
4 | "private": true, | ||
5 | "ignore": [ | ||
6 | "**/.*", | ||
7 | "node_modules", | ||
8 | "bower_components", | ||
9 | "test", | ||
10 | "tests" | ||
11 | ], | ||
12 | "devDependencies": { | ||
13 | "purescript-maybe": "~0.2.1" | ||
14 | } | ||
15 | } | ||
diff --git a/example/package.json b/example/package.json index b2d0d86..482563f 100644 --- a/example/package.json +++ b/example/package.json | |||
@@ -8,7 +8,7 @@ | |||
8 | }, | 8 | }, |
9 | "license": "MIT", | 9 | "license": "MIT", |
10 | "devDependencies": { | 10 | "devDependencies": { |
11 | "purs-loader": "0.0.2", | 11 | "purs-loader": "file:../", |
12 | "webpack": "^1.4.15" | 12 | "webpack": "^1.4.15" |
13 | } | 13 | } |
14 | } | 14 | } |
diff --git a/example/src/Foo.purs b/example/src/Foo.purs new file mode 100644 index 0000000..2d35d3f --- /dev/null +++ b/example/src/Foo.purs | |||
@@ -0,0 +1,5 @@ | |||
1 | module Foo (foo) where | ||
2 | |||
3 | import Data.Maybe | ||
4 | |||
5 | foo = "b" | ||
diff --git a/example/src/Test.purs b/example/src/Test.purs index 7409c6e..8a5cb88 100644 --- a/example/src/Test.purs +++ b/example/src/Test.purs | |||
@@ -1,3 +1,5 @@ | |||
1 | module Test (test) where | 1 | module Test (test) where |
2 | 2 | ||
3 | import Data.Maybe | ||
4 | |||
3 | test = "a" | 5 | test = "a" |
diff --git a/example/src/entry.js b/example/src/entry.js index 65119f6..4c15475 100644 --- a/example/src/entry.js +++ b/example/src/entry.js | |||
@@ -1,3 +1,5 @@ | |||
1 | var test = require('purs?no-prelude&output=output!./Test.purs'); | 1 | var test = require('purs?output=output!./Test.purs'); |
2 | 2 | ||
3 | console.log(test); | 3 | var foo = require('purs?output=output!./Foo.purs'); |
4 | |||
5 | console.log(test, foo); | ||