Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

Commit 98944c6

Browse files
committed
Update build
1 parent addfdc1 commit 98944c6

File tree

5 files changed

+31
-60
lines changed

5 files changed

+31
-60
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/js/
2-
/externs/
3-
/node_modules/
41
/bower_components/
2+
/node_modules/
3+
/output/
4+
/tmp/
5+
/.psci

Gruntfile.js

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
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-
"purescript-make": {
10-
options: {
11-
tco: true,
12-
magicDo: true
13-
},
14-
lib: {
15-
src:
16-
[ "src/**/*.purs"
17-
, "bower_components/purescript-*/src/**/*.purs"
18-
]
19-
}
20-
},
21-
22-
purescript: {
23-
options: {
24-
tco: true,
25-
magicDo: true
26-
},
27-
"test-simple": {
28-
options: {
29-
main: true
30-
},
31-
dest: "js/_examples/simple.js",
32-
src:
33-
[ "examples/Simple.purs.hs"
34-
, "src/**/*.purs"
35-
, "bower_components/purescript-*/src/**/*.purs"
36-
]
37-
}
38-
}
39-
40-
});
12+
clean: ["output"],
13+
14+
pscMake: ["<%=libFiles%>"],
15+
dotPsci: ["<%=libFiles%>"]
4116

42-
grunt.loadNpmTasks("grunt-purescript");
43-
grunt.loadNpmTasks("grunt-contrib-clean");
17+
});
4418

45-
grunt.registerTask("default", ["purescript-make:lib"]);
19+
grunt.loadNpmTasks("grunt-contrib-clean");
20+
grunt.loadNpmTasks("grunt-purescript");
21+
22+
grunt.registerTask("make", ["pscMake", "dotPsci"]);
23+
grunt.registerTask("default", ["make"]);
4624
};

bower.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "purescript-math",
3-
"version": "0.0.0",
43
"homepage": "https://github.com/purescript/purescript-math",
54
"description": "Math functions",
65
"keywords": [
@@ -9,10 +8,13 @@
98
"license": "MIT",
109
"ignore": [
1110
"**/.*",
12-
"node_modules",
1311
"bower_components",
14-
"examples",
15-
"externs",
16-
"js"
12+
"node_modules",
13+
"output",
14+
"tests",
15+
"tmp",
16+
"bower.json",
17+
"Gruntfile.js",
18+
"package.json"
1719
]
1820
}

examples/Simple.purs

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "purescript-math",
3-
"version": "0.0.0",
4-
"devDependencies": {
3+
"private": true,
4+
"dependencies": {
55
"grunt": "~0.4.4",
6-
"grunt-purescript": "~0.4.0",
6+
"grunt-purescript": "~0.5.0",
77
"grunt-contrib-clean": "~0.5.0"
88
}
99
}

0 commit comments

Comments
 (0)