Skip to content

Commit 5de1e92

Browse files
committed
Update build
1 parent 8bdeb8d commit 5de1e92

File tree

5 files changed

+33
-95
lines changed

5 files changed

+33
-95
lines changed

.gitignore

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

Gruntfile.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
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-
}
12+
clean: ["output"],
13+
14+
pscMake: {
15+
all: {
16+
src: ["examples/**/*.purs", "<%=libFiles%>"],
2017
}
21-
22-
});
18+
},
19+
dotPsci: ["<%=libFiles%>"]
2320

24-
grunt.loadNpmTasks("grunt-purescript");
25-
grunt.loadNpmTasks("grunt-contrib-clean");
21+
});
2622

27-
grunt.registerTask("default", ["purescript-make:lib"]);
23+
grunt.loadNpmTasks("grunt-contrib-clean");
24+
grunt.loadNpmTasks("grunt-purescript");
25+
26+
grunt.registerTask("make", ["pscMake", "dotPsci"]);
27+
grunt.registerTask("default", ["make"]);
2828
};

Makefile

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

bower.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "purescript-foreign",
3-
"version": "0.0.0",
43
"homepage": "https://github.com/purescript/purescript-foreign",
54
"authors": [
65
"Gary Burgess <[email protected]>"
@@ -12,11 +11,15 @@
1211
"license": "MIT",
1312
"ignore": [
1413
"**/.*",
15-
"node_modules",
1614
"bower_components",
1715
"examples",
18-
"externs",
19-
"js"
16+
"node_modules",
17+
"output",
18+
"tests",
19+
"tmp",
20+
"bower.json",
21+
"Gruntfile.js",
22+
"package.json"
2023
],
2124
"dependencies": {
2225
"purescript-arrays": "*",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "purescript-foreign",
3-
"version": "0.0.0",
3+
"private": true,
44
"devDependencies": {
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)