This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
114 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
/bower_components/ | ||
/node_modules/ | ||
/output/ | ||
/tmp/ | ||
/test/dist/test.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"bitwise": true, | ||
"eqeqeq": true, | ||
"forin": true, | ||
"freeze": true, | ||
"funcscope": true, | ||
"futurehostile": true, | ||
"strict": "global", | ||
"latedef": true, | ||
"noarg": true, | ||
"nocomma": true, | ||
"nonew": true, | ||
"notypeof": true, | ||
"singleGroups": true, | ||
"undef": true, | ||
"unused": true, | ||
"eqnull": true, | ||
"predef": ["exports", "require"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- 0.12.7 | ||
dist: trusty | ||
sudo: required | ||
node_js: 6 | ||
install: | ||
- npm install -g gulp bower | ||
- npm install -g bower | ||
- npm install | ||
- bower install | ||
script: | ||
- npm run build | ||
- bower install --production | ||
- npm run -s build | ||
- bower install | ||
- npm run -s test | ||
after_success: | ||
- >- | ||
test $TRAVIS_TAG && | ||
echo $GITHUB_TOKEN | pulp login && | ||
echo y | pulp publish --no-push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# purescript-browserfeatures | ||
|
||
[![Latest release](http://img.shields.io/bower/v/purescript-browserfeatures.svg)](https://github.com/slamdata/purescript-browserfeatures/releases) | ||
[![Build Status](https://travis-ci.org/slamdata/purescript-browserfeatures.svg?branch=master)](https://travis-ci.org/slamdata/purescript-browserfeatures) | ||
[![Dependency Status](https://www.versioneye.com/user/projects/579a398a3815c8003b2a6cb4/badge.svg?style=flat)](https://www.versioneye.com/user/projects/579a398a3815c8003b2a6cb4) | ||
|
||
A data type for browser features and detectors to test for the features. | ||
|
||
To build, run | ||
## Installation | ||
|
||
``` | ||
gulp | ||
bower install purescript-browserfeatures | ||
``` | ||
|
||
Then open `test/index.html` and observe the console to see this in action. | ||
## Documentation | ||
|
||
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-browserfeatures). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
{ | ||
"name": "purescript-browserfeatures", | ||
"description": "A PureScript interface to browserfeatures.js.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/slamdata/purescript-browserfeatures.git" | ||
}, | ||
"author": "Jon Sterling <[email protected]>", | ||
"license": "Apache-2.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "npm install && gulp bundle-test" | ||
"clean": "rimraf output && rimraf .pulp-cache", | ||
"build": "jshint src && jscs src && pulp build --censor-lib --strict", | ||
"test": "pulp browserify -I test/src --main Test.Main --to test/dist/test.js" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.9.0", | ||
"gulp-purescript": "^0.7.0", | ||
"purescript": "^0.7.6", | ||
"webpack-stream": "^2.1.0" | ||
}, | ||
"dependencies": { | ||
"easyimage": "^2.1.0", | ||
"jscs": "^2.8.0", | ||
"jshint": "^2.9.1", | ||
"pulp": "^9.0.1", | ||
"purescript-psa": "^0.3.8", | ||
"purescript": "^0.9.1", | ||
"rimraf": "^2.5.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<html> | ||
<head> | ||
<title>Platform Test</title> | ||
<script src="../tmp/test.js" type="text/javascript"></script> | ||
<script src="test.js" type="text/javascript"></script> | ||
</head> | ||
</html> |
Oops, something went wrong.