Skip to content

Commit ed42285

Browse files
authored
Merge pull request #11 from garyb/update-build
Update build for pursuit publishing, include README badges
2 parents 4548935 + cbf4e91 commit ed42285

File tree

4 files changed

+46
-27
lines changed

4 files changed

+46
-27
lines changed

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
language: node_js
22
dist: trusty
33
sudo: required
4-
node_js:
5-
- 6
4+
node_js: stable
65
install:
7-
- npm install pulp bower -g
8-
- npm install && bower install
6+
- npm install -g bower
7+
- npm install
8+
- bower install --production
99
script:
10-
- npm run test
10+
- npm run -s build
11+
- bower install
12+
- npm run -s test
13+
after_success:
14+
- >-
15+
test $TRAVIS_TAG &&
16+
echo $GITHUB_TOKEN | pulp login &&
17+
echo y | pulp publish --no-push

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# purescript-formatters
2-
Replacement for numeral.js, moment.js etc
2+
3+
[![Latest release](http://img.shields.io/github/release/slamdata/purescript-formatters.svg)](https://github.com/slamdata/purescript-formatters/releases)
4+
[![Build status](https://travis-ci.org/slamdata/purescript-formatters.svg?branch=master)](https://travis-ci.org/slamdata/purescript-formatters)
5+
6+
A PureScript alternative to numeral.js, moment.js, etc.
7+
8+
## Installation
9+
10+
```
11+
bower install purescript-formatters
12+
```
313

414
## Number formatters
515

@@ -47,3 +57,7 @@ This is just subset of format/parse string from moment.js library. Currently sup
4757
+ `mm`
4858
+ `ss`
4959
+ `SSS`
60+
61+
## Documentation
62+
63+
Module documentation is published on Pursuit: [http://pursuit.purescript.org/packages/purescript-formatters](http://pursuit.purescript.org/packages/purescript-formatters)

bower.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
{
22
"name": "purescript-formatters",
3+
"homepage": "https://github.com/slamdata/purescript-formatters",
4+
"license": "Apache-2.0",
5+
"repository": {
6+
"type": "git",
7+
"url": "git://github.com/slamdata/purescript-formatters.git"
8+
},
39
"ignore": [
410
"**/.*",
5-
"node_modules",
611
"bower_components",
7-
"output"
12+
"node_modules",
13+
"output",
14+
"test",
15+
"bower.json",
16+
"package.json"
817
],
918
"dependencies": {
1019
"purescript-prelude": "^2.1.0",

package.json

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
{
2-
"name": "purescript-formatters",
3-
"description": "Replacement for numeral.js, moment.js etc",
4-
"repository": {
5-
"type": "git",
6-
"url": "https://github.com/slamdata/purescript-formatters"
7-
},
8-
"contributors": [
9-
"Maxim Zimaliev <[email protected]>"
10-
],
11-
"license": "Apache-2.0",
12-
"bugs": {
13-
"url": "https://github.com/slamdata/purescript-formatters/issues"
14-
},
2+
"private": true,
153
"scripts": {
16-
"build": "pulp build -- --censor-lib --strict --stash",
17-
"test": "pulp test -- --censor-lib --strict --stash"
4+
"clean": "rimraf output && rimraf .pulp-cache",
5+
"build": "pulp build -- --censor-lib --strict",
6+
"test": "pulp test"
187
},
19-
"homepage": "https://github.com/slamdata/purescript-formatters#readme",
20-
"dependencies": {
21-
"pulp": "^9.1.0",
8+
"devDependencies": {
9+
"pulp": "^10.0.1",
2210
"purescript": "^0.10.7",
23-
"purescript-psa": "^0.3.9"
11+
"purescript-psa": "^0.4.0",
12+
"rimraf": "^2.6.1"
2413
}
2514
}

0 commit comments

Comments
 (0)