From 8593d51ecc7a3030be0588b68f65bee78d3d7ad6 Mon Sep 17 00:00:00 2001 From: Gary Burgess Date: Sat, 11 Jun 2016 02:26:19 +0100 Subject: [PATCH] Update build --- .travis.yml | 16 ++++++++++++---- README.md | 3 ++- bower.json | 15 ++++++--------- package.json | 7 ++++--- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index d09d9fc..3455305 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,21 @@ language: node_js dist: trusty sudo: required -node_js: 5 +node_js: 6 +env: + - PATH=$HOME/purescript:$PATH install: - - npm 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 -g bower - - bower install + - npm install script: - - npm run build + - bower install --production + - npm run -s build + - bower install + - npm -s test after_success: - >- test $TRAVIS_TAG && diff --git a/README.md b/README.md index 2cd4561..5f4d8d3 100755 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Latest release](http://img.shields.io/bower/v/purescript-dom.svg)](https://github.com/purescript-contrib/purescript-dom/releases) [![Build Status](https://travis-ci.org/purescript-contrib/purescript-dom.svg?branch=master)](https://travis-ci.org/purescript-contrib/purescript-dom) +[![Dependency Status](https://www.versioneye.com/user/projects/575b690c7757a0004a1decd6/badge.svg?style=flat)](https://www.versioneye.com/user/projects/575b690c7757a0004a1decd6) [![Maintainer: garyb](https://img.shields.io/badge/maintainer-garyb-lightgrey.svg)](http://github.com/garyb) Type definitions, low level interface implementations, and standard effect type for use while interacting with the DOM. @@ -35,4 +36,4 @@ Module documentation is published on Pursuit: http://pursuit.purescript.org/pack ## Non-standards compliant interfaces -Currently we're choosing not to implement deprecated or non-standard interfaces even if they are commonly available. The `innerHTML` property of `Element` and `keyCode`/`charCode` of `KeyboardEvent` being examples of this. Ideally this module will only provide types and functions that "everyone" can agree on. This also means new parts of the specifications that are currently not widely available may also be omitted for the time being, however this only applies to the API implementation, types for new interfaces will be included as needed. +Currently we're choosing not to implement deprecated or non-standard interfaces even if they are commonly available. The `innerHTML` property of `Element` and `keyCode`/`charCode` of `KeyboardEvent` being examples of this. Ideally this module will only provide types and functions that "everyone" can agree on. This also means new parts of the specifications that are currently not widely available may also be omitted for the time being, however this only applies to the API implementation, types for new interfaces will be included as needed. diff --git a/bower.json b/bower.json index abf7098..f6e22a4 100644 --- a/bower.json +++ b/bower.json @@ -20,18 +20,15 @@ "package.json" ], "dependencies": { - "purescript-unsafe-coerce": "^1.0.0", + "purescript-datetime": "^1.0.0", "purescript-enums": "^1.0.0", + "purescript-exceptions": "^1.0.0", + "purescript-foldable-traversable": "^1.0.0", "purescript-foreign": "^1.0.0", - "purescript-exceptions": "~1.0.0", + "purescript-js-date": "^1.0.0", + "purescript-media-types": "^1.0.0", "purescript-nullable": "^1.0.0", - "purescript-datetime": "~1.0.0", - "purescript-media-types": "~1.0.0", "purescript-prelude": "^1.0.0", - "purescript-foldable-traversable": "^1.0.0", - "purescript-js-date": "^1.0.0" - }, - "devDependencies": { - "purescript-psci-support": "^1.0.0" + "purescript-unsafe-coerce": "^1.0.0" } } diff --git a/package.json b/package.json index 9fe6391..46e9a54 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,14 @@ "private": true, "scripts": { "clean": "rimraf output && rimraf .pulp-cache", - "build": "jshint src && jscs src && pulp build" + "build": "jshint src && jscs src && psa \"src/**/*.purs\" \"bower_components/purescript-*/src/**/*.purs\" --censor-lib --strict", + "test": "psc \"src/**/*.purs\" \"bower_components/purescript-*/src/**/*.purs\" \"test/**/*.purs\" && psc-bundle \"output/**/*.js\" --module Test.Main --main Test.Main | node" }, "devDependencies": { "jscs": "^2.8.0", "jshint": "^2.9.1", "pulp": "^8.2.0", - "purescript": "^0.7.6", - "rimraf": "^2.4.1" + "purescript-psa": "^0.3.8", + "rimraf": "^2.5.0" } }