Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
garyb committed Apr 25, 2014
1 parent ab4959d commit 7e68f4a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 31 deletions.
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/js/
/externs/
/node_modules/
/bower_components/
/node_modules/
/output/
/tmp/
/.psci
38 changes: 17 additions & 21 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
module.exports = function(grunt) {

"use strict";
"use strict";

grunt.initConfig({
grunt.initConfig({

libFiles: [
"src/**/*.purs",
"bower_components/purescript-*/src/**/*.purs",
],

clean: ["externs", "js"],

"purescript-make": {
options: {
tco: true,
magicDo: true
},
lib: {
src:
[ "src/**/*.purs"
, "bower_components/purescript-*/src/**/*.purs"
]
}
}

});
clean: ["output"],

pscMake: ["<%=libFiles%>"],
dotPsci: ["<%=libFiles%>"]

grunt.loadNpmTasks("grunt-purescript");
grunt.loadNpmTasks("grunt-contrib-clean");
});

grunt.registerTask("default", ["purescript-make:lib"]);
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-purescript");

grunt.registerTask("make", ["pscMake", "dotPsci"]);
grunt.registerTask("default", ["make"]);
};
12 changes: 7 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "purescript-strings",
"version": "0.0.0",
"homepage": "https://github.com/purescript/purescript-strings",
"description": "String utility functions and regular expressions",
"keywords": [
Expand All @@ -9,10 +8,13 @@
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"examples",
"externs",
"js"
"node_modules",
"output",
"tests",
"tmp",
"bower.json",
"Gruntfile.js",
"package.json"
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "purescript-strings",
"version": "0.0.0",
"private": true,
"devDependencies": {
"grunt": "~0.4.4",
"grunt-purescript": "~0.4.0",
"grunt-purescript": "~0.5.0",
"grunt-contrib-clean": "~0.5.0"
}
}

0 comments on commit 7e68f4a

Please sign in to comment.