Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

Commit af891c7

Browse files
committed
Update build
1 parent de9b85b commit af891c7

File tree

6 files changed

+57
-35
lines changed

6 files changed

+57
-35
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
/js/
2-
/externs/
3-
/node_modules/
1+
/.*
2+
!/.gitignore
3+
!/.travis.yml
44
/bower_components/
5+
/node_modules/
6+
/output/
57
/tmp/
6-
/.psci

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"
4+
install:
5+
- "sudo apt-get install cabal-install"
6+
- "cabal update"
7+
- "cabal install Cabal cabal-install"
8+
- "export PATH=~/.cabal/bin:$PATH"
9+
- "cabal install purescript --force-reinstalls"
10+
- "npm install bower grunt-cli -g"
11+
- "npm install"
12+
- "bower install"
13+
script:
14+
- "grunt test"

Gruntfile.js

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
module.exports = function(grunt) {
22

3-
"use strict";
4-
5-
grunt.initConfig({
6-
7-
libFiles: [
8-
"src/**/*.purs",
9-
"bower_components/purescript-*/src/**/*.purs"
10-
],
11-
12-
clean: {
13-
lib: ["js", "externs"]
14-
},
15-
16-
pscMake: ["<%=libFiles%>"],
17-
dotPsci: ["<%=libFiles%>"]
18-
19-
});
20-
21-
grunt.loadNpmTasks("grunt-contrib-clean");
22-
grunt.loadNpmTasks("grunt-purescript");
23-
24-
grunt.registerTask("make", ["pscMake", "dotPsci"]);
25-
grunt.registerTask("default", ["make"]);
3+
"use strict";
4+
5+
grunt.initConfig({
6+
7+
libFiles: [
8+
"src/**/*.purs",
9+
"bower_components/purescript-*/src/**/*.purs",
10+
],
11+
12+
clean: ["output"],
13+
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "docs/Module.md"
20+
}
21+
}
22+
23+
});
24+
25+
grunt.loadNpmTasks("grunt-contrib-clean");
26+
grunt.loadNpmTasks("grunt-purescript");
27+
28+
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
29+
grunt.registerTask("default", ["make"]);
2630
};

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
purescript-arrows
22
=================
33

4+
[![Build Status](https://travis-ci.org/purescript-contrib/purescript-arrows.svg?branch=master)](https://travis-ci.org/purescript-contrib/purescript-arrows)
5+
46
Type classes for Arrows.
7+
8+
- [Module documentation](docs/Module.md)

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "purescript-arrows",
3-
"version": "0.0.0",
4-
"homepage": "https://github.com/purescript/purescript-arrows",
3+
"homepage": "https://github.com/purescript-contrib/purescript-arrows",
54
"authors": [
65
"Phil Freeman <[email protected]>"
76
],
@@ -13,10 +12,11 @@
1312
"ignore": [
1413
"**/.*",
1514
"bower_components",
16-
"externs",
17-
"js",
1815
"node_modules",
16+
"output",
17+
"tests",
1918
"tmp",
19+
"bower.json",
2020
"Gruntfile.js",
2121
"package.json"
2222
],

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"name": "purescript-arrows",
3-
"version": "0.0.0",
4-
"devDependencies": {
2+
"private": true,
3+
"dependencies": {
54
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.5.0",
5+
"grunt-purescript": "~0.5.1",
76
"grunt-contrib-clean": "~0.5.0"
87
}
98
}

0 commit comments

Comments
 (0)