Skip to content

Commit 96c2bc8

Browse files
committed
Date/time overhaul (#34)
1 parent 0e5807f commit 96c2bc8

26 files changed

+1137
-1387
lines changed

.jscsrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"preset": "grunt",
3+
"disallowSpacesInFunctionExpression": null,
4+
"requireSpacesInFunctionExpression": {
5+
"beforeOpeningRoundBrace": true,
6+
"beforeOpeningCurlyBrace": true
7+
},
38
"disallowSpacesInAnonymousFunctionExpression": null,
49
"requireSpacesInAnonymousFunctionExpression": {
510
"beforeOpeningRoundBrace": true,

.jshintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"futurehostile": true,
88
"strict": "global",
99
"latedef": true,
10-
"maxparams": 1,
1110
"noarg": true,
1211
"nocomma": true,
1312
"nonew": true,
1413
"notypeof": true,
1514
"singleGroups": true,
1615
"undef": true,
1716
"unused": true,
18-
"eqnull": true
17+
"eqnull": true,
18+
"predef": ["exports"]
1919
}

.travis.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
language: node_js
2-
sudo: false
3-
node_js:
4-
- 0.10
2+
dist: trusty
3+
sudo: required
4+
node_js: 6
55
env:
66
- PATH=$HOME/purescript:$PATH
77
install:
88
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
99
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
1010
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
1111
- chmod a+x $HOME/purescript
12+
- npm install -g bower
1213
- npm install
1314
script:
14-
- npm run build
15+
- bower install --production
16+
- npm run -s build
17+
- bower install
18+
- npm test
19+
after_success:
20+
- >-
21+
test $TRAVIS_TAG &&
22+
echo $GITHUB_TOKEN | pulp login &&
23+
echo y | pulp publish --no-push

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
[![Build Status](https://travis-ci.org/purescript/purescript-datetime.svg?branch=master)](https://travis-ci.org/purescript/purescript-datetime)
55
[![Dependency Status](https://www.versioneye.com/user/projects/55848c1636386100150003d4/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55848c1636386100150003d4)
66

7-
Date and time functions and values.
7+
Date and time types and functions.
88

99
## Installation
1010

1111
```
1212
bower install purescript-datetime
1313
```
1414

15-
## Module documentation
15+
## Documentation
1616

17-
- [Data.Date](docs/Data/Date.md)
18-
- [Data.Date.Locale](docs/Data/Date/Locale.md)
19-
- [Data.Date.UTC](docs/Data/Date/UTC.md)
20-
- [Data.Time](docs/Data/Time.md)
17+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-datetime).

bower.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
22
"name": "purescript-datetime",
33
"homepage": "https://github.com/purescript/purescript-datetime",
4-
"authors": [
5-
"Gary Burgess <[email protected]>"
6-
],
74
"description": "PureScript library for date and time values",
8-
"keywords": [
9-
"purescript",
10-
"date",
11-
"time"
12-
],
135
"license": "MIT",
146
"repository": {
157
"type": "git",
@@ -24,8 +16,14 @@
2416
"package.json"
2517
],
2618
"dependencies": {
27-
"purescript-enums": "^0.7.0",
28-
"purescript-functions": "^0.1.0",
29-
"purescript-globals": "^0.2.0"
19+
"purescript-enums": "^1.0.0",
20+
"purescript-functions": "^1.0.0",
21+
"purescript-generics": "^1.0.0",
22+
"purescript-integers": "^1.0.0",
23+
"purescript-math": "^2.0.0"
24+
},
25+
"devDependencies": {
26+
"purescript-assert": "^1.0.0",
27+
"purescript-console": "^1.0.0"
3028
}
3129
}

docs/Data/Date.md

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)