-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from MarkHerhold/modernize
Modernize & cleanup (#72)
- Loading branch information
Showing
33 changed files
with
5,003 additions
and
973 deletions.
There are no files selected for viewing
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
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,4 +1,4 @@ | ||
node_modules | ||
bin/env.sh | ||
dist | ||
npm-debug.log | ||
test-cuid.js | ||
.zuulrc |
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,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 |
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,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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.