Skip to content
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
app
dist
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"plugin:cypress/recommended",
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"env": {
Expand Down Expand Up @@ -49,6 +50,7 @@ module.exports = {
"files": ["cypress/integration/**/*"],
"rules": {
"sonarjs/no-identical-functions": "warn",
"no-invalid-this": "warn"
},
}],
};
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ typings/

# next.js build output
.next

# Generated files
dist
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
language: node_js
node_js:
- "7"
- "8"
- "10"
- "12"
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
script:
- npm run lint
- npm test
- npm run test:source
- npm run bundle
- npm run test:bundle
30 changes: 30 additions & 0 deletions DEVELOP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# How to develop

## Node version

Anything above Node 8

## Running tests

There are many ways to run tests. Here is a list

| Command | Headless | Starts server | Code under test |
|---------|----------|---------------|-----------------|
| `npm test` | :heavy_check_mark: | :heavy_check_mark: | Source files |
| `npm run test:source` | :heavy_check_mark: | :heavy_check_mark: | Source files |
| `npm run test:bundle` | :heavy_check_mark: | :heavy_check_mark: | Distribution bundle |
| `npm run run:cypress` | :heavy_check_mark: | :x: | Source files |
| `npm run run:cypress:source` | :heavy_check_mark: | :x: | Source files |
| `npm run run:cypress:bundle` | :heavy_check_mark: | :x: | Distribution bundle |
| `npm start` | :x: | :heavy_check_mark: | Source files |
| `npm run start:source` | :x: | :heavy_check_mark: | Source files |
| `npm run start:bundle` | :x: | :heavy_check_mark: | Distribution bundle |
| `npm run start:cypress` | :x: | :x: | Source files |
| `npm run start:cypress:source` | :x: | :x: | Source files |
| `npm run start:cypress:bundle` | :x: | :x: | Distribution bundle |

For commands that don't start their own server you'll need to run `npm run start:server` in a second command line.

## Publishing

`npm publish` will run tests that have to pass before allowing you to publish.
2 changes: 1 addition & 1 deletion cypress/support/index.js → cypress/support/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
// https://on.cypress.io/configuration
// ***********************************************************

require('../../index');
require('../../');
16 changes: 16 additions & 0 deletions cypress/support/source.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

require('../../src');
1 change: 0 additions & 1 deletion index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion index.js

This file was deleted.

4 changes: 0 additions & 4 deletions lib/index.js

This file was deleted.

36 changes: 0 additions & 36 deletions lib/utils/errorMessages.js

This file was deleted.

Loading