Skip to content

Commit 229cbf6

Browse files
committed
Update build to use new grunt plugin
1 parent 5bb520f commit 229cbf6

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

Gruntfile.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,32 @@ 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",
1010
],
11-
11+
1212
clean: ["output"],
13-
13+
1414
pscMake: ["<%=libFiles%>"],
1515
dotPsci: ["<%=libFiles%>"],
16-
docgen: {
16+
pscDocs: {
1717
readme: {
1818
src: "src/**/*.purs",
1919
dest: "README.md"
2020
}
21-
}
21+
},
22+
23+
jsvalidate: ["output/**/*.js"]
2224

2325
});
2426

2527
grunt.loadNpmTasks("grunt-contrib-clean");
2628
grunt.loadNpmTasks("grunt-purescript");
27-
28-
grunt.registerTask("make", ["pscMake", "dotPsci", "docgen"]);
29+
grunt.loadNpmTasks("grunt-jsvalidate");
30+
31+
grunt.registerTask("make", ["pscMake", "jsvalidate", "dotPsci", "pscDocs"]);
2932
grunt.registerTask("default", ["make"]);
3033
};

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"private": true,
33
"dependencies": {
4-
"grunt": "~0.4.4",
5-
"grunt-purescript": "~0.5.1",
6-
"grunt-contrib-clean": "~0.5.0"
4+
"grunt": "^0.4.5",
5+
"grunt-contrib-clean": "^0.5.0",
6+
"grunt-jsvalidate": "^0.2.2",
7+
"grunt-purescript": "^0.6.0"
78
}
89
}

0 commit comments

Comments
 (0)