Skip to content

Commit b200405

Browse files
committed
Update build & dependencies
1 parent 124b6ea commit b200405

File tree

4 files changed

+34
-35
lines changed

4 files changed

+34
-35
lines changed

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
/js/
2-
/externs/
3-
/node_modules/
1+
/.*
2+
!/.gitignore
43
/bower_components/
4+
/node_modules/
5+
/output/
6+
/tmp/

Gruntfile.js

+23-24
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
module.exports = function(grunt) {
22

3-
"use strict";
3+
"use strict";
44

5-
grunt.initConfig({
5+
grunt.initConfig({
6+
7+
libFiles: [
8+
"src/**/*.purs",
9+
"bower_components/purescript-*/src/**/*.purs",
10+
],
611

7-
clean: ["externs", "js"],
8-
9-
libFiles: [
10-
"src/**/*.purs",
11-
"bower_components/purescript-*/src/**/*.purs",
12-
"bower_components/purescript-*/src/**/*.purs.hs"
13-
],
14-
15-
"purescript-make": {
16-
options: {
17-
tco: true,
18-
magicDo: true
19-
},
20-
lib: {
21-
src: "<%=libFiles%>"
22-
}
12+
clean: ["output"],
13+
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "README.md"
2320
}
24-
25-
});
21+
}
2622

27-
grunt.loadNpmTasks("grunt-purescript");
28-
grunt.loadNpmTasks("grunt-contrib-clean");
29-
30-
grunt.registerTask("default", ["purescript-make:lib"]);
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"]);
3130
};

bower.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "purescript-node-buffer",
3-
"version": "0.0.0",
43
"license": "MIT",
54
"ignore": [
65
"**/.*",
@@ -10,6 +9,6 @@
109
"tests"
1110
],
1211
"dependencies": {
13-
"purescript-maybe": "*"
12+
"purescript-maybe": "~0.2.1"
1413
}
1514
}

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"name": "purescript-node-buffer",
3-
"version": "0.0.0",
4-
"devDependencies": {
5-
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.4.0",
7-
"grunt-contrib-clean": "~0.5.0"
2+
"private": true,
3+
"dependencies": {
4+
"grunt": "~0.4.5",
5+
"grunt-contrib-clean": "~0.5.0",
6+
"grunt-purescript": "~0.5.1"
87
}
98
}

0 commit comments

Comments
 (0)