Skip to content

Commit be25cc5

Browse files
committed
Update build
1 parent 0342648 commit be25cc5

File tree

3 files changed

+23
-52
lines changed

3 files changed

+23
-52
lines changed

.gitignore

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

Gruntfile.js

+15-43
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,29 @@ module.exports = function(grunt) {
22

33
"use strict";
44

5-
grunt.initConfig({
6-
5+
grunt.initConfig({
6+
77
libFiles: [
88
"src/**/*.purs",
99
"bower_components/purescript-*/src/**/*.purs",
10-
"bower_components/purescript-*/src/**/*.purs.hs"
1110
],
12-
13-
clean: {
14-
tests: ["tmp"],
15-
lib: ["js", "externs"]
16-
},
17-
18-
"purescript-make": {
19-
options: {
20-
tco: true,
21-
magicDo: true
22-
},
23-
lib: {
24-
src: "<%=libFiles%>"
25-
}
26-
},
27-
28-
purescript: {
29-
options: {
30-
tco: true,
31-
magicDo: true
32-
},
33-
tests: {
34-
options: {
35-
main: "SimplePathTests",
36-
module: ["SimplePathTests"]
37-
},
38-
src: ["tests/Simple.purs", "<%=libFiles%>"],
39-
dest: "tmp/tests.js"
40-
}
41-
},
42-
43-
execute: {
44-
tests: {
45-
src: "tmp/tests.js"
46-
}
11+
12+
clean: ["output"],
13+
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "README.md"
20+
}
4721
}
4822

4923
});
5024

5125
grunt.loadNpmTasks("grunt-contrib-clean");
5226
grunt.loadNpmTasks("grunt-purescript");
53-
grunt.loadNpmTasks("grunt-execute");
54-
55-
grunt.registerTask("test", ["clean:tests", "purescript:tests", "execute:tests"]);
56-
grunt.registerTask("lib", ["purescript-make:lib"]);
57-
grunt.registerTask("default", ["test", "lib"]);
27+
28+
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
29+
grunt.registerTask("default", ["make"]);
5830
};

package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
2-
"name": "purescript-node-path",
3-
"version": "0.0.0",
4-
"devDependencies": {
2+
"private": true,
3+
"dependencies": {
54
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.4.0",
7-
"grunt-contrib-clean": "~0.5.0",
8-
"grunt-execute": "~0.1.5"
5+
"grunt-purescript": "~0.5.1",
6+
"grunt-contrib-clean": "~0.5.0"
97
}
108
}

0 commit comments

Comments
 (0)