Skip to content

Commit fd516ec

Browse files
committed
Merge pull request #6 from purescript-node/1.0-updates
updates for 1.0 core libraries
2 parents 4bb9d14 + e1fa5af commit fd516ec

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ install:
1010
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1111
- chmod a+x $HOME/purescript
1212
- npm install
13+
- npm install -g bower
1314
script:
1415
- npm run build

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"package.json"
2121
],
2222
"devDependencies": {
23-
"purescript-assert": "^0.1.0",
24-
"purescript-console": "~0.1.1"
23+
"purescript-assert": "^1.0.0",
24+
"purescript-console": "^1.0.0"
2525
}
2626
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"private": true,
33
"devDependencies": {
4-
"pulp": "^4.3.0",
4+
"pulp": "^9.0.0",
55
"jscs": "^1.13.1",
66
"jshint": "^2.8.0",
77
"rimraf": "^2.3.3"
88
},
99
"scripts": {
1010
"build": "jshint src && jscs src && pulp build && rimraf docs && pulp docs",
11-
"postinstall": "pulp dep install"
11+
"postinstall": "bower install"
1212
}
1313
}

src/Node/Path.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use strict";
22

3-
// module Node.Path
4-
53
var path = require("path");
64

75
exports.normalize = path.normalize;

test/Test/Main.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module Test.Main where
22

33
import Prelude
4-
import Node.Path
5-
import Test.Assert
4+
import Control.Monad.Eff (Eff)
5+
import Node.Path (parse, delimiter, normalize, sep, extname, basenameWithoutExt, basename, dirname, relative, concat)
6+
import Test.Assert (ASSERT, assert)
67

8+
main :: forall eff. Eff ( assert :: ASSERT | eff ) Unit
79
main = do
810
assert $ normalize "/foo/bar//baz/asdf/quux/.." == normalize "/foo/bar/baz/asdf"
911
assert $ concat ["/foo", "bar"] == normalize "/foo/bar"

0 commit comments

Comments
 (0)