Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize & cleanup #72

Merged
merged 4 commits into from
Sep 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

37 changes: 3 additions & 34 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
{
"parser": "babel-eslint",

"env": {
"browser": true,
"node": true,
"es6": true
"node": true
},

"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": false,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": false,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
},

"rules": {
"block-scoped-var": [0],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
Expand Down Expand Up @@ -81,7 +52,7 @@
"no-else-return": [0],
"no-empty": [2],
"no-empty-character-class": [2],
"no-empty-label": [2],
"no-labels": [2],
"no-eq-null": [0],
"no-eval": [2],
"no-ex-assign": [2],
Expand All @@ -99,7 +70,6 @@
"no-irregular-whitespace": [2],
"no-iterator": [2],
"no-label-var": [2],
"no-labels": [2],
"no-lone-blocks": [2],
"no-lonely-if": [2],
"no-loop-func": [2],
Expand Down Expand Up @@ -162,7 +132,7 @@
"semi": [2],
"semi-spacing": [2, {"before": false, "after": true}],
"sort-vars": [0],
"space-after-keywords": [2, "always"],
"keyword-spacing": [2, {"after": true}],
"space-before-function-paren": [2, {"anonymous": "always", "named": "always"}],
"space-before-blocks": [0, "always"],
"space-in-brackets": [
Expand All @@ -177,7 +147,6 @@
],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-return-throw-case": [2],
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"spaced-line-comment": [0, "always"],
"strict": [2, "never"],
Expand Down
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
bin/env.sh
dist
npm-debug.log
test-cuid.js
.zuulrc
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ node_js:
- "4"
- "6"
- "7"
install:
- npm install
script:
- npm run validate
env:
global:
- secure: ZaVxQhRv9HYXTCqeS9T4XXGO1cGayL11os8jDZ6wqNkQAwkOw3QSL70iloN5DMzg4WXv8Pwp5I4EUDIcUwiu4UCbDgfn1vYoTfVEmDMBDni4xw3CRG7IT8gEijJItCaOdEzC+IBmpAFuVI8xcuic7WBYPKRnShWkZ1xwmHDSenc=
Expand Down
8 changes: 5 additions & 3 deletions .zuul.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ui: tape
browsers:
- name: chrome
version: latest
version: -2..latest
- name: firefox
version: latest
version: -2..latest
- name: ie
version: 9..latest
- name: iphone
version: 6.1..latest
version: 8.1..latest
- name: safari
version: -2..latest
18 changes: 6 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,23 @@
To run unit tests on Saucelabs, first create a Saucelabs account (if you don't
already have one) [here](https://saucelabs.com/opensource).

Copy the `bin/env.sh.example` to `bin/env.sh`

```sh
cp bin/env.sh{.example,}
```

Edit your copy of `bin/env.sh` to enter your Saucelabs username and access key.
Create a `.zuulrc` file in the root of this project (replace username and key with your own credentials):

```
export SAUCE_USERNAME=username
export SAUCE_ACCESS_KEY=key
sauce_username: my_awesome_username
sauce_key: 123a1234-a12b-12d4-a123-123456780000
```

## Testing

To unit test the server implementation, run
To unit test the server version locally, run

```sh
npm run test:server
```

To unit test the client implementation, run
To unit test the browser version on Saucelabs, run

```sh
npm run test:client
npm run test:browser
```
File renamed without changes.
3 changes: 0 additions & 3 deletions bin/env.sh.example

This file was deleted.

1 change: 0 additions & 1 deletion build/client-cuid.js

This file was deleted.

Loading