Skip to content

Commit

Permalink
Merge pull request #286 from Turbo87/docs
Browse files Browse the repository at this point in the history
Add `documentation` dev dependency
  • Loading branch information
rwjblue authored Dec 27, 2017
2 parents 4fbc32f + ab92e85 commit 571555a
Show file tree
Hide file tree
Showing 6 changed files with 1,891 additions and 48 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# compiled output
/dist
/docs
/tmp

# dependencies
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# compiled output
/dist
/docs
/tmp

# dependencies
Expand Down
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ jobs:
on:
tags: true
repo: emberjs/ember-test-helpers
- if: tag IS present
script: yarn documentation
deploy:
provider: pages
skip_cleanup: true
local_dir: docs
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
tags: true
repo: emberjs/ember-test-helpers

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
Expand Down
50 changes: 50 additions & 0 deletions documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
toc:
- name: DOM Interaction Helpers

- click
- tap
- focus
- blur
- triggerEvent
- triggerKeyEvent
- fillIn

- name: Routing Helpers

- visit
- currentRouteName
- currentURL

- name: Rendering Helpers

- render
- clearRender

- name: Wait Helpers

- waitFor
- waitUntil
- settled
- isSettled
- getSettledState

- name: Pause Helpers

- pauseTest
- resumeTest

- name: Test Framework APIs

- setResolver
- getResolver
- setupContext
- getContext
- setContext
- unsetContext
- teardownContext
- setupRenderingContext
- teardownRenderingContext
- setApplication
- setupApplicationContext
- teardownApplicationContext
- validateErrorHandler
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"scripts": {
"build": "ember build",
"changelog": "lerna-changelog",
"docs": "documentation build --document-exported \"addon-test-support/@ember/test-helpers/index.js\" --config documentation.yml -f html -o docs",
"lint": "eslint *.js addon addon-test-support app config lib node-tests server tests test-support",
"start": "ember server",
"test": "ember test",
Expand All @@ -36,6 +37,7 @@
"ember-cli-htmlbars-inline-precompile": "^1.0.0"
},
"devDependencies": {
"documentation": "^5.3.5",
"ember-cli": "^2.17.1",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^4.2.1",
Expand Down
Loading

0 comments on commit 571555a

Please sign in to comment.