Skip to content

Commit 3eff299

Browse files
committed
Update build
1 parent 5e0f904 commit 3eff299

File tree

3 files changed

+79
-77
lines changed

3 files changed

+79
-77
lines changed

Gruntfile.js

Lines changed: 65 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,73 @@
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+
],
11+
12+
clean: ["output", "tmp"],
613

7-
clean: ["externs", "js"],
8-
9-
"purescript-make": {
10-
options: {
11-
tco: true,
12-
magicDo: true
13-
},
14-
lib: {
15-
options: { make: true },
16-
files: { _: ["src/**/*.purs", "bower_components/purescript-*/src/**/*.purs"] }
17-
}
18-
},
19-
20-
purescript: {
21-
options: {
22-
main: true
23-
},
24-
exampleReader: {
25-
files: {
26-
"js/_examples/Reader.js": ["examples/Reader.purs", "src/**/*.purs", "bower_components/purescript-*/src/**/*.purs"]
27-
}
28-
},
29-
exampleState: {
30-
files: {
31-
"js/_examples/State.js": ["examples/State.purs", "src/**/*.purs", "bower_components/purescript-*/src/**/*.purs"]
32-
}
33-
},
34-
exampleWriter: {
35-
files: {
36-
"js/_examples/Writer.js": ["examples/Writer.purs", "src/**/*.purs", "bower_components/purescript-*/src/**/*.purs"]
37-
}
38-
},
39-
exampleCont: {
40-
files: {
41-
"js/_examples/Cont.js": ["examples/Cont.purs", "src/**/*.purs", "bower_components/purescript-*/src/**/*.purs"]
42-
}
43-
}
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "README.md"
4420
}
45-
46-
});
21+
},
22+
23+
psc: {
24+
options: {
25+
main: true
26+
},
27+
exampleReader: {
28+
src: ["examples/Reader.purs", "<%=libFiles%>"],
29+
dest: "tmp/Reader.js"
30+
},
31+
exampleState: {
32+
src: ["examples/State.purs", "<%=libFiles%>"],
33+
dest: "tmp/State.js"
34+
},
35+
exampleWriter: {
36+
src: ["examples/Writer.purs", "<%=libFiles%>"],
37+
dest: "tmp/Writer.js"
38+
},
39+
exampleCont: {
40+
src: ["examples/Cont.purs", "<%=libFiles%>"],
41+
dest: "tmp/Cont.js"
42+
}
43+
},
44+
45+
execute: {
46+
exampleReader: {
47+
src: "tmp/Reader.js"
48+
},
49+
exampleState: {
50+
src: "tmp/State.js"
51+
},
52+
exampleWriter: {
53+
src: "tmp/Writer.js"
54+
},
55+
exampleCont: {
56+
src: "tmp/Cont.js"
57+
}
58+
}
59+
60+
});
4761

48-
grunt.loadNpmTasks("grunt-purescript");
49-
grunt.loadNpmTasks("grunt-contrib-clean");
62+
grunt.loadNpmTasks("grunt-purescript");
63+
grunt.loadNpmTasks("grunt-execute");
64+
grunt.loadNpmTasks("grunt-contrib-clean");
5065

51-
grunt.registerTask("default", ["purescript-make:lib"]);
66+
grunt.registerTask("exampleReader", ["psc:exampleReader", "execute:exampleReader"]);
67+
grunt.registerTask("exampleState", ["psc:exampleState", "execute:exampleState"]);
68+
grunt.registerTask("exampleWriter", ["psc:exampleWriter", "execute:exampleWriter"]);
69+
grunt.registerTask("exampleCont", ["psc:exampleCont", "execute:exampleCont"]);
70+
grunt.registerTask("examples", ["psc", "execute"]);
71+
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
72+
grunt.registerTask("default", ["make"]);
5273
};

bower.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
22
"name": "purescript-transformers",
3-
"version": "0.0.0",
43
"homepage": "https://github.com/purescript/purescript-transformers",
5-
"authors": [
6-
"Gary Burgess <[email protected]>"
7-
],
84
"description": "PureScript monad transformers library",
95
"keywords": [
106
"purescript"
117
],
128
"license": "MIT",
139
"ignore": [
1410
"**/.*",
15-
"node_modules",
1611
"bower_components",
17-
"examples",
18-
"externs",
19-
"js"
12+
"node_modules",
13+
"output",
14+
"tests",
15+
"tmp",
16+
"bower.json",
17+
"Gruntfile.js",
18+
"package.json"
2019
],
2120
"dependencies": {
2221
"purescript-tuples": "*",

package.json

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
{
2-
"name": "purescript-transformers",
3-
"description": "PureScript monad transformers library",
4-
"version": "0.0.1",
5-
"homepage": "https://github.com/purescript/purescript-transformers",
6-
"author": {
7-
"name": "Gary Burgess",
8-
"email": "[email protected]"
9-
},
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/purescript/purescript-transformers.git"
13-
},
14-
"bugs": {
15-
"url": "https://github.com/purescript/purescript-transformers/issues"
16-
},
17-
"licenses": [
18-
{
19-
"type": "MIT",
20-
"url": "https://github.com/purescript/purescript-transformers/blob/master/LICENSE"
21-
}
22-
],
23-
"devDependencies": {
24-
"grunt": "~0.4.4",
25-
"grunt-purescript": "~0.4.0",
26-
"grunt-contrib-clean": "~0.5.0"
2+
"private": true,
3+
"dependencies": {
4+
"grunt": "~0.4.5",
5+
"grunt-purescript": "~0.5.1",
6+
"grunt-contrib-clean": "~0.5.0",
7+
"grunt-contrib-watch": "~0.6.1",
8+
"grunt-execute": "~0.2.1"
279
}
2810
}

0 commit comments

Comments
 (0)