forked from shipshapecode/shepherd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start on cypress (shipshapecode#209)
* Start on cypress * Create a dummy app and setup-tour util * Set docs paths back * Add more tests * Fix lint * Add http-server * Add scrollTo and attachTo tests * Fix lint
- Loading branch information
1 parent
a6ab7ea
commit 6b11529
Showing
19 changed files
with
1,292 additions
and
44 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/coverage/ | ||
/cypress/dummy/js/prism.js | ||
/dist/ | ||
/docs/ |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
/.log/ | ||
/.nyc_output/ | ||
/coverage/ | ||
/cypress/videos/ | ||
/dist/ | ||
/node_modules/ | ||
/.DS_Store | ||
|
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,3 @@ | ||
{ | ||
"video": false | ||
} |
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,31 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2017, | ||
sourceType: 'module' | ||
}, | ||
plugins: [ | ||
'mocha' | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:mocha/recommended' | ||
], | ||
globals: { | ||
Cypress: false, | ||
Shepherd: false, | ||
assert: false, | ||
cy: false, | ||
document: false, | ||
expect: false, | ||
window: false | ||
}, | ||
env: { | ||
browser: false, | ||
mocha: true, | ||
node: true | ||
}, | ||
rules: { | ||
'no-console': 'off' | ||
} | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Shepherd — Guide your users through a tour of your app.</title> | ||
<meta name="description" content="Guide your users through a tour of your app."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<link rel="icon" href="https://static.hubspot.com/favicon.ico"> | ||
|
||
<!-- Shepherd themes --> | ||
<link rel="stylesheet" href="/dist/css/shepherd-theme-arrows.css"/> | ||
|
||
<!-- Welcome docs styles --> | ||
<link rel="stylesheet" href="/cypress/dummy/css/prism.css"/> | ||
<link rel="stylesheet" href="/cypress/dummy/css/welcome.css"/> | ||
</head> | ||
|
||
<body> | ||
<div class="hero-scroll"> | ||
<div class="hero-outer"> | ||
<div class="hero-inner"> | ||
<div class="hero-welcome"> | ||
<h1>Shepherd</h1> | ||
|
||
<h2>Guide your users through a tour of your app.</h2> | ||
</div> | ||
|
||
<div class="hero-including"> | ||
<h3>Including</h3> | ||
|
||
<script type="text/plain" class="language-markup" id="hero-including-code"> | ||
<link rel="stylesheet" href="shepherd-theme-arrows.css"/> | ||
<script src="popper.min.js"></script> | ||
<script src="shepherd.min.js"></script> | ||
</script> | ||
</div> | ||
|
||
<div class="hero-example"> | ||
<h3>Example</h3> | ||
|
||
<pre id="hero-example-code"> | ||
<code class="language-javascript"> | ||
const tour = new Shepherd.Tour({ | ||
defaults: { | ||
classes: 'shepherd-theme-arrows' | ||
} | ||
}); | ||
|
||
tour.addStep('example', { | ||
title: 'Example Shepherd', | ||
text: 'Creating a Shepherd is easy too! Just create ...', | ||
attachTo: '.hero-example bottom', | ||
advanceOn: '.docs-link click' | ||
}); | ||
|
||
tour.start(); | ||
</code> | ||
</pre> | ||
</div> | ||
|
||
<div class="hero-followup"> | ||
<p> | ||
<a class="button star" href="https://github.com/shipshapecode/shepherd">★ on Github</a> | ||
<a class="button" href="https://shipshapecode.github.io/shepherd/">View Docs</a> | ||
<!--a class="button dark" href="https://eager.io/app/shepherd/install?utm_source=shepherd_docs_welcome">↓ Install</a--> | ||
</p> | ||
</div> | ||
<div> | ||
<img src="/cypress/dummy/sheep.svg"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Shepherd --> | ||
<script src="/dist/js/popper.js"></script> | ||
<script src="/dist/js/shepherd.js"></script> | ||
|
||
<!-- Welcome page --> | ||
<script src="/cypress/dummy/js/prism.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.