Skip to content

Commit

Permalink
Merge pull request #83 from MarkHerhold/modernize
Browse files Browse the repository at this point in the history
Modernize & cleanup (#72)
  • Loading branch information
ericelliott committed Sep 6, 2017
2 parents 8bd32aa + 84f8a0d commit 5f11022
Show file tree
Hide file tree
Showing 33 changed files with 5,003 additions and 973 deletions.
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.

14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
dist: trusty
language: node_js
node_js:
- "0.12"
- "iojs"
- "4"
- "6"
- "7"
install:
- npm install
script:
- npm run validate
- "8"
addons:
apt:
packages:
- google-chrome-stable
env:
global:
- secure: ZaVxQhRv9HYXTCqeS9T4XXGO1cGayL11os8jDZ6wqNkQAwkOw3QSL70iloN5DMzg4WXv8Pwp5I4EUDIcUwiu4UCbDgfn1vYoTfVEmDMBDni4xw3CRG7IT8gEijJItCaOdEzC+IBmpAFuVI8xcuic7WBYPKRnShWkZ1xwmHDSenc=
- secure: lh7gaH4G4RUvdjrocupakeFbx4JtF7AyLGXGfsJl+/PJFjvrB+Ahatb8sTcb5hDHTr+Ucunzawx1HBNE+k+7CyykKBQpsQNWT/q6vlL/PAjRpt501O46NEdfTm/RSTqHgIo9WINYIa/ZpCh2L0vAevduaT0GGFCaP9W7fpJaVhM=
- CHROME_BIN=/usr/bin/google-chrome-stable
10 changes: 0 additions & 10 deletions .zuul.yml

This file was deleted.

24 changes: 4 additions & 20 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,17 @@
# Contributing to cuid

## Saucelabs setup

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.

```
export SAUCE_USERNAME=username
export SAUCE_ACCESS_KEY=key
```
To properly perform browser testing, Chrome 60 or higher needs to be installed locally to run the tests in headless mode.

## 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 cuid in the browser version locally, 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

0 comments on commit 5f11022

Please sign in to comment.