Skip to content

Commit a2ee80e

Browse files
committed
Update build
1 parent 05fab08 commit a2ee80e

File tree

4 files changed

+66
-36
lines changed

4 files changed

+66
-36
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
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

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,49 @@
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-
psc: {
10-
options: {
11-
main: true
12-
},
13-
lib: {
14-
src:
15-
[ "src/**/*.purs.hs"
16-
, "examples/**/*.purs.hs"
17-
, "bower_components/purescript-*/src/**/*.purs"
18-
],
19-
dest: "js/Main.js"
20-
}
12+
clean: ["output"],
13+
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "docs/Module.md"
2120
}
22-
23-
});
21+
},
22+
23+
psc: {
24+
options: {
25+
main: true
26+
},
27+
exampleTest: {
28+
src: ["examples/Test.purs", "<%=libFiles%>"],
29+
dest: "tmp/Test.js"
30+
}
31+
},
32+
33+
execute: {
34+
exampleTest: {
35+
src: "tmp/Test.js"
36+
}
37+
}
2438

25-
grunt.loadNpmTasks("grunt-purescript");
26-
grunt.loadNpmTasks("grunt-contrib-clean");
39+
});
2740

28-
grunt.registerTask("default", ["psc"]);
41+
grunt.loadNpmTasks("grunt-contrib-clean");
42+
grunt.loadNpmTasks("grunt-purescript");
43+
grunt.loadNpmTasks("grunt-execute");
44+
45+
grunt.registerTask("exampleTest", ["psc:exampleTest", "execute:exampleTest"]);
46+
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
47+
grunt.registerTask("test", ["exampleTest"]);
48+
grunt.registerTask("default", ["make"]);
2949
};

bower.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
{
22
"name": "purescript-parsing",
3-
"version": "0.0.1",
3+
"homepage": "https://github.com/purescript-contrib/purescript-parsing",
4+
"description": "Parser combinator library",
5+
"keywords": [
6+
"purescript"
7+
],
8+
"license": "MIT",
49
"ignore": [
5-
".jshintrc",
6-
"**/*.txt",
7-
"tmp/**"
10+
"**/.*",
11+
"bower_components",
12+
"node_modules",
13+
"output",
14+
"tests",
15+
"tmp",
16+
"bower.json",
17+
"Gruntfile.js",
18+
"package.json"
819
],
920
"dependencies": {
1021
"purescript-transformers": "*",
@@ -13,8 +24,5 @@
1324
"purescript-arrays": "*",
1425
"purescript-strings": "*",
1526
"purescript-foldable-traversable": "*"
16-
},
17-
"devDependencies": {
18-
"purescript-quickcheck": "https://github.com/purescript/purescript-quickcheck.git"
1927
}
2028
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "purescript-parsing",
3-
"version": "0.0.1",
4-
"devDependencies": {
2+
"private": true,
3+
"dependencies": {
54
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.5.0",
7-
"grunt-contrib-clean": "~0.5.0"
5+
"grunt-contrib-clean": "~0.5.0",
6+
"grunt-execute": "~0.2.2",
7+
"grunt-purescript": "~0.5.1"
88
}
99
}

0 commit comments

Comments
 (0)