Skip to content

Commit 91b78b0

Browse files
committed
Update build and package files
1 parent 1758649 commit 91b78b0

File tree

7 files changed

+275
-301
lines changed

7 files changed

+275
-301
lines changed

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
.psci
2-
.psci_modules/
3-
node_modules
4-
bower_components
5-
dist
1+
/.*
2+
!/.gitignore
3+
/bower_components/
4+
/node_modules/
5+
/output/
6+
/tmp/

Gruntfile.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = function(grunt) {
2+
3+
"use strict";
4+
5+
grunt.initConfig({
6+
7+
libFiles: [
8+
"src/**/*.purs",
9+
"bower_components/purescript-*/src/**/*.purs*"
10+
],
11+
12+
clean: ["output", "tmp"],
13+
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"],
16+
docgen: {
17+
readme: {
18+
src: "src/**/*.purs",
19+
dest: "README.md"
20+
}
21+
},
22+
23+
psc: {
24+
options: {
25+
main: "Teletype"
26+
},
27+
example: {
28+
src: ["examples/Teletype.purs", "<%=libFiles%>"],
29+
dest: "tmp/Teletype.js"
30+
}
31+
},
32+
33+
execute: {
34+
example: {
35+
src: "tmp/Teletype.js"
36+
}
37+
}
38+
39+
});
40+
41+
grunt.loadNpmTasks("grunt-purescript");
42+
grunt.loadNpmTasks("grunt-execute");
43+
grunt.loadNpmTasks("grunt-contrib-clean");
44+
45+
grunt.registerTask("example", ["psc", "execute"]);
46+
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
47+
grunt.registerTask("default", ["make"]);
48+
};

MODULE.md

Lines changed: 0 additions & 199 deletions
This file was deleted.

0 commit comments

Comments
 (0)