Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #49 from purescript-contrib/build-updates
Browse files Browse the repository at this point in the history
Update build
  • Loading branch information
garyb committed May 16, 2016
2 parents 3e3f5ae + a15c39c commit 749c8f9
Show file tree
Hide file tree
Showing 77 changed files with 103 additions and 154 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/.*
!/.gitignore
!/.jscsrc
!/.jshintrc
!/.travis.yml
/bower_components/
/node_modules/
Expand Down
17 changes: 17 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"preset": "grunt",
"disallowSpacesInFunctionExpression": null,
"requireSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": null,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true,
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInsideObjectBrackets": null,
"requireSpacesInsideObjectBrackets": "all",
"validateQuoteMarks": "\"",
"requireCurlyBraces": null
}
20 changes: 20 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"bitwise": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"funcscope": true,
"futurehostile": true,
"strict": "global",
"latedef": true,
"maxparams": 1,
"noarg": true,
"nocomma": true,
"nonew": true,
"notypeof": true,
"singleGroups": true,
"undef": true,
"unused": true,
"eqnull": true,
"predef": ["exports"]
}
26 changes: 9 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
language: node_js
sudo: false
node_js:
- 4
env:
- PATH=$HOME/purescript:$PATH
dist: trusty
sudo: required
node_js: 5
install:
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- npm install bower gulp -g
- npm install && bower install
- npm install
- npm install -g bower
- bower install
script:
- gulp
- npm run build
after_success:
- >-
test $TRAVIS_TAG &&
psc-publish > .pursuit.json &&
curl -X POST http://pursuit.purescript.org/packages \
-d @.pursuit.json \
-H 'Accept: application/json' \
-H "Authorization: token ${GITHUB_TOKEN}"
echo $GITHUB_TOKEN | pulp login &&
echo y | pulp publish --no-push
31 changes: 0 additions & 31 deletions gulpfile.js

This file was deleted.

12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"private": true,
"scripts": {
"clean": "rimraf output && rimraf .pulp-cache",
"build": "jshint src && jscs src && pulp build"
},
"devDependencies": {
"gulp": "^3.8.11",
"gulp-purescript": "^0.8.0",
"rimraf": "^2.3.3"
"jscs": "^2.8.0",
"jshint": "^2.9.1",
"pulp": "^8.2.0",
"purescript": "^0.7.6",
"rimraf": "^2.4.1"
}
}
6 changes: 4 additions & 2 deletions src/DOM/Event/DragEvent/DataTransfer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use strict";

// module DOM.Event.DragEvent.DataTransfer

exports.files = function(dataTransfer) {
exports.files = function (dataTransfer) {
return dataTransfer.files;
}
};
1 change: 0 additions & 1 deletion src/DOM/Event/Event.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.Event.Event
Expand Down
1 change: 0 additions & 1 deletion src/DOM/Event/EventTarget.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.Event.EventTarget
Expand Down
2 changes: 1 addition & 1 deletion src/DOM/Event/Types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global exports, EventTarget */
/* global EventTarget */
"use strict";

// module DOM.Event.Types
Expand Down
6 changes: 4 additions & 2 deletions src/DOM/File/Blob.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use strict";

// module DOM.File.Blob

exports.typeImpl = function(blob) { return blob.type };
exports.typeImpl = function (blob) { return blob.type; };

exports.size = function(blob) { return blob.size };
exports.size = function (blob) { return blob.size; };
8 changes: 5 additions & 3 deletions src/DOM/File/File.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use strict";

// module DOM.File.File

exports.name = function(file) { return file.name };
exports.lastModifiedDate = function(file) { return file.lastModifiedDate }
exports.lastModified = function(file) { return file.lastModified }
exports.name = function (file) { return file.name; };
exports.lastModifiedDate = function (file) { return file.lastModifiedDate; };
exports.lastModified = function (file) { return file.lastModified; };
10 changes: 6 additions & 4 deletions src/DOM/File/FileList.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"use strict";

// module DOM.File.FileList

exports.length = function(fileList) { return fileList.length; };
exports.length = function (fileList) { return fileList.length; };

exports.item = function(index) {
return function(fileList) {
exports.item = function (index) {
return function (fileList) {
return fileList.item(index);
}
};
};
2 changes: 1 addition & 1 deletion src/DOM/HTML.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global exports, window */
/* global window */
"use strict";

// module DOM.HTML
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/Document.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.Document
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLAnchorElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLAnchorElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLAreaElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLAreaElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLBaseElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLBaseElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLButtonElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLButtonElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLCanvasElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLCanvasElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLDataElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLDataElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLDataListElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLDataListElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLEmbedElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLEmbedElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLFieldSetElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLFieldSetElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLFormElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLFormElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLIFrameElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLIFrameElement
Expand Down
2 changes: 1 addition & 1 deletion src/DOM/HTML/HTMLImageElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global exports, Image */
/* global Image */
"use strict";

// module DOM.HTML.HTMLImageElement
Expand Down
5 changes: 2 additions & 3 deletions src/DOM/HTML/HTMLInputElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLInputElement
Expand Down Expand Up @@ -727,7 +726,7 @@ exports["setRangeText'"] = function (replacement) {
return function (selectionMode) {
return function (input) {
return function () {
input.setRangeText(replacement);
input.setRangeText(replacement, start, end, selectionMode, input);
};
};
};
Expand All @@ -742,7 +741,7 @@ exports.setSelectionRange = function (start) {
return function (direction) {
return function (input) {
return function () {
input.setRangeText(replacement);
input.setSelectionRange(start, end, direction, input);
};
};
};
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLKeygenElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLKeygenElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLLIElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLLIElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLLabelElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLLabelElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLLegendElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLLegendElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLLinkElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLLinkElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLMapElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLMapElement
Expand Down
2 changes: 0 additions & 2 deletions src/DOM/HTML/HTMLMediaElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLMediaElement
Expand Down Expand Up @@ -219,7 +218,6 @@ exports.play = function (media) {
};
};


// ----------------------------------------------------------------------------

exports.pause = function (media) {
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLMetaElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLMetaElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLMeterElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLMeterElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLModElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLModElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLOListElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLOListElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLObjectElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLObjectElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLOptGroupElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLOptGroupElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLOptionElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLOptionElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLOutputElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLOutputElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLParamElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLParamElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLProgressElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLProgressElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLQuoteElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLQuoteElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLScriptElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLScriptElement
Expand Down
1 change: 0 additions & 1 deletion src/DOM/HTML/HTMLSelectElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global exports */
"use strict";

// module DOM.HTML.HTMLSelectElement
Expand Down
Loading

0 comments on commit 749c8f9

Please sign in to comment.